/* ==========================================
   MOBILE SIGNIN/SIGNUP STYLES (PURE MODAL MIRROR)
   ========================================== */

main:has(.auth-body) {
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

.auth-body {
    background: rgba(0, 0, 0, 0.7) !important; 
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    /* EXACT MIRROR OF EDUCATION MODAL OVERLAY POSITIONING */
    height: calc(100svh - 140px) !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important; /* Remove page padding to allow perfect centering */
    font-family: 'Outfit', sans-serif;
    color: #fff;
    overflow: hidden;
    position: relative;
    z-index: 9999;
}

/* Primary Chassis - Matching Education Card Modal Standard (info-modal.css Dominant) */
.auth-page-container {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.95) 0%, rgba(10, 14, 23, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 92% !important; /* Matched to info-modal.css:34 */
    height: auto !important; 
    max-height: 85% !important; /* Matched to info-modal.css:36 */
    border-radius: 20px;
    position: relative;
    z-index: 10; /* Stay in front of stars */
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    
    /* Mirroring info-modal.css shadow for 1:1 feel */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    
    margin: auto !important; /* Perfect flex centering */
    
    /* Adding the 'Pop' animation parity */
    transform: scale(1) translateY(0) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Close Icon - Exact Placement Mirroring .modal-close in education.css */
.neo-modal-close-icon {
    position: absolute !important;
    top: 1rem !important; 
    right: 1rem !important; 
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1.2rem !important;
    z-index: 100 !important;
    text-decoration: none !important;
}

/* PROMO PANEL (TOP / FIXED) - Matching Education Modal System */
.neo-modal-promo {
    width: 100% !important;
    height: 155px !important; /* Fixed Height parity */
    position: relative !important;
    background: #000 !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; 
    align-items: center !important;
    padding: 1.25rem 1rem !important; /* Exact sync with info-modal.css promo padding */
    text-align: center !important;
}

/* Glass Signature Pill - Centered flow */
.neo-modal-promo .promo-tag {
    position: relative !important;
    display: inline-flex !important;
    margin-bottom: 0.75rem !important; 
    padding: 0.35rem 1.1rem !important;
    border-radius: 100px !important;
    font-size: 0.65rem !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #fff !important;
    background: var(--primary) !important;
    z-index: 10 !important;
}

.neo-modal-promo h1 {
    font-size: 1.25rem !important; 
    line-height: 1.2 !important;
    margin: 0 0 0.5rem !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-align: center !important;
}

.neo-modal-promo p {
    font-size: 0.8rem !important; 
    line-height: 1.4 !important;
    color: rgba(255,255,255,0.6) !important;
    margin: 0 !important;
    text-align: center !important;
    max-width: 280px !important; /* Matched to info-modal.css max-width */
}

/* Visibility Control */
.promo-desc-desktop { display: none !important; }
.promo-desc-mobile { display: block !important; }

/* INFO SIDE (BOTTOM / SCROLLABLE) - Matching Education Card Modal Standard */
.neo-modal-info-side {
    padding: 1.5rem !important; /* Matching education modal padding */
    overflow-y: auto !important; /* Essential Scrollbar */
    flex: 1 !important; /* Flex grow like education modal */
    background: rgba(10, 14, 23, 0.5) !important;
    display: flex;
    flex-direction: column;
}

/* Modal Scrollbar Precision */
.neo-modal-info-side::-webkit-scrollbar {
    width: 4px;
}
.neo-modal-info-side::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.neo-modal-info-side::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.neo-modal-info-side h2 {
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.neo-modal-info-side p.subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.4;
}

/* Tight Form Elements */
.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 0.95rem;
}

/* ACTION BUTTON - Desktop Mirror */
.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%) !important;
    color: #000 !important;
    padding: 1rem !important;
    border-radius: 12px !important;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0 !important;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 800;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-divider span { padding: 0 0.75rem; }

.btn-google {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem !important;
    border-radius: 100px !important;
    font-size: 0.95rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.auth-footer {
    margin-top: 1.75rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    padding-bottom: 1rem;
}

.auth-footer a {
    color: #ffcc33;
    font-weight: 800;
    text-decoration: none;
}
