:root {
  --bg: #0c0d11;
  --surface: #111218;
  --line: #1d2028;
  --line-2: #262a33;
  --text: #eeebe3;
  --muted: #9296a0;
  --accent: #f2c14e;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --danger: #f08a7e;
  --font: "Geist", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
}
.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* ---------- Left: copy + sign in ---------- */
.login-main {
  padding: max(48px, env(safe-area-inset-top)) clamp(24px, 6vw, 96px) 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b1709;
  border: 1px solid #5a4719;
  color: var(--accent);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.eyebrow {
  padding-left: 10px;
  border-left: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--muted);
}
.hero-copy { margin-top: auto; display: flex; flex-direction: column; gap: 20px; }
.hero-copy h1 {
  margin: 0;
  max-width: 560px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.lede {
  margin: 0;
  max-width: 470px;
  font-size: 17px;
  line-height: 1.55;
  color: #b9bcc4;
}
.signin { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.discord-btn {
  height: 52px;
  border-radius: 12px;
  background: var(--discord);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 120ms;
}
.discord-btn:hover { background: var(--discord-hover); }
.discord-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.foot { margin: 0; font-size: 13px; color: var(--muted); }
.error, .hint { margin: 0; font-size: 13px; }
.error {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(240, 138, 126, 0.08);
  border: 1px solid rgba(240, 138, 126, 0.35);
  color: var(--danger);
}
.hint { color: var(--muted); }
.error[hidden], .hint[hidden] { display: none; }
.steps {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
}
.steps span { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* ---------- Right: portrait spread ---------- */
.login-art {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-left: 1px solid var(--line);
}
.art-card {
  position: absolute;
  margin: 0;
  width: clamp(150px, 16vw, 230px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}
.art-card .frame {
  aspect-ratio: 216 / 262;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid;
}
.art-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.art-card b { font-weight: 500; letter-spacing: 1px; }
.t5 .frame {
  background: radial-gradient(circle at 50% 30%, rgba(242, 193, 78, 0.6), #1a160c 75%);
  border-color: #8a6b25;
  box-shadow: 0 0 48px rgba(242, 193, 78, 0.25);
}
.t5 b { color: #f5cd6a; }
.t4 .frame { background: radial-gradient(circle at 50% 30%, rgba(170, 130, 255, 0.5), #16131f 75%); border-color: #4b3a73; }
.t4 b { color: #c4a8ff; }
.t3 .frame { background: radial-gradient(circle at 50% 30%, rgba(90, 190, 150, 0.45), #111a17 75%); border-color: #2b4a40; }
.t3 b { color: #7fd6b2; }
.c1 { left: 12%; top: 12%; transform: rotate(-4deg); }
.c2 { left: 52%; top: 6%; transform: rotate(3deg); width: clamp(140px, 14.5vw, 210px); }
.c3 { left: 20%; top: 56%; transform: rotate(2deg); width: clamp(135px, 14vw, 200px); }
.c4 { left: 56%; top: 46%; transform: rotate(-3deg); }

@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-main { gap: 32px; padding-top: max(32px, env(safe-area-inset-top)); }
  .hero-copy { margin-top: 24px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { flex-direction: row; gap: 12px; padding: 12px 0; }
}
