:root {
  color-scheme: light;
  --page: #f3f6fa;
  --panel: #ffffff;
  --text: #1d2838;
  --muted: #667287;
  --line: #dce3ed;
  --accent: #1f5fbf;
  --accent-dark: #174b98;
  --danger: #b4232f;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(31, 95, 191, .08), transparent 32rem),
    var(--page);
}

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

.login-card {
  width: min(100%, 420px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(27, 45, 73, .09);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: 25px; line-height: 1.2; }
.intro { margin: 12px 0 26px; color: var(--muted); }

form { display: grid; gap: 8px; }
label { margin-top: 7px; font-size: 13px; font-weight: 650; }

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c9d2df;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input:focus, button:focus-visible {
  outline: 3px solid rgba(31, 95, 191, .2);
  outline-offset: 1px;
  border-color: var(--accent);
}

.password-field { position: relative; }
.password-field input { padding-right: 86px; }

button { font: inherit; cursor: pointer; }

.toggle-password {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
}

.submit {
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.submit:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.submit:disabled { cursor: wait; opacity: .65; }

.error {
  margin: 8px 0 0;
  padding: 9px 11px;
  border-left: 3px solid var(--danger);
  border-radius: 5px;
  background: #fff2f3;
  color: var(--danger);
  font-size: 13px;
}

.help {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 480px) {
  .login-shell { padding: 0; place-items: stretch; }
  .login-card { min-height: 100vh; padding: 36px 24px; border: 0; border-radius: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
