/* --- 1. THEME & COLORS (Copied from Landing Page) --- */
:root {
    --bg-dark: #0a0a0a;
    --neon-blue: #00f0ff;
    --neon-red: #ff0055;
    --text-light: #ffffff;
    --text-muted: #888888;
    --shadow-intensity: 0.8;
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    perspective: 1000px;
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', 'Courier New', monospace;
    background-color: var(--bg-dark);
    color: var(--text-muted);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* --- Falling Code Background (For visual consistency) --- */
.falling-words-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
}

.code-column {
    position: absolute;
    white-space: pre;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

@keyframes fall-and-loop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(600vh); }
}
/* --------------------------------------------------- */

/* --- 2. AUTH CONTAINER & BOX STYLING --- */
.auth-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Allows it to push the footer down */
    z-index: 10;
}

.auth-box {
    background-color: rgba(20, 20, 20, 0.85); /* Semi-transparent dark background */
    backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    border: 2px solid var(--neon-blue);
    box-shadow: 
        0 0 25px rgba(0, 240, 255, 0.4), /* Neon outer glow */
        0 0 10px rgba(0, 240, 255, 0.8) inset; /* Inner glow */
    transition: var(--transition-medium);
    transform-style: preserve-3d;
    transform: translateZ(20px);
}
    
.auth-box:hover {
    transform: translateZ(30px) translateY(-5px);
    box-shadow: 
        0 0 40px rgba(0, 240, 255, 0.6),
        0 0 20px rgba(0, 240, 255, 1) inset;
}

.auth-box h2 {
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-shadow: 0 0 10px var(--neon-red);
}

/* --- 3. FORM ELEMENTS --- */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--neon-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    background-color: #1a1a1a;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-fast);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) inset;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red);
    background-color: #0d0d0d;
}

/* Placeholder style */
.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* --- 4. BUTTONS (Reused from Landing Page) --- */
.btn {
    display: block;
    width: 100%; /* Make buttons full width */
    padding: 14px 30px;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transform: translateZ(0);
}
    
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Primary Neon Blue CTA Button */
.btn-primary {
    background-color: var(--neon-blue);
    color: var(--bg-dark);
    box-shadow: 
        0 5px 20px rgba(0, 240, 255, var(--shadow-intensity)),
        0 0 25px var(--neon-blue) inset,
        0 0 5px var(--neon-blue);
    transform: translateZ(10px);
}

.btn-primary:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    box-shadow: 0 10px 40px var(--neon-blue), 0 0 40px var(--neon-blue) inset;
    transform: translateZ(20px) translateY(-3px) rotateX(1deg);
}

.btn-primary i {
    margin-right: 8px;
}
    
/* Dashboard Button (using btn-secondary style) */
.btn-secondary {
    background-color: transparent;
    color: var(--neon-red);
    border: 2px solid var(--neon-red);
    box-shadow: 0 0 10px rgba(255, 0, 85, var(--shadow-intensity));
    margin-top: 15px; /* Add margin to separate from login button */
}

.btn-secondary:hover {
    background-color: rgba(255, 0, 85, 0.1);
    box-shadow: 0 0 20px var(--neon-red), 0 0 30px var(--neon-red) inset;
    transform: translateZ(10px) translateY(-3px);
}
    
.btn-secondary i {
    margin-right: 8px;
}

/* --- 5. SWITCH AUTH & FOOTER --- */
.switch-auth {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.switch-auth a {
    color: var(--neon-red);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition-fast);
    text-shadow: 0 0 5px rgba(255, 0, 85, 0.5);
}

.switch-auth a:hover {
    color: var(--text-light);
    text-shadow: 0 0 10px var(--neon-red);
}

.footer {
    margin-top: auto; /* Push footer to the bottom */
    padding: 20px 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10;
}