@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff;
    --neon-yellow: #ffff00;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.2);
    --chrome-gradient: linear-gradient(135deg, #e6e6fa 0%, #c0c0ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: #050510;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- TŁO I EFEKTY (Z Twojego kodu) --- */
.retro-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #050510 100%);
}

.y2k-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

.scanner-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}

.floating-orbs .retro-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 10s infinite ease-in-out;
}
.orb-1 { width: 300px; height: 300px; background: var(--neon-magenta); top: -10%; left: -10%; }
.orb-2 { width: 400px; height: 400px; background: var(--neon-cyan); bottom: -10%; right: -10%; animation-delay: -2s; }
.orb-3 { width: 200px; height: 200px; background: var(--neon-yellow); top: 40%; left: 40%; animation-delay: -4s; }

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -50px); }
}

/* --- KONTENERY I KARTY --- */
.login-container, .container {
    width: 100%;
    max-width: 480px; /* Nieco szersze */
    padding: 20px;
    perspective: 1000px;
    position: relative;
    z-index: 10;
}

.future-card {
    background: rgba(10, 10, 25, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* --- NAGŁÓWKI --- */
.chrome-header {
    text-align: center;
    margin-bottom: 40px;
}

.y2k-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 15px 0 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.title-chrome {
    background: linear-gradient(to bottom, #fff 0%, #a0a0ff 50%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.title-neon {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}
.retro-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- ELEMENTY FORMULARZA --- */
.future-form { display: flex; flex-direction: column; gap: 20px; }

.retro-field { position: relative; }
.field-chrome {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}
.field-chrome:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.field-chrome input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 25px 15px 10px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}
.field-chrome label {
    position: absolute;
    left: 15px;
    top: 18px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    pointer-events: none;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.field-chrome input:focus ~ label,
.field-chrome input:valid ~ label {
    top: 8px;
    font-size: 0.7rem;
    color: var(--neon-cyan);
}

/* --- BUTTONY --- */
.retro-button {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    position: relative;
    cursor: pointer;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 12px;
}
.button-chrome {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    opacity: 0.8;
    transition: 0.3s;
}
.retro-button:hover .button-chrome { opacity: 1; filter: brightness(1.2); }
.button-text {
    position: relative;
    z-index: 2;
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

/* --- BUTTONY SPOŁECZNOŚCIOWE / LINKI --- */
.future-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.future-link { color: var(--neon-magenta); text-decoration: none; transition: 0.3s; }
.future-link:hover { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }

/* --- ODMIANY DLA PODSTRON --- */
/* Loading / 2FA */
.loading-wrapper { text-align: center; }
.big-timer {
    font-size: 4rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
    margin: 20px 0;
    font-family: 'Space Grotesk', monospace;
}
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    width: 100%;
    transition: width 1s linear;
}

/* Block Page */
.block-icon { font-size: 4rem; color: #ff3333; text-shadow: 0 0 20px #ff0000; margin-bottom: 20px; }
.error-code { color: #ff3333; font-family: monospace; letter-spacing: 2px; margin-top: 20px; display: block; }
.card-red-border { border-color: rgba(255, 50, 50, 0.5); box-shadow: 0 0 30px rgba(255, 0, 0, 0.2); }

/* 18+ Page */
.age-badge {
    width: 80px; height: 80px;
    border: 2px solid var(--neon-yellow);
    color: var(--neon-yellow);
    border-radius: 50%;
    display: inline-flex; justify-content: center; align-items: center;
    font-size: 2rem; font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--neon-yellow);
}
.btn-warning {
    background: var(--neon-yellow);
    color: #000;
    font-weight: bold;
}
.btn-warning:hover { background: #ffee00; box-shadow: 0 0 20px #ffee00; }

/* File List (CA & Index) */
.file-list { list-style: none; margin-top: 20px; text-align: left; }
.file-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}
.file-item:hover { background: rgba(255, 255, 255, 0.05); padding-left: 20px; }
.file-icon { color: var(--neon-cyan); margin-right: 10px; }

/* Top Nav */
.top-nav {
    position: absolute; top: 20px; right: 20px; z-index: 100;
    display: flex; gap: 10px;
}
.nav-btn {
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}
.nav-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Animations */
@keyframes pulse-mobile {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 10px var(--neon-cyan)); }
    100% { transform: scale(1); opacity: 0.8; }
}
.mobile-icon { animation: pulse-mobile 2s infinite; color: var(--neon-cyan); font-size: 3rem; margin-bottom: 20px; }

.bouncing-dots span {
    display: inline-block; width: 6px; height: 6px; margin: 0 2px;
    background: var(--neon-cyan); border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.bouncing-dots span:nth-child(1) { animation-delay: -0.32s; }
.bouncing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
