:root {
  color-scheme: light;
  --canvas: #f4f3f0;
  --paper: #ffffff;
  --ink: #1b1a18;
  --muted: #6d6a63;
  --line: #e6e3dd;
  --line-strong: #d6d1c8;
  --accent: #4f46e5;
  --accent-dark: #3730a3;
  --accent-soft: #eeeefe;
  --font: Geist, Satoshi, Aptos, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(79,70,229,.11), transparent 27rem),
    linear-gradient(135deg, rgba(255,255,255,.5), transparent 55%),
    var(--canvas);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(79,70,229,.25); outline-offset: 3px; }
.login-shell { width: min(100% - 32px, 440px); }
.login-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 2px rgba(28,25,23,.04), 0 24px 60px -38px rgba(28,25,23,.45);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 750; }
.mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--accent); font-size: 18px; font-weight: 800; }
h1 { margin: 42px 0 28px; font-size: 32px; letter-spacing: -.045em; line-height: 1; }
form { display: grid; gap: 9px; }
label { margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: var(--paper); }
input:hover { border-color: #aaa5a0; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: 0; }
button { height: 44px; margin-top: 16px; border: 0; border-radius: 10px; color: #fff; background: var(--accent); font-weight: 800; cursor: pointer; transition: background 160ms ease, transform 160ms ease; }
button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.error-message { margin: -10px 0 20px; padding: 10px 12px; border: 1px solid #f2b8c3; border-radius: 10px; color: #9f1239; background: #fde4e9; font-size: 12px; }

@media (max-width: 480px) {
  .login-shell { width: min(100% - 22px, 440px); }
  .login-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
