:root { --bg: #f6f5f2; --panel: #fff; --text: #1e1f22; --muted: #6b6e76; --line: #e4e2dd; --accent: #2f6fed; --danger: #d93025; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg: #141518; --panel: #1d1f23; --text: #ececee; --muted: #9a9ca3; --line: #2e3036; --accent: #6b9bff; } }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.box { width: 100%; max-width: 360px; background: var(--panel); border-radius: 18px; padding: 28px 24px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 30px rgba(0,0,0,.08); }
.logo { font-size: 40px; text-align: center; }
h1 { margin: 4px 0 0; text-align: center; font-size: 24px; }
.sub { margin: 4px 0 20px; text-align: center; color: var(--muted); }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
input { font: inherit; color: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { width: 100%; font: inherit; font-weight: 600; padding: 11px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
.err { background: color-mix(in srgb, var(--danger) 12%, var(--panel)); color: var(--danger); border-radius: 10px; padding: 9px 12px; margin-bottom: 14px; font-size: 14px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.discord { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 10px; background: #5865f2; color: #fff; text-decoration: none; font-weight: 600; }
