:root {
  color-scheme: dark;
  --bg: #07080c;
  --panel: rgba(16, 18, 26, 0.76);
  --panel-border: rgba(255, 255, 255, 0.11);
  --text: #f7f7fb;
  --muted: #a9adba;
  --blue: #66a8ff;
  --purple: #b46cff;
  --error: #ff8da1;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); }
button, input { font: inherit; }
button { color: inherit; }

.entry-page { overflow: hidden; }
.entry-background { position: fixed; inset: 0; overflow: hidden; background:
  radial-gradient(circle at 50% 115%, rgba(61, 79, 130, 0.22), transparent 46%),
  linear-gradient(145deg, #06070b 0%, #0b0d14 58%, #080910 100%); }
.aurora { position: absolute; width: 56vw; height: 56vw; border-radius: 50%; filter: blur(90px); opacity: .26; animation: drift 14s ease-in-out infinite alternate; }
.aurora-a { left: -20vw; top: -20vw; background: rgba(74, 126, 255, .55); }
.aurora-b { right: -22vw; bottom: -28vw; background: rgba(177, 91, 255, .48); animation-delay: -6s; }
.grid-glow { position: absolute; inset: 0; opacity: .17; background-image:
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 58px 58px; mask-image: radial-gradient(circle at center, #000 12%, transparent 70%); }
.noise { position: absolute; inset: -50%; opacity: .022; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); animation: grain 1.2s steps(2) infinite; }

.entry-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.entry-panel { width: min(100%, 460px); padding: 42px 42px 34px; text-align: center; border: 1px solid var(--panel-border); border-radius: 26px; background: linear-gradient(145deg, rgba(24,27,39,.82), rgba(10,11,17,.74)); box-shadow: var(--shadow); backdrop-filter: blur(22px); transform: translateY(12px); opacity: 0; animation: panel-in .8s cubic-bezier(.2,.8,.2,1) .12s forwards; }
.brand-mark { width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, var(--blue), var(--purple)); box-shadow: 0 14px 30px rgba(97,107,255,.24); transform: rotate(-7deg); }
.brand-mark span { font-size: 22px; font-weight: 800; transform: rotate(7deg); }
.entry-kicker { margin: 0 0 12px; color: #b8bdd0; font-size: 13px; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.2; letter-spacing: -.04em; }
.entry-intro { margin: 16px auto 30px; max-width: 330px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.access-form { text-align: left; }
.access-form label { display: block; margin: 0 0 9px 2px; color: #d8dbe5; font-size: 13px; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; height: 54px; padding: 0 52px 0 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; outline: none; color: #fff; background: rgba(255,255,255,.055); transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.input-wrap input::placeholder { color: #747988; }
.input-wrap input:focus { border-color: rgba(111,156,255,.68); background: rgba(255,255,255,.075); box-shadow: 0 0 0 4px rgba(87,126,255,.12); }
.input-wrap input[aria-invalid="true"] { border-color: rgba(255,141,161,.72); box-shadow: 0 0 0 4px rgba(255,91,122,.10); }
.icon-button { position: absolute; right: 8px; top: 8px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; cursor: pointer; opacity: .62; transition: opacity .2s, background .2s; }
.icon-button:hover { opacity: 1; background: rgba(255,255,255,.07); }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.enter-button { width: 100%; height: 54px; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(105deg, #4a88f7, #9362f6); box-shadow: 0 16px 36px rgba(90,82,238,.25); cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s; }
.enter-button:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(90,82,238,.34); filter: brightness(1.05); }
.enter-button:active { transform: translateY(0); }
.enter-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.access-message { min-height: 22px; margin: 10px 2px 0; color: var(--error); font-size: 13px; text-align: center; }
.entry-note { margin: 22px 0 0; color: #6f7483; font-size: 12px; }
.access-form.form-shake { animation: form-shake .34s ease-out; }
.portal { position: fixed; z-index: 20; inset: 0; pointer-events: none; display: grid; place-items: center; opacity: 0; visibility: hidden; background: rgba(6,7,11,.72); backdrop-filter: blur(7px); }
.portal span { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle, #fff 0 4%, #8f8cff 20%, rgba(91,107,255,.2) 50%, transparent 72%); box-shadow: 0 0 80px rgba(114,104,255,.85); }
.portal.active { visibility: visible; animation: portal-fade .8s forwards; }
.portal.active span { animation: portal-open .8s cubic-bezier(.2,.8,.2,1) forwards; }

@keyframes panel-in { to { transform: translateY(0); opacity: 1; } }
@keyframes drift { to { transform: translate3d(8vw, 6vh, 0) scale(1.1); } }
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(2%,-1%); } 50% { transform: translate(-1%,2%); } 75% { transform: translate(1%,1%); } 100% { transform: translate(-2%,-2%); } }
@keyframes form-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 55% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@keyframes portal-fade { to { opacity: 1; } }
@keyframes portal-open { 0% { transform: scale(.6); opacity: .2; } 100% { transform: scale(65); opacity: 1; } }

@media (max-width: 560px) {
  .entry-shell { padding: 18px; }
  .entry-panel { padding: 32px 22px 26px; border-radius: 22px; }
  .entry-intro { margin-bottom: 24px; }
}

