:root {
  --bg: #e8f1fc;
  --blob-1: #cfe2ff;
  --blob-2: #e4dcff;
  --blob-3: #d3ecff;
  --blob-4: #f3f8ff;
  --ink: #0f1b33;
  --muted: #5d6c88;
  --primary: #2f6bff;
  --primary-2: #5b8fff;
  --error: #e5484d;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(640px 480px at 88% 8%, var(--blob-1), transparent 62%),
    radial-gradient(560px 460px at 8% 92%, var(--blob-3), transparent 60%),
    radial-gradient(520px 420px at 62% 70%, var(--blob-2), transparent 64%),
    radial-gradient(460px 400px at 20% 20%, var(--blob-4), transparent 62%),
    var(--bg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.login {
  width: 100%; max-width: 400px; padding: 40px 32px 34px; border-radius: 28px;
  background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 60px rgba(40, 80, 160, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
}
h1 {
  font: 700 clamp(32px, 9vw, 40px)/1.1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0 0 30px;
  background: linear-gradient(120deg, #2f6bff, #6d5dfc 60%, #38bdf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
form { display: grid; gap: 12px; }
.field input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: inherit;
  padding: 0 18px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { border-color: var(--primary-2); background: rgba(255, 255, 255, 0.72); box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.25); }
button {
  height: 52px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: box-shadow .15s, transform .1s;
}
button:hover { box-shadow: 0 12px 28px rgba(47, 107, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
button:active { transform: scale(0.99); }
button:disabled { opacity: .55; cursor: progress; }
.error { margin: 0; color: var(--error); font-size: 14px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.redeem { display: grid; gap: 10px; }
button.secondary { background: rgba(255, 255, 255, 0.5); color: var(--primary); border: 1px solid rgba(47, 107, 255, 0.4); margin-top: 0; box-shadow: none; }
button.secondary:hover { background: rgba(255, 255, 255, 0.7); }

/* what the site is, and how to get an account */
.login .lede { margin: -6px 0 18px; text-align: center; color: #5b6478; font-size: 14px; line-height: 1.6; }
.login .note { margin: 16px 0 0; text-align: center; color: #6b7385; font-size: 13px; line-height: 1.6; }
