/* ==============================================
   AUTH PAGE STYLES
   Specific transparency and layout for Login/Signup
   ============================================== */

/* --- RESTORED THEME FROM BACKUP --- */
:root {
    --deep-space: #0f172a;
    --navy-glass: rgba(30, 41, 59, 0.9);
    --starlight: #f1f5f9;
    --peach-glow: #F49F75;
    --teal-glow: #4ECDC4;
    --border-glass: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--teal-glow) 0%, #2a9d8f 100%);
}

body.auth {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--deep-space);
    color: var(--starlight);
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 3. The Scene Grid (Horizontal split, full height minus header) */
#shell-content.auth-shell {
    min-height: calc(100vh - 85px);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    box-sizing: border-box;
    padding-top: 80px;
    /* Reduced to balance centering */
    align-items: center;
    /* Restore vertical centering */
}

/* Left Context Section (Centered Content) */
.auth-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

/* Ambient Glow (Pseudo-element for boundless effect) */
.auth-left::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle closest-side, rgba(78, 205, 196, 0.15) 0%, transparent 100%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.auth-context {
    max-width: 420px;
    opacity: 0.75;
    position: relative;
    z-index: 2;
}

.auth-context h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a5f3fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(78, 205, 196, 0.2));
}

.auth-context p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.auth-features {
    list-style: none;
    padding: 0;
}

.auth-features li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.auth-features i {
    color: var(--teal-glow);
    width: 24px;
}

/* Right Login Section (Anchored Top) */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.3);
    position: relative;
}

/* Card Self-Containment */
.login-card {
    background: var(--navy-glass);
    border: 1px solid var(--border-glass);
    padding: 28px;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 5;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.login-logo {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 0px;
    display: block;
    color: white;
    text-decoration: none;
}

.login-logo i {
    color: var(--teal-glow);
}

/* === HORIZONTAL ROLE PILLS === */
.role-selector-pills {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.role-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-weight: 600;
}

.role-pill i {
    font-size: 1.2rem;
    opacity: 0.6;
    transition: 0.3s;
}

.role-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.role-pill.active {
    color: var(--deep-space);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    /* Fallback */
    background: var(--peach-glow);
    border-color: var(--peach-glow);
}

.role-pill.active i {
    opacity: 1;
}

/* FORM STYLES (Compact) */
.form-group {
    margin-bottom: 12px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    opacity: 0.8;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #1e293b;
    color: #f1f5f9;
    font-family: inherit;
    transition: 0.3s;
    font-size: 0.95rem;
}

.form-input:focus {
    border-color: var(--teal-glow);
    outline: none;
    background: rgba(15, 23, 42, 0.8);
}

.submit-btn {
    background: var(--gradient-primary);
    color: var(--deep-space);
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 0.95rem;
    transition: 0.3s;
    margin-top: 5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.2);
}

.social-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.divider {
    margin: 20px 0;
    border-top: 1px solid var(--border-glass);
    position: relative;
}

.divider span {
    background: #151e2e;
    padding: 0 8px;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    opacity: 0.6;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.2;
    animation: float linear infinite;
}

@keyframes float {
    from {
        transform: translateY(100vh);
    }

    to {
        transform: translateY(-10vh);
    }
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 900px) {
    body.auth {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    #shell-content.auth-shell {
        grid-template-columns: 1fr;
        height: auto;
        display: block;
        padding-top: 80px;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 20px;
        min-height: calc(100vh - 80px);
    }

    .login-card {
        max-width: 100%;
        padding: 24px !important;
        position: relative;
        z-index: 20;
        /* Ensure card stays above footer if visual overlap occurs */
    }

    /* Fix Footer Overlap on Small Screens */
    .auth-right {
        padding: 20px;
        padding-bottom: 120px;
        /* Extra clearance for footer */
        min-height: auto;
    }
}

/* === RECAPTCHA FIXES === */
#recaptcha-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    width: 100%;
    /* Prevent layout jump */
    min-height: 20px;
}

/* Force badge to not hide behind footer */
.grecaptcha-badge {
    z-index: 10000 !important;
    bottom: 80px !important;
    /* Move up slightly to avoid footer overlap */
}