/* --- FONTS --- */
@font-face {
    font-family: 'BDO Grotesk';
    src: url('../../fonts/BDOGrotesk-Regular.woff2') format('woff2'),
         url('../../fonts/BDOGrotesk-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BDO Grotesk';
    src: url('../../fonts/BDOGrotesk-Medium.woff2') format('woff2'),
         url('../../fonts/BDOGrotesk-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BDO Grotesk';
    src: url('../../fonts/BDOGrotesk-Bold.woff2') format('woff2'),
         url('../../fonts/BDOGrotesk-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- VARIABLES & RESET --- */
:root {
    /* DARK MODE (Default) */
    --bg-main: #050505;
    --bg-section-alt: #080808;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --nav-bg: rgba(5, 5, 5, 0.85);
    
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --text-inverse: #000000;
    
    --primary: #ccff00; /* Lime Green */
    --primary-dim: rgba(204, 255, 0, 0.1);
    --primary-glow: rgba(204, 255, 0, 0.4);
    
    --border: rgba(255,255,255,0.08);
    --shadow-color: rgba(0,0,0,0.5);

    --font-main: 'BDO Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* --- BACKGROUNDS --- */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-size: 60px 60px;
    background-image: linear-gradient(to right, var(--border) 1px, transparent 1px),
                      linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 90%);
}

.parallax-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}
.blob-1 { width: 400px; height: 400px; background: var(--primary); top: 10%; left: -100px; }
.blob-2 { width: 300px; height: 300px; background: #00ff9d; bottom: 20%; right: -50px; }

/* --- CONTAINER & CARD --- */
.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px -10px var(--shadow-color);
    text-align: center;
}

/* --- TYPOGRAPHY --- */
h2 {
    color: var(--text-main);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.highlight-text {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 15px 0;
    text-shadow: 0 0 20px rgba(204,255,0,0.2);
}

/* --- FORMS --- */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 2px var(--primary-dim);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    background-color: #d9ff33;
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: auto;
    margin: 5px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

.btn-danger {
    background: rgba(255, 59, 48, 0.15);
    color: #ff453a;
    border: 1px solid rgba(255, 59, 48, 0.3);
    margin-top: 30px;
}

.btn-danger:hover {
    background: rgba(255, 59, 48, 0.25);
    border-color: #ff453a;
}

.btn-google {
    background-color: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
}

.btn-google:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-apple {
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-apple:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider span {
    padding: 0 10px;
}

/* --- UTILS --- */
a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.error-message {
    color: #ff453a;
    background: rgba(255, 59, 48, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 59, 48, 0.2);
    font-size: 0.9rem;
    margin-top: 20px;
    display: none;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 10px;
    width: 100%;
}

.logo-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--primary-glow));
    animation: spin-slow 10s linear infinite;
}

@keyframes spin-slow { 
    100% { transform: rotate(360deg); } 
}

.logo-text {
    height: 20px;
    filter: brightness(0) invert(1);
}

.dashboard-section {
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.dashboard-section h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}