/* == SEND OTP BUTTON == */
.btn-send-otp {
    background: var(--cyan-light);
    color: var(--cyan-dark);
    border: 1.5px solid var(--cyan);
    border-radius: 0.5rem;
    padding: 0.9rem 1rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}

    .btn-send-otp:hover {
        background: var(--cyan);
        color: #fff;
    }

    .btn-send-otp:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* == EMAIL INPUT MOBILE == */
@media (max-width: 480px) {
    #email-input-row {
        flex-direction: column;
    }

    #emailInput {
        width: 100%;
        font-size: 1.1rem;
        padding: 0.85rem 1rem;
    }

    .btn-send-otp {
        width: 60%;
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
}

/* == OTP BOXES == */
.otp-row {
    animation: fadeSlideDown .25s ease;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.otp-box {
    width: 44px;
    height: 48px;
    text-align: center;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--surface-highest);
    border: 1.5px solid transparent;
    border-radius: 0.5rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
    caret-color: var(--cyan);
}

    .otp-box:focus {
        outline: none;
        background: var(--surface-white);
        border-color: var(--cyan);
        box-shadow: 0 0 0 3px rgba(0,168,232,0.15);
    }

    .otp-box.is-filled {
        border-color: var(--navy);
        background: var(--navy-soft);
    }

/* == OTP MOBILE LAYOUT == */
@media (max-width: 480px) {
    .otp-inputs-row {
        flex-wrap: wrap;
    }

    .otp-box {
        width: 40px;
        height: 44px;
    }

    .btn-verify-otp {
        width: 100%;
    }
}

/* == VERIFY BUTTON == */
.btn-verify-otp {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.1rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(13,41,112,0.2);
    transition: transform .15s, opacity .2s;
}

    .btn-verify-otp:hover {
        opacity: 0.88;
        transform: scale(1.02);
    }

/* == RESEND == */
.otp-resend {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.otp-resend-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--cyan-dark);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: color .2s;
}

    .otp-resend-btn:hover {
        color: var(--navy);
    }

/* == SERVER VALIDATION ERROR BANNER == */
.server-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    background: #fff3f3;
    border: 1px solid #f5c2c2;
    border-radius: 10px;
    margin-bottom: 1.75rem;
    animation: fadeSlideDown .2s ease;
}

.server-error-banner > .material-symbols-outlined {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #b91c1c;
    font-variation-settings: 'FILL' 1;
}

.server-error-body {
    flex: 1;
    min-width: 0;
}

.server-error-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #b91c1c;
    margin-bottom: 0.35rem;
}

.server-error-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
    color: #b91c1c;
    line-height: 1.7;
}

.server-error-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #b91c1c;
    opacity: 0.5;
    flex-shrink: 0;
    line-height: 1;
    transition: opacity .15s;
}

    .server-error-close:hover { opacity: 1; }
    .server-error-close .material-symbols-outlined { font-size: 1rem; }

/* == EMAIL ERROR MESSAGE == */
.otp-error-msg {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem;
    background: #fff3f3;
    border: 1px solid #f5c2c2;
    border-radius: 8px;
    font-size: 0.84rem;
    color: #b91c1c;
    line-height: 1.5;
    animation: fadeSlideDown .2s ease;
}

    .otp-error-msg .material-symbols-outlined {
        font-size: 1rem;
        flex-shrink: 0;
        margin-top: 0.1rem;
        color: #b91c1c;
        font-variation-settings: 'FILL' 1;
    }

/* == SUCCESS MESSAGE == */
.otp-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0a7c42;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.85rem;
    background: #e8f8f0;
    border: 1.5px solid #9fdfc2;
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    animation: fadeSlideDown .3s ease;
}

    .otp-success .material-symbols-outlined {
        font-size: 1.15rem;
        color: #0a7c42;
        font-variation-settings: 'FILL' 1;
    }
