:root {
  --bg: #0c0c10;
  --card: #15151b;
  --line: #26262f;
  --text: #ececf1;
  --muted: #8b8b98;
  --accent: #ffffff;
  --accent-text: #0c0c10;
  --danger: #ff5c6c;
  --ok: #4ade80;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--text); }

body {
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 48px 16px;
}

a { color: var(--text); }

.brand { font-weight: 800; font-size: 28px; letter-spacing: -0.02em; margin-bottom: 24px; text-decoration: none; }

main { width: 100%; max-width: 420px; }
main.wide { max-width: 640px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

h1 { font-size: 20px; margin: 0 0 16px; }
h2 { font-size: 16px; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }

input[type=text], input[type=email], input[type=password] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

input:focus { outline: 2px solid var(--muted); outline-offset: 1px; }

button, .button {
  display: inline-block;
  width: 100%;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary, button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
button.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
button.inline, .button.inline { width: auto; margin-top: 0; padding: 6px 12px; font-size: 13px; }

.providers .button { margin-top: 8px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0 4px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.notice { padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; border: 1px solid var(--line); }
.notice.error { border-color: var(--danger); color: var(--danger); }
.notice.ok { border-color: var(--ok); color: var(--ok); }

.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row form { margin: 0; }

.uid { font-variant-numeric: tabular-nums; color: var(--muted); }
.links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 14px; }
footer { color: var(--muted); font-size: 12px; margin-top: 24px; }
