:root {
  --bg: #f4f1ec;
  --card: #ffffff;
  --text: #2a2826;
  --muted: #77716a;
  --line: #e6e1d9;
  --input: #fbfaf8;
  --accent: #d64545;
  --accent-hover: #c23a3a;
  --accent-soft: #fbeaea;
  --notice: #e8f3ec;
  --notice-text: #23633d;
  --font: "Avenir Next", Avenir, "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1d1f; --card: #26282b; --text: #ecebe8; --muted: #a29d96; --line: #383a3e; --input: #202225;
    --accent: #e25b5b; --accent-hover: #ec6c6c; --accent-soft: #3a2526; --notice: #1f3428; --notice-text: #9ad6ae;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 45%);
}
.auth { width: 100%; max-width: 420px; margin: 0 auto; padding: 48px 16px 32px; }
.brand { display: flex; align-items: center; gap: 10px; justify-content: center; text-decoration: none; color: var(--text); margin-bottom: 22px; }
.brand span { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px -18px rgba(60,40,20,.25); }
h1 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 22px; }
.center { text-align: center; }
.big-icon { font-size: 34px; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.field-row { display: flex !important; justify-content: space-between; align-items: baseline; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; font: inherit; color: var(--text); background: var(--input); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
input[aria-invalid=true] { border-color: var(--accent); }
.field-help, .field-error { display: block; font-size: 13px; margin-top: 6px; color: var(--muted); }
.field-error { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; border-radius: 10px; padding: 11px 16px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted); }
.oauth { display: grid; gap: 10px; }
.btn-oauth { width: 100%; border-color: var(--line); background: var(--card); color: var(--text); }
.btn-oauth:hover { border-color: var(--muted); }
.btn-apple { background: #000; color: #fff; border-color: #000; }
.btn-apple:hover { background: #222; border-color: #222; }
@media (prefers-color-scheme: dark) { .btn-apple { background: #fff; color: #000; border-color: #fff; } .btn-apple:hover { background: #e9e9e9; } }
.oauth-icon:empty { display: none; }
.oauth-icon img, .oauth-icon svg { width: 18px; height: 18px; display: block; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alert { border-radius: 10px; padding: 11px 13px; margin-bottom: 18px; font-size: 15px; }
.alert-error { background: var(--accent-soft); color: var(--accent); }
.alert-notice { background: var(--notice); color: var(--notice-text); }
.inline-form { margin-bottom: 18px; }
a { color: var(--accent); }
.link-quiet { font-weight: 500; font-size: 13px; text-decoration: none; }
.switch { text-align: center; margin: 20px 0 0; font-size: 15px; color: var(--muted); }
.hint { text-align: center; font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 22px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.task-title { font-size: 22px; line-height: 1.3; }
.task-title.is-done { text-decoration: line-through; color: var(--muted); }
.task-due { color: var(--accent); font-weight: 600; margin: 0 0 14px; }
.task-notes { background: var(--input); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; margin: 0 0 18px; white-space: pre-wrap; font-size: 15px; }
.stack { display: grid; gap: 10px; }
