:root { --ink: #0f1f3d; --text: #334155; --muted: #64748b; --green: #1ea34a; --green-ink: #15803d; --green-soft: #dcfce7; --box: #f1f5f9; --box-b: #e2e8f0; --red: #e11d48; --red-soft: #ffe4e6;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; }
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body { font-family: var(--body); color: var(--text); background: #eef2f6; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.brand { background: #0f1f3d; color: #dbe4f0; padding: 48px 56px; display: flex; flex-direction: column; gap: 22px; justify-content: center; position: relative; overflow: hidden; }
.brand::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(30,163,74,.35), transparent 70%); }
.brand .logo { width: 260px; background: #fff; border-radius: 16px; padding: 10px 16px; }
.brand h1 { font-family: var(--display); font-size: 34px; line-height: 1.15; color: #fff; max-width: 520px; }
.brand .lead { font-size: 16.5px; line-height: 1.6; max-width: 500px; color: #b8c6d9; }
.code { font-family: var(--mono); font-size: 14px; line-height: 1.6; white-space: pre; background: #0a1730; border: 1px solid #1f3355; border-radius: 14px; padding: 16px 20px; color: #dbe4f0; max-width: 500px; overflow: auto; position: relative; z-index: 1; }
.code .p, .code .c { color: #c586c0; } .code .k { color: #569cd6; } .code .f { color: #dcdcaa; } .code .s { color: #ce9178; } .code .n { color: #b5cea8; }
.facts { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.facts div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 10px 14px; min-width: 140px; }
.facts b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #86efac; }
.facts span { font-size: 15px; color: #fff; font-weight: 600; }
.panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--box-b); border-radius: 20px; padding: 32px; box-shadow: 0 20px 50px rgba(15,31,61,.08); }
.card h2 { font-family: var(--display); font-size: 28px; color: var(--ink); }
.sub { color: var(--muted); margin: 4px 0 18px; font-size: 15px; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role .tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border: 1.5px solid var(--box-b); border-radius: 14px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; height: 100%; }
.role .ic { font-size: 24px; line-height: 1; }
.role .nm { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.role:hover .tile { border-color: #86efac; }
.role input:checked + .tile { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 3px rgba(30,163,74,.15); }
.role input:focus-visible + .tile { outline: 2px solid var(--green); outline-offset: 2px; }
.fld { margin-bottom: 14px; }
.fld label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.fld input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--box-b); border-radius: 11px; background: var(--box); color: var(--ink); outline: none; }
.fld input:focus { border-color: var(--green); background: #fff; }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 7px; }
.pw button:hover { background: #e2e8f0; color: var(--ink); }
.go { width: 100%; margin-top: 6px; border: 0; background: var(--green); color: #fff; font: inherit; font-size: 16px; font-weight: 700; padding: 13px; border-radius: 12px; cursor: pointer; box-shadow: 0 3px 0 var(--green-ink); }
.go:hover { background: #16a34a; }
.go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-ink); }
.help { margin-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.5; min-height: 40px; }
.err { background: var(--red-soft); color: #9f1239; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .brand { padding: 28px 22px; gap: 14px; }
  .brand h1 { font-size: 24px; } .code { display: none; } .brand .lead { font-size: 15px; }
  .panel { padding: 20px 16px 40px; } .card { padding: 22px; }
}
