:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --ink: #1f2937;
  --ink-strong: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #16a34a;
  --accent-hover: #15803d;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-base: 160ms;
  --shadow-card:
    0 0 0 1px oklch(0 0 0 / 0.06),
    0 1px 2px -1px oklch(0 0 0 / 0.06),
    0 12px 40px oklch(0 0 0 / 0.10);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: grid; place-items: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(900px 500px at 15% -10%, #e7f6ec 0%, var(--bg) 60%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.auth {
  width: min(460px, 92vw);
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: cardIn 200ms var(--ease-out) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(6px) scale(0.99); } }
.auth-left { padding: 44px 48px; }

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.brand .mark { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.brand h1 { font-size: 1.15rem; margin: 0; color: var(--ink-strong); }
.brand p { margin: 0; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
h2 { font-size: 1.3rem; margin: 0 0 4px; color: var(--ink-strong); }
.sub { color: var(--muted); font-size: .86rem; margin-bottom: 20px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.field input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .95rem; color: var(--ink); background: #fff; min-height: 42px;
  transition-property: border-color, box-shadow;
  transition-duration: var(--dur-base); transition-timing-function: var(--ease-out);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

button.primary {
  width: 100%; padding: 12px; border: 0; border-radius: var(--radius-sm); background: var(--accent);
  color: #fff; font-size: .95rem; font-weight: 650; cursor: pointer; margin-top: 6px; min-height: 46px;
  transition-property: scale, background-color;
  transition-duration: var(--dur-base); transition-timing-function: var(--ease-out);
}
button.primary:hover { background: var(--accent-hover); }
button.primary:active { scale: 0.96; }

.alert { border-radius: var(--radius-sm); padding: 11px 13px; font-size: .84rem; margin-bottom: 16px; }
.alert.err { background: #fef2f2; color: #b91c1c; box-shadow: inset 0 0 0 1px #fecaca; }
.alert.ok { background: #f0fdf4; color: #15803d; box-shadow: inset 0 0 0 1px #bbf7d0; }

@media (max-width: 780px) { .auth-left { padding: 30px 24px; } }
@media (prefers-reduced-motion: reduce) {
  .auth { animation: none; }
  button.primary:active { scale: 1; }
}
