/* Shared by /login and /account. Same ember palette and type as the landing page and editor. */
:root {
  --bg: #0b0705;
  --panel: rgba(20, 13, 10, .88);
  --panel-2: #1d1410;
  --field: #0d0806;
  --line: rgba(255, 236, 225, .1);
  --line-2: rgba(255, 236, 225, .18);
  --ink: #f6f5fb;
  --ink-2: rgba(246, 245, 251, .78);
  --ink-3: rgba(246, 245, 251, .6);
  --brand: oklch(0.8 0.145 var(--hue));
  --brand-hi: oklch(0.85 0.13 var(--hue));
  --coral: oklch(0.72 0.17 calc(var(--hue) - 60));
  --on-brand: #1a0b05;
  --danger: #ff6b7d;
  --ok: #2de6b0;
  --discord: #5865f2;
  --r: 12px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh; min-height: 100dvh; color: var(--ink); font: 500 15px/1.5 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60vmax 50vmax at 0% 0%, oklch(0.8 0.145 var(--hue) / .2), transparent 70%),
    radial-gradient(50vmax 40vmax at 100% 0%, oklch(0.72 0.17 calc(var(--hue) - 60) / .12), transparent 70%),
    var(--bg);
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
a { color: var(--brand); }

.accent { background: linear-gradient(100deg, var(--brand) 10%, var(--coral) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.shell { width: min(460px, 100%); margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px 48px; }
.shell.wide { width: min(720px, 100%); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin-bottom: 28px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--ink-3); font-weight: 500; }
.top nav { display: flex; gap: 6px; }

h1 { margin: 0 0 6px; font-size: clamp(30px, 6vw, 38px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; text-wrap: balance; }
.sub { margin: 0 0 24px; color: var(--ink-2); text-wrap: pretty; }

.card {
  padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 236, 225, .05);
}
.card + .card { margin-top: 14px; }
.card h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.card .hint { margin: 0 0 16px; color: var(--ink-3); font-size: 14px; }
.card.danger { border-color: rgba(255, 107, 125, .3); }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; width: 100%;
  border-radius: var(--r); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink);
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s cubic-bezier(.19, 1, .22, 1), background-color .15s;
}
.btn:hover { background: #261a14; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 10px 28px -12px oklch(0.8 0.145 var(--hue) / .55); }
.btn.primary:hover { background: var(--brand-hi); }
.btn.discord { background: var(--discord); border-color: var(--discord); color: #fff; }
.btn.discord:hover { background: #4752c4; }
.btn.discord svg { flex: none; }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: rgba(255, 107, 125, .5); color: var(--danger); }
.btn.small { width: auto; min-height: 44px; padding: 0 14px; font-size: 14px; }


.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--field);
  color: var(--ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px oklch(0.8 0.145 var(--hue) / .15); }

.msg { min-height: 22px; margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.msg:empty { display: none; }
.msg.bad { color: var(--danger); }
.msg.ok { color: var(--ok); }

.foot { margin: 18px 0 0; color: var(--ink-3); font-size: 14px; text-align: center; }

.who { display: flex; align-items: center; gap: 14px; }
.who img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--brand); }
.who .initial { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--panel-2); border: 2px solid var(--brand); font-size: 22px; font-weight: 800; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.badge i { width: 10px; height: 10px; border-radius: 50%; }
.page-link { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }

.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; margin-top: 28px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink-3); font-size: 13px; font-weight: 700; text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; }
.foot a { color: var(--ink-2); }
.state { padding: 40px 0; text-align: center; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
