:root {
  color-scheme: light;
  --bg: oklch(0.963 0.008 245);
  --canvas: oklch(0.985 0.004 245);
  --surface: oklch(1 0 0);
  --line: oklch(0.875 0.012 245);
  --ink: oklch(0.19 0.02 250);
  --muted: oklch(0.47 0.022 248);
  --accent: oklch(0.54 0.11 183);
  --accent-strong: oklch(0.43 0.105 184);
  --danger: oklch(0.52 0.18 28);
  --shadow: 0 18px 48px rgba(20, 31, 46, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--canvas), var(--bg));
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px 16px;
}

.login-panel {
  width: min(100%, 380px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--accent) 20%, white);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 820;
}

.brand p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  font-size: 13px;
  font-weight: 720;
}

.login-form input {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  outline: none;
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 18%, transparent);
}

.login-error {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}

.login-form button {
  min-height: 40px;
  border: 1px solid var(--accent-strong);
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 760;
  cursor: pointer;
}

.login-form button:hover {
  background: var(--accent-strong);
}

.login-form button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
