::selection { background: #ffffff; color: #000000; }

body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
    animation: zoomInEntry 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes zoomInEntry {
    0% {
        transform: scale(1.2);
        filter: blur(15px);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        filter: blur(0px);
        opacity: 1;
    }
}

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0.12;
    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)' opacity='1'/%3E%3C/svg%3E");
}

.login-card {
    background: #111;
    border: 1px solid #222;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 10;
}


input {
    background: #0a0a0a;
    border: 1px solid #333;
    color: white;
    width: 100%;
    
    padding: 8px 12px !important; 
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
}
input:focus { border-color: white; background: #111; }

label {
    display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; 
    text-transform: uppercase; color: #666; margin-bottom: 0.5rem;
}

.submit-btn {
    background: white; color: black; border: 1px solid white;
    width: 100%; padding: 1rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.submit-btn:hover { background: #ccc; border-color: #ccc; transform: translateY(-2px); }
.submit-btn:disabled { background: #333; color: #666; border-color: #333; cursor: not-allowed; transform: none; }


.toggle-container { display: flex; gap: 1rem; margin-bottom: 2rem; border-bottom: 1px solid #222; padding-bottom: 2rem; }
.toggle-btn {
    flex: 1; background: transparent; border: 1px solid #222; color: #666; padding: 0.8rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease;
}
.toggle-btn:hover { border-color: #444; color: white; }
.toggle-btn.active { background: #1a1a1a; border-color: white; color: white; }

.auth-field { transition: all 0.4s; max-height: 100px; opacity: 1; overflow: hidden; margin-bottom: 1.5rem; }
.auth-field.hidden-field { max-height: 0; opacity: 0; margin-bottom: 0; }

.back-link {
    position: absolute; top: 2rem; left: 2rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #444;
    text-decoration: none; z-index: 20; transition: color 0.3s; text-transform: uppercase;
}
.back-link:hover { color: white; }

.loader { width: 16px; height: 16px; border: 2px solid #000; border-bottom-color: transparent; border-radius: 50%; display: inline-block; animation: rotation 1s linear infinite; }
@keyframes rotation { 100% { transform: rotate(360deg); } }