:root {
  --bg: #0C0C0E;
  --surface: #171719;
  --line: rgba(255,255,255,.085);
  --line-2: rgba(255,255,255,.17);
  --text: #EDEDF0;
  --muted: #9C9CA6;
  --accent: #7B93FF;
  --on-accent: #0A0A12;
  --ok: #46D39A;
  --err: #FF8878;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.auth-mark { border-radius: 8px; margin: 0 0 14px; }
h1 { font-size: 1.3rem; margin: 0 0 4px; }
.sub { color: var(--muted); font-size: .88rem; margin: 0 0 20px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: .92rem;
}
.field input:focus { outline: none; border-color: var(--accent); }
.field .avail { font-size: .78rem; margin-top: 6px; min-height: 1em; }
.field .avail[data-state="ok"] { color: var(--ok); }
.field .avail[data-state="taken"] { color: var(--err); }

.btn {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn:not(:disabled):active { transform: scale(.98); }

.msg { font-size: .85rem; margin: 14px 0 0; min-height: 1.2em; }
.msg[data-tone="err"] { color: var(--err); }
.msg[data-tone="ok"] { color: var(--ok); }

.foot { margin-top: 18px; text-align: center; font-size: .84rem; color: var(--muted); }
.foot a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

.profile { font-size: .9rem; }
.profile dt { color: var(--muted); font-size: .78rem; margin-top: 12px; }
.profile dd { margin: 2px 0 0; }

/* Inline style attributes are blocked by this app's CSP (style-src 'self'),
   so anything positional lives here rather than on the element. */
.btn--link {
  display: block;
  line-height: 44px;
  text-align: center;
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.btn--ghost:hover { color: var(--text); border-color: var(--line-2, var(--line)); }
.stack-sm { margin-top: 10px; }
.stack-md { margin-top: 16px; }
