/* ==========================================================
   AUTH PAGES
   Anna University, Trichy Alumni Portal
   ========================================================== */


/* ==========================================================
   PAGE BACKGROUND
   ========================================================== */

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background-image:
        linear-gradient(
            rgba(255,255,255,.05),
            rgba(255,255,255,.05)
        ),
        var(--auth-bg-image);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-sizing: border-box;
}


/* ==========================================================
   AUTH CARD
   ========================================================== */

.auth-card {
    width: 100%;
    max-width: var(--auth-card-width);

    background: rgba(255,255,255,.96);

    border-radius: 32px;

    padding: 42px;

    box-shadow: var(--shadow-card);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    box-sizing: border-box;
}


/* ==========================================================
   LOGIN CARD
   ========================================================== */

.login-card {
    width: 100%;
    max-width: var(--login-card-width);

    height: auto;
    min-height: 460px;
    max-height: none;

    padding: 22px 30px 24px;

    border-radius: 28px;

    overflow: visible;

    box-sizing: border-box;
}


/* ==========================================================
   REGISTER CARD
   ========================================================== */

.register-card {
    width: 100%;
    max-width: 620px;

    height: auto;
    min-height: 0;
    max-height: none;

    padding: 24px 34px 20px;

    border-radius: 28px;

    overflow: visible;

    box-sizing: border-box;
}


/* ==========================================================
   LOGO / HEADER
   ========================================================== */

.auth-header {
    text-align: center;
    margin-bottom: 16px;
}


.auth-logo {
    width: 68px;
    height: auto;

    display: block;

    margin: 0 auto 8px;
}


.auth-title {
    font-family: var(--font-heading);

    font-size: 30px;
    font-weight: 700;

    color: var(--primary-900);

    margin: 0 0 5px;

    line-height: 1.15;
}


.auth-subtitle {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 3px;

    color: var(--text-primary);

    text-transform: uppercase;
}


.auth-subtitle::before,
.auth-subtitle::after {
    content: "";

    width: 45px;
    height: 2px;

    background: var(--gold-500);
}


/* ==========================================================
   FORM
   ========================================================== */

.auth-form {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;
}


.full-width {
    grid-column: 1 / -1;
}


/* ==========================================================
   FIELD
   ========================================================== */

.field {
    position: relative;

    width: 100%;
}


.field input,
.field select {
    width: 100%;
    height: 48px;
    min-height: 48px;

    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;

    padding-left: 48px;
    padding-right: 48px;

    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);

    transition: var(--transition-fast);

    appearance: none;
    -webkit-appearance: none;

    box-sizing: border-box;
}


.field input::placeholder {
    color: var(--text-secondary);
}


.field select {
    color: var(--text-secondary);

    cursor: pointer;
}


/* ==========================================================
   FIELD ICON
   ========================================================== */

.field-icon {
    position: absolute;

    top: 23px;
    left: 16px;

    transform: translateY(-50%);

    width: 19px;
    height: 19px;

    color: var(--text-primary);

    pointer-events: none;

    z-index: 2;
}


/* ==========================================================
   SELECT ICON
   ========================================================== */

.select-icon {
    position: absolute;

    top: 50%;
    right: 16px;

    transform: translateY(-50%);

    width: 18px;
    height: 18px;

    color: var(--text-primary);

    pointer-events: none;
}


/* ==========================================================
   PASSWORD TOGGLE
   ========================================================== */

.password-toggle {
    position: absolute;

    top: 23px;
    right: 16px;

    transform: translateY(-50%);

    width: 20px;
    height: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    background: none;

    padding: 0;

    cursor: pointer;

    color: var(--text-primary);

    z-index: 3;
}


.password-toggle svg {
    width: 20px;
    height: 20px;
}


/* ==========================================================
   FOCUS
   ========================================================== */

.field input:focus,
.field select:focus {
    outline: none;

    border-color: var(--gold-500);

    box-shadow:
        0 0 0 3px rgba(242,178,51,.18);
}


/* ==========================================================
   CHECKBOX
   ========================================================== */

.checkbox-row {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 2px;

    color: var(--text-primary);
}


.checkbox-row input {
    width: 17px;
    height: 17px;

    min-width: 17px;
    min-height: 17px;

    accent-color: var(--primary-700);

    cursor: pointer;
}


.checkbox-row span {
    font-size: 13px;
    line-height: 1.3;
}


.checkbox-row a {
    color: var(--primary-700);

    font-weight: 600;

    text-decoration: none;
}


.checkbox-row a:hover {
    text-decoration: underline;
}


/* ==========================================================
   LOGIN OPTIONS
   ========================================================== */

.auth-options {
    display: flex;

    justify-content: flex-end;

    align-items: center;

    width: 100%;

    margin-top: 2px;
}


.auth-options a {
    color: var(--primary-700);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}


.auth-options a:hover {
    text-decoration: underline;
}


/* ==========================================================
   PRIMARY BUTTON
   ========================================================== */

.btn-primary {
    width: 100%;

    height: 46px;
    min-height: 46px;

    border: none;

    border-radius: 999px;

    background: var(--primary-gradient);

    color: #fff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: var(--transition-normal);

    box-shadow: var(--shadow-button);

    margin-top: 6px;

    box-sizing: border-box;
}


.btn-primary:hover {
    transform: translateY(-2px);
}


.btn-primary:disabled {
    opacity: .65;

    cursor: not-allowed;

    transform: none;
}


/* ==========================================================
   OUTLINE BUTTON
   ========================================================== */

.btn-outline {
    width: 100%;

    height: 46px;

    border-radius: 999px;

    border: 2px solid var(--gold-500);

    background: #fff;

    color: var(--primary-700);

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: var(--transition-normal);
}


.btn-outline:hover {
    background: rgba(242,178,51,.08);
}


/* ==========================================================
   BACK BUTTON
   ========================================================== */

.btn-back {
    width: 100%;

    height: 48px;
    min-height: 48px;

    border-radius: 999px;

    border: 1px solid var(--border-color);

    background: #fff;

    color: var(--text-primary);

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: var(--transition-normal);

    box-sizing: border-box;
}


.btn-back:hover {
    border-color: var(--primary-700);

    color: var(--primary-700);
}


/* ==========================================================
   DIVIDER
   ========================================================== */

.auth-divider {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 14px 0 12px;

    color: var(--text-primary);

    font-size: 12px;

    white-space: nowrap;
}


.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #d8dde6;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.auth-footer {
    text-align: center;

    margin-top: 12px;

    font-size: 13px;

    color: var(--text-primary);
}


.auth-footer a {
    color: var(--primary-700);

    font-weight: 700;

    text-decoration: none;
}


.auth-footer a:hover {
    text-decoration: underline;
}


/* ==========================================================
   REGISTER LINK
   ========================================================== */

.register-link {
    width: 100%;

    text-align: center;

    margin-top: 2px;

    line-height: 1.3;

    color: var(--text-primary);

    font-size: 13px;
}


.register-link a {
    color: var(--primary-700);

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;
}


.register-link a:hover {
    text-decoration: underline;
}


/* ==========================================================
   ERROR MESSAGE
   ========================================================== */

.error-text {
    color: var(--danger);

    font-size: 12px;

    line-height: 1.2;

    margin-top: 4px;
}


/* ==========================================================
   FIELD HINT
   ========================================================== */

.field-hint {
    min-height: 0;

    font-size: 11px;

    line-height: 1.2;

    margin-top: 3px;
}


/* ==========================================================
   OTP BUTTON
   ========================================================== */

.otp-btn {
    height: 48px !important;

    margin-top: 0 !important;
}


/* ==========================================================
   OTP SUCCESS
   ========================================================== */

.otp-success {
    background: #e9f7ef;

    color: #198754;

    border: 1px solid #b7e4c7;

    padding: 10px 14px;

    border-radius: 12px;

    font-weight: 600;

    font-size: 13px;
}


/* ==========================================================
   REGISTER WIZARD
   ========================================================== */


/* ==========================================================
   STEP INDICATOR
   ========================================================== */

.register-steps {
    width: 100%;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin: 8px 0 16px;

    box-sizing: border-box;
}


.step-item {
    flex: 0 0 auto;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    color: #8b98aa;

    text-align: center;
}


.step-item span {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #edf1f5;

    color: #7c899b;

    font-size: 14px;
    font-weight: 700;

    transition: .25s ease;
}


.step-item small {
    display: block;

    margin-top: 5px;

    font-size: 11px;
    font-weight: 600;

    color: #8b98aa;
}


.step-item.active span {
    background: var(--primary-gradient);

    color: #fff;
}


.step-item.active small {
    color: var(--primary-700);
}


.step-item.completed span {
    background: var(--primary-700);

    color: #fff;
}


.step-item.completed small {
    color: var(--primary-700);
}


.step-line {
    flex: 1;

    height: 1px;

    background: #d8dee7;

    margin: 18px 8px 0;

    min-width: 20px;
}


/* ==========================================================
   REGISTER STEP
   ========================================================== */

.register-step {
    display: none;

    width: 100%;
}


.register-step.active {
    display: block;
}


/* ==========================================================
   STEP TITLE
   ========================================================== */

.step-title {
    font-family: var(--font-heading);

    font-size: 23px;
    font-weight: 700;

    line-height: 1.15;

    color: var(--primary-900);

    margin: 0 0 3px;
}


.step-description {
    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.35;

    margin: 0 0 12px;
}


/* ==========================================================
   REGISTER FORM ROW
   ========================================================== */

.register-step .form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

    width: 100%;
}


/* ==========================================================
   REGISTER FIELDS
   ========================================================== */

.register-step .field {
    margin-bottom: 7px;
}


.register-step input,
.register-step select {
    width: 100%;

    height: 46px;
    min-height: 46px;

    padding: 0 16px;

    border: 1px solid var(--border-color);

    border-radius: 15px;

    background: #fff;

    color: var(--text-primary);

    font-family: var(--font-body);

    font-size: 14px;

    box-sizing: border-box;

    transition: var(--transition-fast);
}


.register-step input::placeholder {
    color: var(--text-secondary);
}


.register-step input:focus,
.register-step select:focus {
    outline: none;

    border-color: var(--gold-500);

    box-shadow:
        0 0 0 3px rgba(242,178,51,.15);
}


/* ==========================================================
   REGISTER FIELD HINT
   ========================================================== */

.register-step .field-hint {
    min-height: 0;

    margin-top: 3px;

    font-size: 11px;

    line-height: 1.2;

    color: var(--text-secondary);
}


/* ==========================================================
   REGISTER ERROR
   ========================================================== */

.register-step .error-text {
    font-size: 11px;

    line-height: 1.2;

    margin-top: 3px;

    color: var(--danger);
}


/* ==========================================================
   STEP BUTTONS
   ========================================================== */

.step-buttons {
    display: grid;

    grid-template-columns: 175px 1fr;

    gap: 14px;

    width: 100%;

    margin-top: 9px;
}


.step-buttons .btn-primary,
.step-buttons .btn-back {
    margin-top: 0;
}


/* ==========================================================
   SINGLE NEXT BUTTON
   ========================================================== */

.register-step > .next-step {
    height: 48px;

    min-height: 48px;

    margin-top: 8px;

    font-size: 15px;
}


/* ==========================================================
   PASSWORD INFO
   ========================================================== */

.password-info {
    color: var(--text-secondary);

    font-size: 12px;

    line-height: 1.3;

    margin: 1px 0 5px;
}


/* ==========================================================
   PASSWORD STEP
   ========================================================== */

.register-step .password-toggle {
    top: 23px;

    right: 15px;
}


.register-step .checkbox-row {
    margin: 4px 0 7px;

    gap: 8px;

    font-size: 14px;
}


.register-step .checkbox-row input {
    width: 18px;
    height: 18px;

    min-width: 18px;
    min-height: 18px;
}


/* ==========================================================
   OTP EMAIL BOX
   ========================================================== */

.otp-email-box {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 13px 16px;

    margin-bottom: 14px;

    border: 1px solid #ead4d4;

    border-radius: 16px;

    background: #fcf7f7;

    box-sizing: border-box;
}


.otp-email-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #f4e4e4;

    color: var(--primary-700);
}


.otp-email-icon svg {
    width: 23px;
    height: 23px;
}


.otp-email-content {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 2px;
}


.otp-email-content span {
    font-size: 12px;

    color: var(--text-secondary);
}


.otp-email-content strong {
    font-size: 16px;

    color: var(--primary-700);

    word-break: break-word;
}


/* ==========================================================
   OTP LABEL
   ========================================================== */

.otp-label {
    display: block;

    color: var(--text-primary);

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 8px;
}


/* ==========================================================
   OTP INPUTS
   ========================================================== */

.otp-inputs {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 9px;
}


.otp-box {
    width: 54px !important;
    height: 58px !important;

    min-width: 54px !important;
    min-height: 58px !important;

    padding: 0 !important;

    text-align: center;

    font-size: 21px !important;

    font-weight: 700;

    color: var(--text-primary);

    border-radius: 14px !important;

    border: 1px solid var(--border-color);
}


.otp-box:focus {
    border-color: var(--gold-500);

    box-shadow:
        0 0 0 3px rgba(242,178,51,.15);
}


/* ==========================================================
   OTP STATUS
   ========================================================== */

.otp-status {
    min-height: 18px;

    font-size: 13px;

    line-height: 1.3;

    margin: 4px 0;

    text-align: left;
}


.otp-status.success {
    color: #198754;
}


.otp-status.error {
    color: var(--danger);
}


/* ==========================================================
   OTP RESEND
   ========================================================== */

.otp-resend {
    display: flex;

    align-items: center;
    justify-content: center;

    margin: 4px 0 10px;
}


.otp-resend button {
    border: none;

    background: transparent;

    color: #8b98aa;

    font-family: var(--font-body);

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    padding: 2px 5px;
}


.otp-resend button:not(:disabled):hover {
    color: var(--primary-700);

    text-decoration: underline;
}


.otp-resend button:disabled {
    cursor: default;

    opacity: 1;
}


/* ==========================================================
   OTP ACTION BUTTONS
   VERIFY + BACK SAME LINE
   ========================================================== */

.otp-action-buttons {
    width: 100%;

    display: grid;

    grid-template-columns: 175px 1fr;

    gap: 14px;

    margin-top: 9px;
}


.otp-action-buttons .btn-back,
.otp-action-buttons .otp-verify-btn {
    width: 100%;

    height: 48px;

    min-height: 48px;

    margin: 0 !important;

    box-sizing: border-box;
}


.otp-action-buttons .btn-back {
    font-size: 15px;
}


.otp-action-buttons .otp-verify-btn {
    font-size: 15px !important;
}


/* ==========================================================
   REGISTER FOOTER
   ========================================================== */

.register-card .auth-footer {
    margin-top: 10px;

    font-size: 13px;
}


/* ==========================================================
   TABLET
   481px - 768px
   ========================================================== */

@media (min-width: 481px) and (max-width: 768px) {

    .auth-page {
        padding: 16px;
    }


    .auth-card {
        padding: 28px;

        border-radius: 24px;
    }


    .login-card {
        width: 100%;

        max-width: 500px;

        height: auto;

        min-height: 0;

        max-height: none;

        padding: 24px;

        overflow: visible;
    }


    .register-card {
        max-width: 620px;

        padding: 22px 28px 20px;
    }


    .auth-title {
        font-size: 28px;
    }


    .auth-logo {
        width: 64px;
    }


    .auth-subtitle::before,
    .auth-subtitle::after {
        width: 38px;
    }


    .register-card .auth-title {
        font-size: 28px;
    }


    /* STEP INDICATOR */

    .register-steps {
        margin: 7px 0 15px;
    }


    .step-item span {
        width: 35px;
        height: 35px;

        font-size: 14px;
    }


    .step-item small {
        font-size: 10px;
    }


    .step-line {
        margin-top: 17px;
    }


    /* STEP CONTENT */

    .step-title {
        font-size: 23px;
    }


    .step-description {
        font-size: 13px;

        margin-bottom: 11px;
    }


    .register-step input,
    .register-step select {
        height: 46px;

        min-height: 46px;

        font-size: 13px;
    }


    .register-step .form-row {
        gap: 12px;
    }


    .step-buttons {
        grid-template-columns: 150px 1fr;

        gap: 12px;
    }


    /* OTP */

    .otp-box {
        width: 50px !important;

        min-width: 50px !important;

        height: 54px !important;

        min-height: 54px !important;
    }


    .otp-action-buttons {
        grid-template-columns: 150px 1fr;

        gap: 12px;
    }


    .form-row {
        grid-template-columns: 1fr 1fr;
    }

}


/* ==========================================================
   SMALL MOBILE
   <= 480px
   ========================================================== */

@media (max-width: 480px) {

    .auth-page {
        padding: 10px;

        align-items: center;
    }


    /* ======================================================
       LOGIN MOBILE
       ====================================================== */

    .login-card {
        width: 100%;

        max-width: 380px;

        height: auto;

        min-height: 0;

        max-height: none;

        padding: 20px 18px 24px;

        border-radius: 22px;

        overflow: visible;
    }


    .auth-header {
        margin-bottom: 11px;
    }


    .auth-logo {
        width: 56px;

        margin-bottom: 5px;
    }


    .auth-title {
        font-size: 24px;

        line-height: 1.1;
    }


    .auth-subtitle {
        font-size: 10px;

        letter-spacing: 2px;

        gap: 7px;
    }


    .auth-subtitle::before,
    .auth-subtitle::after {
        width: 28px;
    }


    .auth-form {
        gap: 8px;
    }


    .field input,
    .field select {
        height: 44px;

        min-height: 44px;

        font-size: 11px;

        padding-left: 48px;

        padding-right: 44px;
    }


    .field-icon {
        top: 22px;

        left: 15px;

        width: 18px;

        height: 18px;
    }


    .password-toggle {
        top: 22px;

        right: 15px;
    }


    .auth-options {
        justify-content: flex-end;

        margin-top: 0;
    }


    .auth-options a {
        font-size: 12px;
    }


    .btn-primary {
        height: 43px;

        min-height: 43px;

        font-size: 14px;

        margin-top: 4px;
    }


    .auth-divider {
        font-size: 11px;

        margin: 9px 0 6px;

        gap: 7px;
    }


    .register-link {
        font-size: 12px;

        margin-top: 2px;
    }


    .register-link a {
        font-size: 13px;
    }


    /* ======================================================
       REGISTER MOBILE
       ====================================================== */

    .register-card {
        width: 100%;

        max-width: 380px;

        height: auto;

        min-height: 0;

        max-height: none;

        padding: 20px 18px 22px;

        border-radius: 22px;

        overflow: visible;
    }


    .register-card .auth-header {
        margin-bottom: 10px;
    }


    .register-card .auth-logo {
        width: 56px;

        margin-bottom: 5px;
    }


    .register-card .auth-title {
        font-size: 24px;

        line-height: 1.1;
    }


    .register-card .auth-subtitle {
        font-size: 10px;

        letter-spacing: 2px;

        gap: 7px;
    }


    .register-card .auth-subtitle::before,
    .register-card .auth-subtitle::after {
        width: 28px;
    }


    /* ======================================================
       MOBILE STEP INDICATOR
       ====================================================== */

    .register-steps {
        margin: 7px 0 14px;

        width: 100%;
    }


    .step-item span {
        width: 32px;

        height: 32px;

        font-size: 13px;
    }


    .step-item small {
        font-size: 9px;

        margin-top: 4px;
    }


    .step-line {
        margin: 16px 4px 0;

        min-width: 8px;
    }


    /* ======================================================
       MOBILE STEP CONTENT
       ====================================================== */

    .step-title {
        font-size: 21px;

        line-height: 1.15;

        margin-bottom: 3px;
    }


    .step-description {
        font-size: 11px;

        line-height: 1.35;

        margin-bottom: 10px;
    }


    /* ======================================================
       MOBILE FORM ROW
       ====================================================== */

    .register-step .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .register-step .field {
        margin-bottom: 7px;
    }


    .register-step input,
    .register-step select {
        height: 44px;

        min-height: 44px;

        font-size: 12px;

        padding: 0 14px;

        border-radius: 14px;
    }


    .register-step input::placeholder {
        font-size: 12px;
    }


    .register-step .field-hint {
        font-size: 10px;

        margin-top: 2px;
    }


    .register-step .error-text {
        font-size: 10px;

        margin-top: 2px;
    }


    /* ======================================================
       MOBILE BUTTONS
       ====================================================== */

    .step-buttons {
        grid-template-columns: 1fr 1fr;

        gap: 9px;

        margin-top: 7px;
    }


    .step-buttons .btn-primary,
    .step-buttons .btn-back {
        height: 44px;

        min-height: 44px;

        font-size: 13px;

        margin-top: 0;
    }


    .register-step > .next-step {
        height: 45px;

        min-height: 45px;

        font-size: 14px;

        margin-top: 6px;
    }


    /* ======================================================
       MOBILE PASSWORD
       ====================================================== */

    .register-step .password-toggle {
        top: 22px;

        right: 14px;
    }


    .password-info {
        font-size: 10px;

        margin: 1px 0 4px;
    }


    .register-step .checkbox-row {
        font-size: 11px;

        gap: 6px;

        margin: 3px 0 6px;
    }


    .register-step .checkbox-row input {
        width: 16px;

        height: 16px;

        min-width: 16px;

        min-height: 16px;
    }


    /* ======================================================
       MOBILE OTP
       ====================================================== */

    .otp-email-box {
        gap: 10px;

        padding: 11px 12px;

        margin-bottom: 12px;

        border-radius: 14px;
    }


    .otp-email-icon {
        width: 38px;

        height: 38px;

        flex: 0 0 38px;

        border-radius: 10px;
    }


    .otp-email-icon svg {
        width: 20px;

        height: 20px;
    }


    .otp-email-content span {
        font-size: 10px;
    }


    .otp-email-content strong {
        font-size: 13px;
    }


    .otp-label {
        font-size: 12px;

        margin-bottom: 7px;
    }


    .otp-inputs {
        gap: 6px;

        margin-bottom: 7px;
    }


    .otp-box {
        width: 43px !important;

        min-width: 43px !important;

        height: 48px !important;

        min-height: 48px !important;

        font-size: 18px !important;

        border-radius: 12px !important;
    }


    .otp-status {
        font-size: 11px;

        min-height: 16px;

        margin: 3px 0;
    }


    .otp-resend {
        margin: 3px 0 8px;
    }


    .otp-resend button {
        font-size: 12px;
    }


    /* ======================================================
       MOBILE OTP ACTIONS
       BACK + VERIFY SAME LINE
       ====================================================== */

    .otp-action-buttons {
        width: 100%;

        grid-template-columns: 1fr 1.55fr;

        gap: 8px;

        margin-top: 8px;

        min-width: 0;
    }


    .otp-action-buttons .btn-back,
    .otp-action-buttons .otp-verify-btn {
        width: 100%;

        height: 44px;

        min-height: 44px;

        min-width: 0;

        padding: 0 7px;

        margin: 0 !important;

        box-sizing: border-box;

        white-space: nowrap;

        overflow: hidden;
    }


    .otp-action-buttons .btn-back {
        font-size: 12px !important;
    }


    .otp-action-buttons .otp-verify-btn {
        font-size: 10.5px !important;

        font-weight: 700;

        letter-spacing: -0.35px;
    }


    .register-card .auth-footer {
        font-size: 11px;

        margin-top: 9px;
    }

}


/* ==========================================================
   VERY SMALL MOBILE
   <= 360px
   ========================================================== */

@media (max-width: 360px) {

    .auth-page {
        padding: 7px;
    }


    .register-card {
        padding: 17px 14px 19px;

        border-radius: 19px;
    }


    .login-card {
        padding: 18px 15px 21px;

        border-radius: 19px;
    }


    .register-card .auth-title,
    .auth-title {
        font-size: 21px;
    }


    .register-card .auth-logo,
    .auth-logo {
        width: 50px;
    }


    .register-steps {
        margin-bottom: 13px;
    }


    .step-item span {
        width: 30px;

        height: 30px;

        font-size: 12px;
    }


    .step-item small {
        font-size: 8px;
    }


    .step-line {
        margin-top: 15px;

        margin-left: 3px;

        margin-right: 3px;
    }


    .step-title {
        font-size: 20px;
    }


    .step-description {
        font-size: 11px;
    }


    .register-step input,
    .register-step select {
        height: 42px;

        min-height: 42px;

        font-size: 11px;
    }


    .step-buttons {
        gap: 7px;
    }


    .step-buttons .btn-primary,
    .step-buttons .btn-back {
        height: 42px;

        min-height: 42px;

        font-size: 12px;
    }


    /* OTP */

    .otp-inputs {
        gap: 4px;
    }


    .otp-box {
        width: 39px !important;

        min-width: 39px !important;

        height: 44px !important;

        min-height: 44px !important;

        font-size: 17px !important;
    }


    .otp-action-buttons {
        width: 100%;

        grid-template-columns: 1fr 1.6fr;

        gap: 6px;

        min-width: 0;
    }


    .otp-action-buttons .btn-back,
    .otp-action-buttons .otp-verify-btn {
        width: 100%;

        height: 42px;

        min-height: 42px;

        min-width: 0;

        padding: 0 5px;

        margin: 0 !important;

        box-sizing: border-box;

        white-space: nowrap;

        overflow: hidden;
    }


    .otp-action-buttons .btn-back {
        font-size: 11px !important;
    }


    .otp-action-buttons .otp-verify-btn {
        font-size: 9.5px !important;

        font-weight: 700;

        letter-spacing: -0.35px;
    }

}

.login-error {
    margin-bottom: 14px;
    padding: 11px 13px;

    background: #fff1f1;
    border: 1px solid #f1c4c4;
    border-radius: 8px;

    color: #b42318;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}