:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 500px at 50% 30%, rgba(91, 140, 255, 0.14), transparent 70%), #0b0f18;
  color: #e8edf6; font: 15px "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.card {
  width: min(380px, 100%); padding: 32px 28px; border: 1px solid #2a3547; border-radius: 18px;
  background: #121a28; box-shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.7); text-align: center;
}
.logo { width: 64px; height: 64px; border-radius: 18px; }
h1 { margin: 12px 0 4px; font-size: 20px; letter-spacing: 0.06em; }
.sub { margin: 0 0 20px; color: #97a3b8; }
form { display: flex; flex-direction: column; gap: 8px; text-align: left; }
label { color: #97a3b8; font-size: 13px; margin-top: 6px; }
input {
  height: 44px; padding: 0 12px; border: 1px solid #2a3547; border-radius: 10px;
  background: #0f1622; color: #e8edf6; font: inherit; font-size: 16px; /* iOS Safari zooms into inputs under 16px */
}
input:focus { outline: 2px solid rgba(91, 140, 255, 0.6); outline-offset: 1px; }
button {
  margin-top: 16px; height: 48px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #4f7df3 0%, #7a63e8 100%); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 600;
  transition: transform 90ms ease-out;
}
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.6; cursor: wait; }
.error { margin: 8px 0 0; color: #f2637a; font-size: 14px; }
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; }
  body { background: #f4f6fb; color: #1b2333; }
  .card { background: #fff; border-color: #d9dfea; box-shadow: 0 24px 64px -24px rgba(19, 24, 34, 0.3); }
  input { background: #f7f9fc; border-color: #d9dfea; color: #1b2333; }
}
