/* public/css/modules/auth.css */
/* ETEO GUARD - DEEP SPACE CYBERPUNK (Navy & Gold Edition) */

:root {
    --neon-gold: #FFD700;    /* The Crown Jewel */
    --neon-cyan: #00f3ff;    /* Cyber Accent */
    --deep-navy: #050b14;    /* Void */
    --rich-navy: #0a192f;    /* Structure */
    --glass-fill: rgba(10, 25, 47, 0.85);
    --grid-line: rgba(255, 215, 0, 0.15); /* Gold Grid */
    --text-primary: #e2e8f0;
    --text-muted: #94a3b8;
}

body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 50% 120%, #1e3a8a 0%, #020617 60%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
    color: var(--text-primary);
}

/* --- THE STAGE (3D Scene) --- */
.scene {
    position: relative;
    width: 100%; height: 100%;
    perspective: 1200px; /* Deeper perspective */
    perspective-origin: 50% 65%;
    transform-style: preserve-3d;
    overflow: hidden;
}

/* STARS BACKGROUND (Parallax Layer) */
.stars {
    position: absolute;
    width: 200%; height: 200%;
    top: -50%; left: -50%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, #fff, rgba(0,0,0,0));
    background-size: 200px 200px;
    opacity: 0.3;
    animation: galaxy-drift 120s linear infinite;
    transform: translateZ(-200px);
}
@keyframes galaxy-drift { from { transform: translateZ(-200px) rotate(0deg); } to { transform: translateZ(-200px) rotate(360deg); } }

/* --- 3D OBJECTS ROOT --- */
.complex-container {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    transform-style: preserve-3d;
    /* Initial Camera Position */
    transform: translate(-50%, 10%) rotateX(-5deg) rotateY(-25deg); 
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- THE TOWER (Monolith Strategy) --- */
.tower {
    position: absolute;
    transform-style: preserve-3d;
    bottom: 0; left: -75px; 
    width: 150px; height: 500px;
}

.tower-main {
    transform: translateZ(0); 
}

/* FACES */
.face {
    position: absolute;
    background-color: var(--glass-fill);
    border: 1px solid rgba(255, 215, 0, 0.3); /* Gold border */
    box-shadow: inset 0 0 40px rgba(10, 25, 47, 0.9);
    backface-visibility: visible; /* Show inside */
}

/* TEXTURES */
.texture-grid {
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 100% 40px, 50% 100%;
}

.t-front { width: 150px; height: 500px; transform: translateZ(75px); }
.t-back  { width: 150px; height: 500px; transform: rotateY(180deg) translateZ(75px); }
.t-right { width: 150px; height: 500px; transform: rotateY(90deg) translateZ(75px); filter: brightness(0.8); }
.t-left  { width: 150px; height: 500px; transform: rotateY(-90deg) translateZ(75px); filter: brightness(0.8); }
.t-top   { 
    width: 150px; height: 150px; 
    transform: rotateX(90deg) translateZ(75px);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 50px var(--neon-gold);
    border: 2px solid var(--neon-gold);
}

/* THE FLOOR (Infinite Grid) */
.floor {
    position: absolute;
    width: 3000px; height: 3000px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateX(90deg) translateZ(150px);
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px), /* Cyan Grid lines */
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle, black 0%, transparent 60%);
    pointer-events: none;
}

/* --- UI LAYER (Glassmorphism) --- */
.ui-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 12%; 
    pointer-events: none;
}

.login-card {
    pointer-events: auto;
    width: 400px;
    padding: 45px;
    background: rgba(10, 25, 47, 0.7); /* Deep Navy Glass */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle Gold Border */
    border-radius: 20px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 215, 0, 0.1); /* Inner Glow ring */
    transform: translateY(30px);
    opacity: 0;
    animation: fade-up 1s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.brand-header {
    margin-bottom: 35px;
    text-align: left;
}
.brand-logo {
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 15px;
}
.logo-icon {
    font-size: 36px;
    color: var(--neon-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}
.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 40%, var(--neon-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-tagline {
    font-size: 0.85rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

/* INPUTS */
.input-group {
    position: relative;
    margin-bottom: 25px;
}
.input-icon {
    position: absolute;
    left: 18px; top: 16px;
    color: var(--text-muted);
    transition: 0.3s;
}
.form-input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.form-input:focus {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--neon-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}
.form-input:focus + .input-icon { color: var(--neon-gold); }

/* BUTTON */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #B8860B 0%, var(--neon-gold) 100%);
    border: none;
    border-radius: 12px;
    color: #000; /* Contrast black text on Gold */
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.25);
    display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* FOOTER */
.card-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ANIMATIONS */
@keyframes fade-up { to { transform: translateY(0); opacity: 1; } }

/* BUILDINGS IN BACKGROUND */
.building-group { position: absolute; transform-style: preserve-3d; }
.b1 { left: -200px; transform: translateZ(-100px); }
.b2 { left: 200px; transform: translateZ(-50px); }
