@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Grotesk:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500;700&family=Cormorant+Garamond:ital,wght@0,400;0,700;1,400&family=Great+Vibes&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; background: #06020f; color: #fff; font-family: 'Space Grotesk', sans-serif; -webkit-font-smoothing: antialiased; }
:root { --violet: #a020f0; --magenta: #ff00e0; --cyan: #00e8ff; --amber: #ffb040; --gold: #ffd480; --cream: #f4e0b8; --pink: #ff2080; --mint: #00ffb0; --dark: #06020f; }
.app { position: fixed; inset: 0; overflow: hidden; }
.page { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s, visibility 0.9s; transform: scale(0.96); filter: blur(8px); overflow: hidden; }
.page.active { opacity: 1; visibility: visible; pointer-events: auto; transform: scale(1); filter: blur(0); z-index: 10; }

/* TŁO */
.sky { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 50% 100%, #3a0a4a 0%, transparent 55%), radial-gradient(ellipse at 50% 0%, #100420 0%, transparent 55%), radial-gradient(ellipse at 20% 50%, #1a0530 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, #100424 0%, transparent 60%), #06020f; }
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); mix-blend-mode: screen; pointer-events: none; z-index: 2; }
.aurora.a1 { width: 60vmin; height: 50vmin; top: -8%; left: -10%; background: radial-gradient(circle, rgba(160, 32, 240, 0.4) 0%, transparent 65%); animation: auroraDrift1 22s ease-in-out infinite alternate; }
.aurora.a2 { width: 55vmin; height: 45vmin; top: 30%; right: -12%; background: radial-gradient(circle, rgba(255, 0, 224, 0.35) 0%, transparent 65%); animation: auroraDrift2 26s ease-in-out infinite alternate; }
.aurora.a3 { width: 50vmin; height: 40vmin; bottom: -10%; left: 25%; background: radial-gradient(circle, rgba(0, 232, 255, 0.3) 0%, transparent 65%); animation: auroraDrift3 24s ease-in-out infinite alternate; }
@keyframes auroraDrift1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(8vmin, 6vmin) scale(1.15); } }
@keyframes auroraDrift2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-6vmin, 5vmin) scale(1.2); } }
@keyframes auroraDrift3 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(5vmin, -8vmin) scale(1.1); } }
.stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.6; }
.stars::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 8% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 22% 28%, #c0e8ff, transparent), radial-gradient(1px 1px at 42% 8%, #fff, transparent), radial-gradient(1px 1px at 55% 22%, #c0e8ff, transparent), radial-gradient(2px 2px at 68% 15%, #fff, transparent); animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { 0% { opacity: 0.3; } 100% { opacity: 0.9; } }

/* DESZCZ */
.rain-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.drop { position: absolute; top: -120px; background: linear-gradient(180deg, transparent 0%, currentColor 40%, currentColor 90%, transparent 100%); box-shadow: 0 0 8px currentColor; border-radius: 1px; animation: rainFall linear infinite; }
@keyframes rainFall { 0% { transform: translateY(0) translateX(0); opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(120vh) translateX(-40px); opacity: 0; } }

/* SIATKA I NAPISY */
.grid-floor { position: absolute; left: -20%; right: -20%; bottom: 0; height: 45vh; z-index: 7; pointer-events: none; background-image: linear-gradient(rgba(0, 232, 255, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 0, 224, 0.28) 1px, transparent 1px); background-size: 60px 40px; transform: perspective(500px) rotateX(65deg); transform-origin: center bottom; animation: gridScroll 3s linear infinite; mask-image: linear-gradient(to top, #000 25%, transparent 95%); -webkit-mask-image: linear-gradient(to top, #000 25%, transparent 95%); }
@keyframes gridScroll { from { background-position: 0 0; } to { background-position: 0 40px; } }

/* STRONA 1 */
.page-1 { display: grid; place-items: center; }
.p1-logo { position: relative; z-index: 10; text-align: center; opacity: 0; animation: logoIn 1.5s 0.5s forwards; }
@keyframes logoIn { 0% { opacity: 0; filter: blur(20px); transform: scale(1.1); } 100% { opacity: 1; filter: blur(0); transform: scale(1); } }
.p1-eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 10px; color: var(--amber); text-transform: uppercase; margin-bottom: 26px; text-shadow: 0 0 15px var(--amber); animation: fadeIn 1s 1s forwards; opacity: 0; }
@keyframes fadeIn { to { opacity: 1; } }
.p1-title { position: relative; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(44px, 12vw, 170px); line-height: 0.88; letter-spacing: -3px; margin-bottom: 20px; display: inline-block; background: linear-gradient(90deg, #ff0080 0%, #ff8c00 12%, #ffe600 24%, #00ff88 36%, #00e8ff 48%, #a020f0 60%, #ff00e0 72%, #ff0080 84%, #ff8c00 96%, #ffe600 100%); background-size: 400% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: neonRainbow 8s linear infinite; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 25px rgba(255, 0, 200, 0.7)) drop-shadow(0 0 50px rgba(0, 232, 255, 0.5)); z-index: 2; }
@keyframes neonRainbow { 0% { background-position: 0% 50%; } 100% { background-position: 400% 50%; } }
.p1-underline { width: 0; height: 2px; margin: 28px auto 0; background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--magenta) 50%, transparent); animation: underlineGrow 1.4s 2s forwards; }
@keyframes underlineGrow { to { width: 70%; max-width: 500px; } }
.p1-tagline { margin-top: 26px; font-family: 'JetBrains Mono', monospace; font-size: 14px; color: rgba(200, 160, 255, 0.85); letter-spacing: 10px; text-transform: uppercase; animation: fadeIn 1s 2.4s forwards; opacity: 0; }
.p1-enter { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); z-index: 15; opacity: 0; animation: enterIn 1s 3s forwards; }
@keyframes enterIn { to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* PRZYCISK */
.enter-btn { display: inline-flex; align-items: center; gap: 14px; padding: 18px 44px; background: rgba(6, 2, 15, 0.7); border: 1.5px solid var(--cyan); border-radius: 6px; color: var(--cyan); font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; cursor: pointer; text-decoration: none; box-shadow: 0 0 25px rgba(0, 232, 255, 0.4); transition: all 0.5s; }
.enter-btn:hover { transform: scale(1.05); color: var(--dark); background: var(--cyan); }

/* STRONA 2 (FORMULARZE) */
.page-2 { display: grid; place-items: center; }
.p2-content { position: relative; z-index: 10; text-align: center; padding: 20px; width: 100%; }
.p2-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 8px; color: var(--mint); text-transform: uppercase; margin-bottom: 30px; }
.p2-question { font-family: 'Orbitron', sans-serif; font-size: clamp(30px, 5vw, 60px); font-weight: 900; margin-bottom: 20px; }
.p2-name-text { font-family: 'Great Vibes', cursive; background: linear-gradient(90deg, #ff0080, #00e8ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* FORMULARZ */
.auth-form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; margin: 0 auto; margin-top: 30px; }
.auth-form input { padding: 14px 18px; background: rgba(6, 2, 15, 0.7); border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: 10px; color: #fff; font-size: 14px; transition: border-color .3s; }
.auth-form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 20px rgba(0,232,255,.4); }
.auth-errors { padding: 12px; border: 1px solid var(--pink); border-radius: 10px; background: rgba(255, 32, 128, 0.1); color: #ffb0d0; font-family: monospace; }
.p2-actions { display: flex; gap: 20px; justify-content: center; margin-top: 20px; }
.p2-btn { padding: 16px 36px; background: rgba(6, 2, 15, 0.7); border: 2px solid; border-radius: 50px; font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; text-transform: uppercase; transition: 0.3s; }
.p2-btn.yes { border-color: var(--mint); color: var(--mint); }
.p2-btn.yes:hover { background: var(--mint); color: var(--dark); }
.p2-btn.no { border-color: var(--magenta); color: var(--magenta); }
.p2-btn.no:hover { background: var(--magenta); color: var(--dark); }