.auth-wrapper {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 15px;
    margin: 0 30%;
}

.auth-logo {
    width: 200px;
}

.auth-form {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.auth-form header {
    text-align: center;
}

.auth-form header.auth-form__header {
    background: none;
    color: #6485DF;
    font-weight: 800;
    font-size: 32px;
    border-bottom: none;
}

.auth-form__body {
    display: flex;
    flex-direction: column;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    color: #445877;
    gap: 10px;
    padding: unset;
}

.smart-form .auth-form__options {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
}

.auth-form__option-remember-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.auth-form__option-remember {
    accent-color: #6485DF;
    border-radius: 5px;
    width: 18px;
    height: 18px;
}

.auth-form__option-forgot,
.auth-form__option-forgot:link {
    color: #9CA9B9;
    text-decoration: none;
}

.auth-form input.auth-form__field-input {
    height: 40px !important;
    background: #FFFFFF;
    border: 1px solid #E1EDF1;
    border-radius: 5px;
}

.smart-form .auth-form__body .icon-prepend,
.smart-form .auth-form__body .icon-append {
    border: none;
    top: 8px;
}

.smart-form .auth-form__body .icon-prepend {
    left: 10px;
}

.smart-form .auth-form__body .icon-append {
    right: 10px;
}

.auth-form .btn.btn-primary {
    height: 40px;
    font-size: 18px;
    font-weight: bold;
}

.auth-form .auth-providers {
    background: none;
}

.auth-form footer.auth-form__footer {
    border-top: unset;
    padding: unset;
    height: unset;
    text-align: center;
}

.auth-form__footer-label {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #60789E;
    position: relative;
    background: white;
    top: -12px;
    padding: 0 10px;
}

@media (max-width: 1024px) {
    .auth-wrapper {
        margin: unset;
    }
}

.smart-form fieldset + fieldset {
    border: none;
}

.auth-form .btn.btn-primary_gray {
    border-color: rgba(100, 133, 223, 0.5);
    background: rgba(100, 133, 223, 0.5);
}

.auth-form .btn.btn-primary_gray:hover {
    border-color: rgba(79, 108, 189, 0.5);
    background: rgba(79, 108, 189, 0.5);
}

.auth-form .form_code_field::-webkit-outer-spin-button,
.auth-form .form_code_field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.auth-form .form_code_field {
    appearance: textfield;
}

.smart-form a.btn {
    padding: 6px 12px;
}

.smart-form.auth-form .input .icon-prepend + input,
.smart-form.auth-form .textarea .icon-prepend + textarea {
    padding-left: 40px;
}

.auth-form .icon-prepend::before,
.auth-form .icon-append::before {
    font-size: 22px;
}

.auth-form input:not([type="checkbox"]) {
    border-radius: 8px;
    height: 35px;
}

.auth-form .fa-home {
    margin-top: 8px;
}

.auth-form .fa-home:before {
    font-size: 18px;
}

.auth-form .btn {
    font-weight: normal;
    font-size: 14px;
    background: #6485DF;
    box-shadow: 0 4px 10px #CCD7EC;
    border-radius: 8px;
    color: #FFFFFF;
    height: 35px;
}

.auth-form .btn.btn-home {
    background: #838a88;
}

.auth-form .btn.btn-home:hover {
    background: #3b3f3b;
}

.auth-form .btn:hover {
    background: #4F6CBD;
}

.auth-form footer .btn {
    margin: 6px;
}

.auth-form .btn.btn-success {
    background: #58C075;
}

.auth-form .btn.btn-success:hover {
    background: #09c231;
}

.auth-form__error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    text-align: center;
}

.auth-help {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    text-align: left;
}

.auth-help__toggle {
    cursor: pointer;
    border: 0;
    border-color: transparent;
    background-color: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
    color: #62696e;
    font-weight: normal;
    border-radius: 0;
    font-size: 1.2em;
}

.auth-help__menu {
    display: none; /* toggled by JS */
    position: static;
    background: transparent;
    border: none;
    padding: 8px 0 0 0;
    box-shadow: none;
    margin-top: 8px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
}

.auth-help__menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-help__item {
    padding: 6px 0;
}

.auth-help__item a {
    color: #62696e;
    text-decoration: underline;
    display: inline;
}

.auth-help__item a:hover {
    text-decoration: none;
}

.auth-help__chev {
    display: inline-block;
    border-top: 5px solid;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

.auth-help__chev.active {
    border-top: 0;
    border-bottom: 4px solid;
}

/* show the menu when wrapper has open class; keep it inline-block to collapse under the toggle */
.auth-help--open .auth-help__menu {
    display: block;
}

.slide-left-out {
    animation: slideLeftOut .28s ease forwards;
}

.slide-left-in {
    animation: slideLeftIn .28s ease forwards;
}

@keyframes slideLeftOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-24px); }
}

@keyframes slideLeftIn {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-right-out {
    animation: slideRightOut .28s ease forwards;
}

.slide-right-in {
    animation: slideRightIn .28s ease forwards;
}

@keyframes slideRightOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(24px); }
}

@keyframes slideRightIn {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}

.auth-otp-info {
    text-align: center;
    margin-bottom: 16px;
}

.auth-otp-info__text {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #445877;
    line-height: 1.5;
}

.auth-otp-info__email {
    font-weight: 600;
    color: #6485DF;
}

.auth-otp-info__change {
    background: transparent;
    border: none;
    color: #6485DF;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-otp-info__change:hover {
    color: #4F6CBD;
    text-decoration: none;
}

.auth-otp-info__change:focus {
    outline: 2px solid #6485DF;
    outline-offset: 2px;
    border-radius: 2px;
}

.auth-otp-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.auth-otp-resend {
    margin-top: 10px;
    text-align: center;
    color: #9CA9B9;
    font-size: 13px;
}

.auth-otp-resend__btn {
    background: transparent;
    border: none;
    color: #9CA9B9;
    cursor: default;
    text-decoration: none;
    margin-left: 8px;
    padding: 0;
}

.auth-otp-resend__btn.enabled {
    color: #6485DF;
    cursor: pointer;
    text-decoration: underline;
}

.auth-otp-resend__btn.enabled:hover {
    color: #4F6CBD;
    text-decoration: none;
}

.auth-otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 1px solid #E1EDF1;
    border-radius: 5px;
    background: #FFFFFF;
    color: #5a5a5a;
    outline: none;
    transition: border-color 0.2s;
}

.auth-otp-input:focus {
    border-color: #6485DF;
    box-shadow: 0 0 0 2px rgba(100, 133, 223, 0.2);
}

/* Show validation errors only after form submission attempt */
.was-submitted .auth-otp-input:invalid:not(:placeholder-shown),
.was-submitted .auth-otp-input:invalid {
    border-color: #dc3545;
}

