:root {
  --bg: #06080b;
  --bg-2: #0a0e13;
  --panel: #101720;
  --panel-2: #131c27;
  --line: #223041;
  --line-soft: #1a2532;
  --text: #e9eff7;
  --muted: #93a1b3;
  --muted-2: #6d7b8d;
  --gold: #f5b942;
  --gold-2: #ffd37a;
  --cyan: #39d5ff;
  --green: #48d597;
  --red: #ff6b6b;
  --shadow: 0 28px 80px rgba(0, 0, 0, .55);
  --radius: 18px;
  --font: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 12% 8%, rgba(245, 185, 66, .10), transparent 60%),
    radial-gradient(900px 600px at 92% 92%, rgba(57, 213, 255, .08), transparent 62%),
    linear-gradient(145deg, #05070a 0%, #080c11 48%, #06090d 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 78%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
}

.brand-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 46px clamp(32px, 5vw, 84px);
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(245,185,66,.035), transparent 32%),
    linear-gradient(180deg, rgba(10,15,21,.6), rgba(6,9,13,.2));
}

.brand-top { display: flex; align-items: center; gap: 16px; }
.brand-mark { position: relative; width: 52px; height: 52px; display: grid; place-items: center; }
.mark-core {
  width: 13px; height: 13px; border-radius: 3px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 24px rgba(245,185,66,.7);
  transform: rotate(45deg);
}
.mark-ring {
  position: absolute; inset: 5px; border-radius: 14px;
  border: 1px solid rgba(245,185,66,.42);
  transform: rotate(45deg);
}
.mark-ring::after {
  content: ""; position: absolute; inset: 6px; border-radius: 10px;
  border: 1px solid rgba(57,213,255,.28);
}
.brand-name { font-weight: 800; letter-spacing: .16em; font-size: 16px; }
.brand-name span { color: var(--gold); }
.brand-sub { margin-top: 5px; color: var(--muted-2); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }

.brand-copy { max-width: 620px; }
.eyebrow { margin: 0 0 20px; color: var(--gold); font-size: 11px; letter-spacing: .28em; font-weight: 700; }
.brand-copy h1 { margin: 0; font-size: clamp(42px, 5.4vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.brand-copy h1 em { font-style: normal; color: var(--gold); }
.lede { margin: 24px 0 0; max-width: 520px; color: var(--muted); line-height: 1.7; font-size: 15px; }

.brand-points { display: grid; gap: 14px; max-width: 560px; }
.point { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(16,23,32,.5); }
.point-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; }
.point-dot.gold { background: var(--gold); box-shadow: 0 0 14px rgba(245,185,66,.7); }
.point-dot.cyan { background: var(--cyan); box-shadow: 0 0 14px rgba(57,213,255,.6); }
.point-dot.green { background: var(--green); box-shadow: 0 0 14px rgba(72,213,151,.6); }
.point strong { display: block; font-size: 13px; margin-bottom: 3px; }
.point span { display: block; color: var(--muted-2); font-size: 12px; line-height: 1.5; }

.brand-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: 11px; letter-spacing: .12em; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: rgba(16,23,32,.7); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(72,213,151,.8); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.auth-pane { display: grid; place-items: center; padding: 36px; }
.auth-card {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19,28,39,.96), rgba(12,18,25,.98));
  box-shadow: var(--shadow);
  animation: rise .45s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.card-kicker { color: var(--gold); font-size: 10px; letter-spacing: .24em; font-weight: 700; }
.card-head h2 { margin: 10px 0 8px; font-size: 28px; letter-spacing: -.02em; }
.card-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.auth-form { margin-top: 26px; display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.input-wrap { position: relative; }
input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0a1118;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input:focus { border-color: rgba(245,185,66,.65); box-shadow: 0 0 0 3px rgba(245,185,66,.12); background: #0b131b; }
.input-wrap input { padding-right: 84px; }
.reveal {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--muted-2); font: inherit; font-size: 11px;
  padding: 6px 8px; border-radius: 7px; cursor: pointer;
}
.reveal:hover { color: var(--gold); background: rgba(245,185,66,.07); }

.primary {
  margin-top: 4px;
  border: 1px solid rgba(245,185,66,.45);
  border-radius: 11px;
  padding: 13px 16px;
  background: linear-gradient(180deg, #f8c45a, #eaa92e);
  color: #171207;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 10px 26px rgba(245,185,66,.18);
}
.primary:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 14px 32px rgba(245,185,66,.25); }
.primary:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }

.hint { margin: 0; color: var(--muted-2); font-size: 11px; line-height: 1.5; }
.setup-note { padding: 13px 14px; border: 1px solid rgba(57,213,255,.22); border-radius: 11px; background: rgba(57,213,255,.055); }
.setup-note strong { display: block; font-size: 13px; margin-bottom: 4px; color: #c9f4ff; }
.setup-note span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.pw-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.pw-rules span { border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 9px; color: var(--muted-2); font-size: 10px; }

.message { margin-top: 20px; padding: 11px 13px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted); }
.message.error { border-color: rgba(255,107,107,.36); background: rgba(255,107,107,.075); color: #ffc9c9; }
.message.ok { border-color: rgba(72,213,151,.34); background: rgba(72,213,151,.07); color: #bdf5da; }

.blocked { margin-top: 22px; padding: 15px; border: 1px solid rgba(255,107,107,.28); border-radius: 12px; background: rgba(255,107,107,.055); }
.blocked strong { display: block; margin-bottom: 6px; color: #ffd0d0; font-size: 13px; }
.blocked p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.blocked code { color: var(--gold-2); background: rgba(245,185,66,.08); padding: 1px 5px; border-radius: 5px; }

.card-foot { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: 11px; }
.card-foot a { color: var(--muted); text-decoration: none; }
.card-foot a:hover { color: var(--gold); }

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .brand-pane { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 28px 24px; gap: 28px; }
  .brand-copy h1 { font-size: 40px; }
  .brand-points { display: none; }
  .brand-foot { display: none; }
  .auth-pane { padding: 24px; }
  .auth-card { padding: 26px; }
}

@media (max-width: 520px) {
  .brand-copy h1 { font-size: 33px; }
  .brand-copy .lede { font-size: 13px; }
  .auth-card { padding: 22px; border-radius: 15px; }
  .card-head h2 { font-size: 24px; }
}
