:root { --bg: #f4f5f7; --card: #fff; --text: #1d2330; --muted: #6b7385; --line: #dfe2e8; --accent: #2f5bd3; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171d; --card: #1d2129; --text: #e7e9ee; --muted: #9aa1b0; --line: #2c313b; --accent: #7aa2ff; }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: var(--bg); color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.card { width: 100%; max-width: 340px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.mark { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; }
h1 { font-size: 20px; margin: 14px 0 2px; }
.sub { margin: 0 0 20px; color: var(--muted); }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
button { margin-top: 14px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.err { color: #d64545; font-size: 13px; min-height: 1em; margin: 10px 0 0; }
.err:empty { display: none; }
.ms {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text);
  font-weight: 600; text-decoration: none;
}
.ms:hover { border-color: var(--muted); }
.ms svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 18px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
[hidden] { display: none !important; }
