/* ============================================================
   Auth Modal — Login / Register / Reset Password
   ============================================================ */

/* Panel visibility & transition */
.auth-panel-hidden {
    display: none !important;
}

.auth-panel-active {
    display: block;
    animation: authFadeIn 0.25s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Modal sizing */
#authModal .modal-dialog {
    max-width: 520px;
}

#authModal .modal-body {
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

/* Header inside each panel */
.auth-panel-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--landing-gray-200, #e2e8f0);
}

.auth-panel-header h4 {
    font-weight: 700;
    color: var(--landing-secondary, #0f172a);
}

.auth-panel-header p {
    font-size: 0.95rem;
}

/* Modal close button */
#authModal .btn-close {
    filter: brightness(0) invert(1);
}

/* Custom modal header background matching navbar */
#authModal .modal-header {
    background: #1e3a5f;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#authModal .modal-header .modal-title {
    color: #fff;
    font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
    #authModal .modal-body {
        padding: 1rem;
    }

    #authModal .modal-dialog {
        margin: 0.5rem;
    }
}
