/* 3. AUTH & LANDING MODULE (BILLION DOLLAR VIBE) */

/* --- ANIMATIONS --- */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }
@keyframes glowPulse { 0% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.2); } 50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.6); } 100% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.2); } }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* --- LANDING PAGE LAYOUT --- */
.landing-container {
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at 50% -20%, #1e1b4b 0%, #020205 100%);
    display: flex; flex-direction: column;
    overflow: hidden; position: relative;
    color: white;
}

/* Hero Section */
.hero-section {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; z-index: 2;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px; border-radius: 50px; font-size: 0.75rem; letter-spacing: 0.2em;
    color: var(--neon-cyan); text-transform: uppercase; margin-bottom: 24px;
    backdrop-filter: blur(10px); animation: slideUpFade 0.8s ease-out;
}

.hero-title {
    font-size: 5rem; font-weight: 900; line-height: 1.1; margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em; animation: slideUpFade 0.8s ease-out 0.1s backwards;
}

.hero-subtitle {
    font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin-bottom: 40px;
    line-height: 1.6; animation: slideUpFade 0.8s ease-out 0.2s backwards;
}

.hero-actions {
    display: flex; gap: 20px; animation: slideUpFade 0.8s ease-out 0.3s backwards;
}

/* Primary "Glow" Button */
.btn-cyber-primary {
    background: white; color: black; padding: 16px 40px;
    border-radius: 12px; font-weight: 800; letter-spacing: 0.05em; border: none;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; overflow: hidden;
}
.btn-cyber-primary:hover {
    transform: translateY(-2px); box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
}

/* Secondary "Glass" Button */
.btn-cyber-glass {
    background: rgba(255, 255, 255, 0.05); color: white; padding: 16px 40px;
    border-radius: 12px; font-weight: 700; letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer;
    transition: all 0.3s ease; backdrop-filter: blur(10px);
}
.btn-cyber-glass:hover {
    background: rgba(255, 255, 255, 0.1); border-color: white;
}

/* Background Orbs */
.orb {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; z-index: 1;
}
.orb-1 { width: 500px; height: 500px; background: #4f46e5; top: -100px; left: -100px; animation: float 10s infinite ease-in-out; }
.orb-2 { width: 400px; height: 400px; background: #0ea5e9; bottom: 0; right: -100px; animation: float 14s infinite ease-in-out reverse; }

/* --- AUTH SCREENS (LOGIN / SIGNUP) --- */
.auth-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center; z-index: 1000;
}

.auth-card {
    width: 420px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    animation: slideUpFade 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.auth-card-register {
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}

.auth-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 28px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
}

.auth-mode-switch button {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.auth-mode-switch button.active {
    background: var(--neon-cyan);
    color: #020617;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
}

/* Form Styles */
.auth-header { margin-bottom: 30px; text-align: center; }
.auth-header h2 { font-size: 1.8rem; margin: 0 0 10px 0; color: white; }
.auth-header p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.auth-header > i { display: block; font-size: 2.5rem; margin-bottom: 16px; }

.cyber-input-group { margin-bottom: 20px; text-align: left; }
.cyber-input-group label { display: block; color: var(--text-secondary); font-size: 0.75rem; margin-bottom: 8px; font-weight: 700; letter-spacing: 0.05em; }
.cyber-input {
    width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 16px; border-radius: 10px; color: white; font-family: inherit;
    transition: all 0.2s;
}
.cyber-input:focus { outline: none; border-color: var(--neon-cyan); background: rgba(0, 243, 255, 0.05); }

.auth-footer { margin-top: 24px; text-align: center; font-size: 0.85rem; color: var(--text-secondary); }
.link-highlight { color: var(--neon-cyan); cursor: pointer; font-weight: 700; text-decoration: none; transition: 0.2s; }
.link-highlight:hover { text-shadow: 0 0 8px var(--neon-cyan); }

.registration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.registration-grid .auth-consent,
.registration-grid .auth-honeypot,
.registration-grid .auth-invitation-banner {
    grid-column: 1 / -1;
}

.auth-invitation-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.08);
    color: var(--text-primary);
}

.auth-invitation-banner > i {
    color: var(--neon-cyan);
    font-size: 1.25rem;
}

.auth-invitation-banner strong,
.auth-invitation-banner span {
    display: block;
}

.auth-invitation-banner span {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.auth-invitation-banner.error {
    border-color: rgba(255, 45, 117, 0.4);
    background: rgba(255, 45, 117, 0.08);
}

.auth-invitation-banner.error > i {
    color: var(--neon-pink);
}

.cyber-input[readonly] {
    color: var(--text-secondary);
    cursor: not-allowed;
}

.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 20px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
    cursor: pointer;
}

.auth-consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--neon-cyan);
    flex: 0 0 auto;
}

.auth-consent a,
.auth-text-action {
    color: var(--neon-cyan);
    font-weight: 800;
}

.auth-text-action {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.auth-honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.back-btn { position: absolute; top: 20px; left: 20px; background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.2rem; transition: 0.2s; }
.back-btn:hover { color: white; transform: translateX(-3px); }

@media (max-width: 480px) {
    .auth-overlay {
        align-items: center;
        padding: 12px;
    }

    .auth-card {
        width: min(420px, calc(100vw - 24px));
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        padding: 30px 22px;
        border-radius: 16px;
    }

    .auth-card-register {
        width: calc(100vw - 24px);
        padding: 24px 18px;
    }

    .auth-mode-switch {
        margin-bottom: 22px;
    }

    .auth-header {
        margin-bottom: 24px;
    }

    .auth-header h2 {
        font-size: 1.55rem;
    }

    .cyber-input-group {
        margin-bottom: 16px;
    }

    .registration-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .registration-grid .auth-consent,
    .registration-grid .auth-honeypot,
    .registration-grid .auth-invitation-banner {
        grid-column: auto;
    }

    .btn-cyber-primary {
        min-height: 48px;
        padding: 14px 20px;
    }
}

@media (max-height: 620px) {
    .auth-overlay {
        align-items: flex-start;
        overflow-y: auto;
    }

    .auth-card {
        margin: 12px auto;
    }
}
