/* =========================================================
   AUTH PAGE
   ========================================================= */

.auth-page {
    --auth-primary: var(--color-primary);
    --auth-primary-dark: var(--color-primary-dark);
    --auth-primary-light: var(--color-primary-light);

    --auth-green: var(--color-secondary);
    --auth-green-dark: var(--color-secondary-dark);
    --auth-green-light: var(--color-secondary-light);

    --auth-teal: var(--color-teal);
    --auth-teal-dark: var(--color-teal-dark);
    --auth-teal-light: var(--color-teal-light);

    --auth-blue: var(--color-blue);
    --auth-blue-dark: var(--color-blue-dark);
    --auth-blue-light: var(--color-blue-light);

    --auth-text: var(--color-text);
    --auth-text-light: var(--color-text-light);
    --auth-text-muted: var(--color-text-muted);

    --auth-background: var(--color-background);
    --auth-background-light: var(--color-background-light);

    --auth-white: var(--color-white);
    --auth-border: var(--color-border);
    --auth-border-light: var(--color-border-light);

    --auth-radius-sm: var(--radius-sm);
    --auth-radius-md: var(--radius-md);
    --auth-radius-lg: var(--radius-lg);
    --auth-radius-xl: var(--radius-xl);

    --auth-shadow-sm: var(--shadow-sm);
    --auth-shadow-md: var(--shadow-md);
    --auth-shadow-lg: var(--shadow-lg);

    --auth-transition: var(--transition);

    position: relative;

    width: 100%;
    min-height: calc(100vh - 120px);

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(var(--color-teal-rgb), .06),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(var(--color-secondary-rgb), .07),
            transparent 28%
        ),
        var(--auth-background);

    font-family: var(--font-family);
}


/* =========================================================
   BACKGROUND
   ========================================================= */

.auth-page-bg {
    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;
}

.auth-bg-shape {
    position: absolute;

    display: block;

    border-radius: 50%;

    pointer-events: none;
}

.auth-bg-shape-one {
    width: 430px;
    height: 430px;

    top: -250px;
    right: -170px;

    background:
        radial-gradient(
            circle,
            rgba(var(--color-primary-rgb), .07),
            transparent 68%
        );
}

.auth-bg-shape-two {
    width: 360px;
    height: 360px;

    bottom: -220px;
    left: -150px;

    background:
        radial-gradient(
            circle,
            rgba(var(--color-secondary-rgb), .10),
            transparent 68%
        );
}


/* =========================================================
   CONTAINER / WRAPPER
   ========================================================= */

.auth-page .container {
    position: relative;
    z-index: 2;

    width: 100%;
}

.auth-wrapper {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 55px 0;
}


/* =========================================================
   CARD
   ========================================================= */

.auth-card {
    position: relative;

    width: 100%;
    max-width: 470px;

    padding: 34px 36px 26px;

    background: var(--auth-white);

    border: 1px solid var(--auth-border);

    border-radius: var(--auth-radius-xl);

    box-shadow: var(--auth-shadow-lg);

    overflow: hidden;
}


/* top accent */

.auth-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--auth-primary),
            var(--auth-blue),
            var(--auth-teal),
            var(--auth-green)
        );
}


/* =========================================================
   HEADER
   ========================================================= */

.auth-header {
    width: 100%;

    margin-bottom: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.auth-logo {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 100%;

    margin-bottom: 30px;

    text-decoration: none;
}

.auth-logo img {
    display: block;

    width: auto;
    max-width: 190px;
    max-height: 70px;

    object-fit: contain;
}

.auth-logo-fallback {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 18px;

    border-radius: var(--auth-radius-md);

    background: var(--auth-primary-light);

    color: var(--auth-primary);

    font-size: 18px;
    font-weight: 900;
}


/* =========================================================
   HEADER CONTENT
   ========================================================= */

.auth-header-content {
    display: flex;

    align-items: center;

    gap: 14px;
}

.auth-header-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--auth-primary-light);

    color: var(--auth-primary);

    font-size: 25px;
}

.auth-header-content > div:last-child {
    min-width: 0;
}


/* =========================================================
   TITLE
   ========================================================= */

.auth-title {
    margin: 0 0 5px;

    color: var(--auth-primary);

    font-size: 21px;
    font-weight: 900;

    line-height: 1.6;
}

.auth-subtitle {
    margin: 0;

    color: var(--auth-text-light);

    font-size: 13px;
    font-weight: 500;

    line-height: 1.9;
}


/* =========================================================
   ALERT
   ========================================================= */

.auth-alert-wrapper {
    width: 100%;

    margin-bottom: 20px;
}

.auth-alert-wrapper:empty {
    display: none;
}


/* =========================================================
   FORM
   ========================================================= */

.auth-form {
    width: 100%;
}

.auth-form-group {
    width: 100%;

    margin-bottom: 20px;
}


/* =========================================================
   LABEL
   ========================================================= */

.auth-label {
    display: block;

    margin-bottom: 9px;

    color: var(--auth-text);

    font-size: 14px;
    font-weight: 800;

    line-height: 1.7;
}


/* =========================================================
   INPUT
   ========================================================= */

.auth-input-wrapper {
    position: relative;

    width: 100%;
}

.auth-input-icon {
    position: absolute;

    top: 50%;
    right: 15px;

    z-index: 2;

    transform: translateY(-50%);

    color: var(--auth-text-muted);

    font-size: 20px;

    pointer-events: none;

    transition: var(--auth-transition);
}

.auth-input {
    display: block;

    width: 100%;
    height: 54px;

    padding: 0 48px 0 16px;

    border: 1px solid var(--auth-border);

    border-radius: var(--auth-radius-md);

    outline: none;

    background: var(--auth-background-light);

    color: var(--auth-text);

    font-family: var(--font-family);

    font-size: 15px;
    font-weight: 600;

    letter-spacing: .2px;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.auth-input::placeholder {
    color: var(--auth-text-muted);

    font-size: 13px;
    font-weight: 500;
}

.auth-input:hover {
    border-color: rgba(var(--color-primary-rgb), .25);

    background: var(--auth-white);
}

.auth-input:focus {
    border-color: var(--auth-primary);

    background: var(--auth-white);

    box-shadow:
        0 0 0 4px rgba(var(--color-primary-rgb), .07);
}

.auth-input-wrapper:focus-within .auth-input-icon {
    color: var(--auth-primary);
}


/* =========================================================
   FIELD HINT
   ========================================================= */

.auth-field-hint {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 8px;

    color: var(--auth-text-muted);

    font-size: 11px;
    font-weight: 500;

    line-height: 1.8;
}

.auth-field-hint i {
    color: var(--auth-teal);

    font-size: 15px;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.auth-submit {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    width: 100%;
    min-height: 54px;

    padding: 11px 20px;

    border: 0;

    border-radius: var(--auth-radius-md);

    background:
        linear-gradient(
            135deg,
            var(--auth-primary),
            var(--auth-blue)
        );

    color: var(--auth-white);

    font-family: var(--font-family);

    font-size: 15px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(var(--color-primary-rgb), .16);

    transition: var(--auth-transition);
}

.auth-submit:hover {
    background:
        linear-gradient(
            135deg,
            var(--auth-primary-dark),
            var(--auth-primary)
        );

    color: var(--auth-white);

    transform: translateY(-2px);

    box-shadow:
        0 11px 25px rgba(var(--color-primary-rgb), .22);
}

.auth-submit:active {
    transform: translateY(0);

    box-shadow:
        0 5px 13px rgba(var(--color-primary-rgb), .16);
}

.auth-submit i {
    font-size: 19px;

    transition: transform .2s ease;
}

.auth-submit:hover i {
    transform: translateX(-3px);
}


/* =========================================================
   SECURITY
   ========================================================= */

.auth-security {
    display: flex;

    align-items: center;

    gap: 11px;

    margin-top: 24px;

    padding: 12px 13px;

    border: 1px solid rgba(var(--color-secondary-rgb), .20);

    border-radius: var(--auth-radius-md);

    background: var(--auth-green-light);
}

.auth-security-icon {
    width: 35px;
    height: 35px;

    flex: 0 0 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(var(--color-secondary-rgb), .16);

    color: var(--auth-green-dark);

    font-size: 18px;
}

.auth-security-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.auth-security-content strong {
    color: var(--auth-text);

    font-size: 12px;
    font-weight: 800;
}

.auth-security-content span {
    color: var(--auth-text-light);

    font-size: 10px;
    font-weight: 500;

    line-height: 1.8;
}


/* =========================================================
   TERMS
   ========================================================= */

.auth-terms {
    display: flex;

    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 4px;

    margin-top: 21px;

    text-align: center;

    color: var(--auth-text-muted);

    font-size: 10px;
    font-weight: 500;

    line-height: 2;
}

.auth-terms a {
    color: var(--auth-teal);

    font-weight: 800;

    text-decoration: none;

    transition: var(--auth-transition);
}

.auth-terms a:hover {
    color: var(--auth-teal-dark);

    text-decoration: underline;
}


/* =========================================================
   INVALID / AUTOFILL
   ========================================================= */

.auth-input.is-invalid,
.auth-input:invalid:not(:placeholder-shown) {
    border-color: var(--color-danger);
}

.auth-input.is-invalid:focus,
.auth-input:invalid:not(:placeholder-shown):focus {
    box-shadow:
        0 0 0 4px rgba(230, 91, 104, .08);
}


/* Chrome autofill */

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--auth-text);

    box-shadow:
        0 0 0 1000px var(--auth-white) inset;

    transition:
        background-color 5000s ease-in-out 0s;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 767px) {

    .auth-page {
        min-height: calc(100vh - 80px);
    }

    .auth-wrapper {
        padding: 35px 0;
    }

    .auth-card {
        max-width: 460px;

        padding: 30px 27px 23px;

        border-radius: var(--auth-radius-lg);
    }

    .auth-logo {
        margin-bottom: 25px;
    }

    .auth-logo img {
        max-width: 175px;
        max-height: 62px;
    }

    .auth-header {
        margin-bottom: 25px;
    }

    .auth-header-icon {
        width: 44px;
        height: 44px;

        flex-basis: 44px;

        border-radius: 12px;

        font-size: 22px;
    }

    .auth-title {
        font-size: 19px;
    }

    .auth-subtitle {
        font-size: 12px;
    }

    .auth-input {
        height: 52px;

        font-size: 14px;
    }

    .auth-submit {
        min-height: 52px;

        font-size: 14px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .auth-page {
        min-height: auto;

        align-items: flex-start;
    }

    .auth-wrapper {
        padding: 20px 0 30px;
    }

    .auth-card {
        padding: 25px 18px 21px;

        border-radius: 15px;

        box-shadow: var(--auth-shadow-md);
    }

    .auth-bg-shape-one {
        width: 300px;
        height: 300px;

        top: -180px;
        right: -150px;
    }

    .auth-bg-shape-two {
        width: 260px;
        height: 260px;

        bottom: -170px;
        left: -130px;
    }

    .auth-logo {
        margin-bottom: 22px;
    }

    .auth-logo img {
        max-width: 155px;
        max-height: 55px;
    }

    .auth-header-content {
        gap: 10px;
    }

    .auth-header-icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;

        border-radius: 10px;

        font-size: 20px;
    }

    .auth-title {
        margin-bottom: 3px;

        font-size: 17px;
    }

    .auth-subtitle {
        font-size: 10px;

        line-height: 1.8;
    }

    .auth-header {
        margin-bottom: 22px;
    }

    .auth-form-group {
        margin-bottom: 17px;
    }

    .auth-label {
        margin-bottom: 7px;

        font-size: 12px;
    }

    .auth-input {
        height: 49px;

        padding-right: 43px;

        border-radius: 10px;

        font-size: 13px;
    }

    .auth-input-icon {
        right: 13px;

        font-size: 18px;
    }

    .auth-input::placeholder {
        font-size: 11px;
    }

    .auth-field-hint {
        font-size: 9px;
    }

    .auth-field-hint i {
        font-size: 13px;
    }

    .auth-submit {
        min-height: 49px;

        border-radius: 10px;

        font-size: 13px;
    }

    .auth-submit i {
        font-size: 17px;
    }

    .auth-security {
        margin-top: 19px;

        padding: 10px;
    }

    .auth-security-icon {
        width: 32px;
        height: 32px;

        flex-basis: 32px;

        font-size: 16px;
    }

    .auth-security-content strong {
        font-size: 11px;
    }

    .auth-security-content span {
        font-size: 9px;
    }

    .auth-terms {
        margin-top: 17px;

        font-size: 9px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .auth-card {
        padding-right: 15px;
        padding-left: 15px;
    }

    .auth-title {
        font-size: 16px;
    }

    .auth-subtitle {
        font-size: 9px;
    }

    .auth-header-icon {
        width: 37px;
        height: 37px;

        flex-basis: 37px;

        font-size: 18px;
    }


}
/* =========================================================
   OTP VERIFICATION
========================================================= */

.auth-otp {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    direction: ltr;

    margin-top: 8px;
}


.auth-otp-input {
    width: 62px;
    height: 64px;

    flex: 0 0 62px;

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    outline: none;

    background: var(--color-white);

    color: var(--color-primary);

    font-family: var(--font-family);

    font-size: 25px;
    font-weight: 800;

    text-align: center;

    direction: ltr;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease,
        transform .2s ease;
}


.auth-otp-input:hover {
    border-color: var(--color-primary);
}


.auth-otp-input:focus {
    border-color: var(--color-primary);

    background: var(--color-primary-light);

    box-shadow:
        0 0 0 4px rgba(var(--color-primary-rgb), .08);

    transform: translateY(-1px);
}


.auth-otp-input:not(:placeholder-shown) {
    border-color: var(--color-teal);
}


/* =========================================================
   OTP ERROR STATE
========================================================= */

.auth-otp.auth-otp-error .auth-otp-input {
    border-color: var(--color-danger);

    background: var(--color-danger-light);
}


/* =========================================================
   OTP SUCCESS STATE
========================================================= */

.auth-otp.auth-otp-success .auth-otp-input {
    border-color: var(--color-secondary);

    background: var(--color-secondary-light);
}

/* =========================================================
   AUTH REGISTER
========================================================= */

.auth-page {
    width: 100%;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 15px;
    background: var(--color-background);
    font-family: var(--font-family);
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    position: relative;
    width: 100%;
    padding: 38px 38px 28px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}


/* =========================================================
   BACK
========================================================= */

.auth-back {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--color-primary-light);
    color: var(--color-primary);

    text-decoration: none;

    font-size: 19px;

    transition: var(--transition);
}

.auth-back:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateX(2px);
}


/* =========================================================
   LOGO
========================================================= */

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-logo img {
    display: block;
    max-width: 190px;
    max-height: 70px;
    width: auto;
    height: auto;
}


/* =========================================================
   HEADER
========================================================= */

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header-icon {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 14px;

    border-radius: 16px;

    background: var(--color-primary-light);
    color: var(--color-primary);

    font-size: 27px;
}

.auth-header h1 {
    margin: 0 0 7px;

    color: var(--color-primary);

    font-size: 21px;
    font-weight: 800;

    line-height: 1.8;
}

.auth-header p {
    margin: 0;

    color: var(--color-text-light);

    font-size: 13px;

    line-height: 1.9;
}


/* =========================================================
   MESSAGE
========================================================= */

.auth-message {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 25px;
    padding: 14px 15px;

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    background: var(--color-background-light);
}

.auth-message-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--color-teal-light);
    color: var(--color-teal-dark);

    font-size: 18px;
}

.auth-message-content {
    min-width: 0;
}

.auth-message-content strong {
    display: block;

    margin-bottom: 4px;

    color: var(--color-text);

    font-size: 13px;
    font-weight: 800;
}

.auth-message-content p {
    margin: 0;

    color: var(--color-text-light);

    font-size: 12px;

    line-height: 2;
}

.auth-message-content b {
    color: var(--color-primary);
    font-weight: 800;
}


/* =========================================================
   FORM
========================================================= */

.auth-form {
    width: 100%;
}

.auth-field {
    width: 100%;
    margin-bottom: 18px;
}

.auth-field label {
    display: block;

    margin-bottom: 8px;

    color: var(--color-text);

    font-size: 13px;
    font-weight: 700;
}

.auth-input-wrapper {
    position: relative;
    width: 100%;
}

.auth-input-wrapper > i {
    position: absolute;

    top: 50%;
    right: 15px;

    z-index: 2;

    transform: translateY(-50%);

    color: var(--color-text-muted);

    font-size: 19px;

    pointer-events: none;

    transition: var(--transition);
}

.auth-input {
    width: 100%;
    height: 52px;

    padding: 0 46px 0 15px;

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    outline: none;

    background: var(--color-white);

    color: var(--color-text);

    font-family: var(--font-family);

    font-size: 15px;
    font-weight: 600;

    text-align: center;

    letter-spacing: 5px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.auth-input::placeholder {
    color: var(--color-text-muted);
    font-size: 13px;
    letter-spacing: 0;
    font-weight: 400;
}

.auth-input:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px rgba(
            var(--color-primary-rgb),
            .08
        );
}

.auth-input-wrapper:focus-within > i {
    color: var(--color-primary);
}


/* =========================================================
   SUBMIT
========================================================= */

.auth-submit {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 11px 18px;

    border: 0;
    border-radius: var(--radius-md);

    background: var(--color-primary);
    color: var(--color-white);

    font-family: var(--font-family);

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.auth-submit:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);

    transform: translateY(-1px);

    box-shadow: var(--shadow-md);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit i {
    font-size: 18px;
}

.auth-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.auth-submit.loading {
    position: relative;
}

.auth-submit.loading span {
    opacity: .5;
}


/* =========================================================
   RESEND
========================================================= */

.auth-resend {
    margin-top: 22px;

    min-height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-countdown,
.auth-resend-link {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: var(--color-text-light);

    font-size: 12px;

    line-height: 1.8;
}

.auth-countdown i {
    color: var(--color-teal);
    font-size: 17px;
}

.auth-countdown b {
    color: var(--color-primary);
    font-weight: 800;
}

.auth-resend-link {
    color: var(--color-teal-dark);

    font-weight: 800;

    cursor: pointer;

    transition: var(--transition);
}

.auth-resend-link i {
    font-size: 17px;
}

.auth-resend-link:hover {
    color: var(--color-primary);
}


/* =========================================================
   FOOTER
========================================================= */

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid var(--color-border-light);

    color: var(--color-text-muted);

    font-size: 11px;
}

.auth-footer a {
    color: var(--color-primary);

    font-weight: 700;

    text-decoration: none;

    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--color-teal-dark);
}


/* =========================================================
   ALERT
========================================================= */

.auth-card .alert {
    margin-bottom: 20px;

    border-radius: var(--radius-md);

    font-family: var(--font-family);

    font-size: 12px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .auth-page {
        min-height: calc(100vh - 80px);
        padding: 25px 12px;
    }

    .auth-card {
        padding: 32px 20px 23px;

        border-radius: var(--radius-lg);
    }

    .auth-back {
        top: 15px;
        right: 15px;

        width: 35px;
        height: 35px;

        font-size: 17px;
    }

    .auth-logo {
        margin-bottom: 23px;
    }

    .auth-logo img {
        max-width: 165px;
    }

    .auth-header {
        margin-bottom: 21px;
    }

    .auth-header-icon {
        width: 50px;
        height: 50px;

        margin-bottom: 11px;

        border-radius: 14px;

        font-size: 23px;
    }

    .auth-header h1 {
        font-size: 18px;
    }

    .auth-header p {
        font-size: 12px;
    }

    .auth-message {
        padding: 12px;

        gap: 9px;

        margin-bottom: 21px;
    }

    .auth-message-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        font-size: 16px;
    }

    .auth-message-content strong {
        font-size: 12px;
    }

    .auth-message-content p {
        font-size: 11px;
    }

    .auth-field label {
        font-size: 12px;
    }

    .auth-input {
        height: 50px;

        font-size: 14px;
    }

    .auth-submit {
        min-height: 50px;

        font-size: 13px;
    }

    .auth-footer {
        flex-direction: column;

        gap: 2px;

        font-size: 10px;
    }

}
/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .auth-otp {
        gap: 8px;
    }

    .auth-otp-input {
        width: 56px;
        height: 58px;

        flex-basis: 56px;

        font-size: 22px;

        border-radius: 10px;
    }

}


@media (max-width: 380px) {

    .auth-otp {
        gap: 6px;
    }

    .auth-otp-input {
        width: 50px;
        height: 54px;

        flex-basis: 50px;

        font-size: 20px;
    }

}

/* =========================================================
   REGISTER / OTP AUTH
========================================================= */

.auth-otp-field {
    width: 100%;
    margin-top: 24px;
}

.auth-otp-field > label {
    display: block;
    width: 100%;

    margin-bottom: 14px;

    color: var(--color-text);

    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 800;

    text-align: center;
}


/* =========================================================
   OTP WRAPPER
========================================================= */

.auth-otp-wrapper {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    direction: ltr;

    margin: 0 auto;
}


/* =========================================================
   OTP INPUT
========================================================= */

.auth-otp-input {
    width: 70px;
    height: 70px;

    flex: 0 0 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);

    outline: none;

    background: var(--color-background-light);

    color: var(--color-primary);

    font-family: var(--font-family);
    font-size: 29px;
    font-weight: 900;

    line-height: 1;

    text-align: center;

    direction: ltr;

    caret-color: var(--color-primary);

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


/* مقدار وارد شده */

.auth-otp-input.has-value {
    border-color: var(--color-teal);

    background: var(--color-teal-light);

    color: var(--color-primary);
}


/* Focus */

.auth-otp-input:focus {
    border-color: var(--color-primary);

    background: var(--color-white);

    box-shadow:
        0 0 0 4px rgba(var(--color-primary-rgb), .08);

    transform: translateY(-2px);
}


/* وقتی مقدار دارد و فوکوس شده */

.auth-otp-input.has-value:focus {
    border-color: var(--color-teal);

    box-shadow:
        0 0 0 4px rgba(var(--color-teal-rgb), .10);
}


/* جلوگیری از ظاهر پیش‌فرض input */

.auth-otp-input::-webkit-inner-spin-button,
.auth-otp-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* =========================================================
   OTP ERROR
========================================================= */

.auth-otp-input.error {
    border-color: var(--color-danger);

    background: var(--color-danger-light);

    color: var(--color-danger-dark);

    box-shadow:
        0 0 0 4px rgba(230, 91, 104, .08);
}


/* =========================================================
   OTP SUCCESS
========================================================= */

.auth-otp-input.success {
    border-color: var(--color-secondary-dark);

    background: var(--color-secondary-light);

    color: var(--color-primary);
}


/* =========================================================
   RESEND AREA
========================================================= */

.auth-resend {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 24px;

    min-height: 48px;
}


/* =========================================================
   COUNTDOWN
========================================================= */

.auth-countdown {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 9px 16px;

    border-radius: var(--radius-md);

    background: var(--color-background);

    color: var(--color-text-light);

    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;

    border: 1px solid var(--color-border-light);
}


.auth-countdown > i {
    color: var(--color-primary);

    font-size: 17px;
}


.auth-countdown b {
    display: inline-block;

    min-width: 24px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 900;

    text-align: center;
}


/* =========================================================
   RESEND BUTTON
========================================================= */

.auth-resend-link {
    min-height: 46px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px 18px;

    border: 1px solid rgba(var(--color-secondary-rgb), .25);

    border-radius: var(--radius-md);

    outline: none;

    background: var(--color-secondary-light);

    color: var(--color-teal-dark);

    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 800;

    line-height: 1;

    text-align: center;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    box-shadow: none;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


/* Icon */

.auth-resend-link i {
    font-size: 17px;

    transition: transform .35s ease;
}


/* Hover */

.auth-resend-link:hover {
    border-color: var(--color-secondary);

    background: var(--color-secondary);

    color: var(--color-primary);

    transform: translateY(-1px);

    box-shadow:
        0 5px 15px rgba(var(--color-secondary-rgb), .16);
}


/* Hover icon */

.auth-resend-link:hover i {
    transform: rotate(180deg);
}


/* Active */

.auth-resend-link:active {
    transform: translateY(0);

    box-shadow: none;
}


/* =========================================================
   RESEND LOADING
========================================================= */

.auth-resend-link.loading {
    pointer-events: none;

    opacity: .65;
}


.auth-resend-link.loading i {
    animation: auth-resend-spin .8s linear infinite;
}


@keyframes auth-resend-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   DISABLED
========================================================= */

.auth-resend-link:disabled,
.auth-resend-link[disabled] {
    opacity: .55;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.auth-submit {
    position: relative;

    width: 100%;

    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 20px;

    padding: 12px 20px;

    border: 0;

    border-radius: var(--radius-md);

    outline: none;

    background: var(--color-primary);

    color: var(--color-white);

    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    box-shadow: var(--shadow-sm);

    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}


.auth-submit:hover {
    background: var(--color-primary-dark);

    color: var(--color-white);

    transform: translateY(-1px);

    box-shadow: var(--shadow-md);
}


.auth-submit:active {
    transform: translateY(0);
}


.auth-submit:disabled {
    cursor: not-allowed;

    opacity: .7;

    transform: none;
}


/* =========================================================
   SUBMIT LOADING
========================================================= */

.auth-submit-loading {
    display: none;

    align-items: center;
    justify-content: center;

    gap: 8px;
}


.auth-submit.loading .auth-submit-text,
.auth-submit.loading .auth-submit-arrow {
    display: none;
}


.auth-submit.loading .auth-submit-loading {
    display: inline-flex;
}


.auth-submit-loading i {
    font-size: 18px;

    animation: auth-submit-spin .8s linear infinite;
}


@keyframes auth-submit-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .auth-otp-field {
        margin-top: 20px;
    }

    .auth-otp-field > label {
        margin-bottom: 12px;

        font-size: 13px;
    }


    .auth-otp-wrapper {
        gap: 8px;
    }


    .auth-otp-input {
        width: 62px;
        height: 62px;

        flex-basis: 62px;

        border-radius: var(--radius-md);

        font-size: 25px;
    }


    .auth-resend {
        margin-top: 20px;
    }


    .auth-countdown {
        min-height: 42px;

        padding: 8px 13px;

        font-size: 11px;
    }


    .auth-resend-link {
        min-height: 44px;

        padding: 9px 15px;

        font-size: 11px;
    }


    .auth-resend-link i {
        font-size: 16px;
    }


    .auth-submit {
        min-height: 50px;

        font-size: 13px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .auth-otp-wrapper {
        gap: 6px;
    }


    .auth-otp-input {
        width: 56px;
        height: 56px;

        flex-basis: 56px;

        font-size: 23px;
    }

}
/* =========================================================
   LOGIN 2
========================================================= */

.auth-user-info {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    margin-bottom: 26px;
    background: var(--color-primary-light);
    border: 1px solid rgba(var(--color-primary-rgb), 0.10);
    border-radius: var(--radius-md);
}

.auth-user-info-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    color: var(--color-primary);
    border-radius: 12px;
    font-size: 21px;
}

.auth-user-info-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-user-info-content span {
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 500;
}

.auth-user-info-content strong {
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.auth-user-change {
    flex-shrink: 0;
    color: var(--color-teal);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auth-user-change:hover {
    color: var(--color-teal-dark);
    text-decoration: none;
}


/* =========================================================
   PASSWORD
========================================================= */

.auth-password-wrapper {
    position: relative;
}

.auth-password-input {
    padding-left: 52px !important;
}

.auth-password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    outline: 0;
    background: transparent;

    color: var(--color-text-muted);

    cursor: pointer;

    border-radius: 9px;

    transition: var(--transition);
}

.auth-password-toggle:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.auth-password-toggle:focus {
    outline: none;
    box-shadow: none;
}

.auth-password-toggle i {
    font-size: 20px;
}


/* =========================================================
   DIVIDER
========================================================= */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 25px 0;
    color: var(--color-text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.auth-divider span {
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   ONE TIME PASSWORD BUTTON
========================================================= */

.auth-otp-form {
    margin: 0;
}

.auth-otp-button {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 13px 14px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    background: var(--color-white);
    color: var(--color-primary);

    cursor: pointer;

    text-align: right;

    transition: var(--transition);
}

.auth-otp-button:hover {
    border-color: rgba(var(--color-teal-rgb), 0.35);
    background: var(--color-teal-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.auth-otp-button:focus {
    outline: none;
}

.auth-otp-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--color-teal-light);
    color: var(--color-teal);

    border-radius: 12px;

    font-size: 21px;
}

.auth-otp-content {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 3px;
}

.auth-otp-content strong {
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 800;
}

.auth-otp-content small {
    color: var(--color-text-light);
    font-size: 12px;
    font-weight: 500;
}

.auth-otp-arrow {
    color: var(--color-text-muted);
    font-size: 20px;

    transition: var(--transition);
}

.auth-otp-button:hover .auth-otp-arrow {
    color: var(--color-teal);
    transform: translateX(-3px);
}


/* =========================================================
   LOGIN BUTTON LOADING
========================================================= */

.auth-submit {
    position: relative;
}

.auth-submit-text,
.auth-submit-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.auth-submit-loading {
    display: none;
}

.auth-submit.loading .auth-submit-text {
    display: none;
}

.auth-submit.loading .auth-submit-loading {
    display: inline-flex;
}

.auth-submit.loading .auth-submit-arrow {
    display: none;
}

.auth-submit:disabled {
    cursor: wait;
    opacity: 0.85;
}


/* =========================================================
   SPINNER
========================================================= */

.auth-spinner {
    width: 18px;
    height: 18px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--color-white);

    border-radius: 50%;

    animation: authSpinner 0.7s linear infinite;
}

@keyframes authSpinner {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 575px) {

    .auth-user-info {
        padding: 13px;
    }

    .auth-user-info-icon,
    .auth-otp-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .auth-user-info-content strong {
        font-size: 15px;
    }

    .auth-otp-content strong {
        font-size: 14px;
    }

    .auth-otp-content small {
        font-size: 11px;
    }

}
/* =========================================================
   AUTH - 4 DIGIT VERIFICATION CODE
========================================================= */

.auth-code-field {
    text-align: center;
}

.auth-code-field > label {
    display: block;
    width: 100%;
    text-align: right;
    margin-bottom: 12px;
}

.auth-code-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-code-input {
    width: 100% !important;
    max-width: 260px !important;
    height: 72px !important;

    padding: 0 20px !important;

    border: 2px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;

    background: var(--color-background-light) !important;

    color: var(--color-primary) !important;

    font-family: var(--font-family) !important;
    font-size: 32px !important;
    font-weight: 700 !important;

    letter-spacing: 12px !important;
    text-align: center !important;
    direction: ltr !important;

    outline: none !important;

    transition: var(--transition);
    
    box-shadow: var(--shadow-sm);
}


/* Focus */

.auth-code-input:focus {
    border-color: var(--color-primary) !important;

    background: var(--color-white) !important;

    box-shadow:
        0 0 0 4px rgba(var(--color-primary-rgb), 0.08),
        var(--shadow-md) !important;

    transform: translateY(-1px);
}


/* Placeholder */

.auth-code-input::placeholder {
    color: var(--color-text-muted) !important;

    opacity: .65;

    letter-spacing: 10px;
}


/* Remove number arrows if browser still treats it as number */

.auth-code-input::-webkit-outer-spin-button,
.auth-code-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.auth-code-input[type="number"] {
    -moz-appearance: textfield;
}


/* Hint */

.auth-field-hint {
    display: block;

    margin-top: 10px;

    color: var(--color-text-muted);

    font-family: var(--font-family);

    font-size: 14px;

    text-align: center;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .auth-code-input {
        max-width: 230px !important;
        height: 66px !important;

        font-size: 28px !important;

        letter-spacing: 9px !important;
    }

}