:root {
  color-scheme: light;
  --ink: #173b31;
  --muted: #587167;
  --paper: #fffdf8;
  --accent: #245b49;
  --accent-dark: #173b31;
  --focus: #b87916;
}

* { box-sizing: border-box; }

body.login-page {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #173b31;
}

.login-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(179, 218, 194, .28), transparent 32rem),
    radial-gradient(circle at 90% 85%, rgba(215, 170, 83, .20), transparent 28rem),
    linear-gradient(135deg, #173b31 0%, #245b49 52%, #102f29 100%);
}

.login-card {
  width: min(100%, 430px);
  padding: clamp(30px, 6vw, 54px);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(7, 29, 23, .30), 0 2px 8px rgba(7, 29, 23, .16);
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 15px;
  color: #fff;
  background: var(--accent);
  font-size: 1.55rem;
  font-weight: 750;
  box-shadow: inset 0 1px rgba(255, 255, 255, .25);
}

.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: .7rem; font-weight: 750; letter-spacing: .17em; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 7vw, 2.7rem); letter-spacing: -.035em; line-height: 1.05; }
.login-intro { max-width: 32ch; margin: 16px 0 30px; color: var(--muted); line-height: 1.55; }

label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 700; }
input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #9db4a6; border-radius: 12px; color: var(--ink); background: #fff; font: inherit; font-size: 1rem; }
input:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; padding: 12px 16px; border: 0; border-radius: 12px; color: #fff; background: var(--accent); font: inherit; font-weight: 750; cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
button:hover { background: var(--accent-dark); transform: translateY(-1px); }
button:active { transform: translateY(0); }
.login-error { margin: 0 0 18px; padding: 11px 13px; border-left: 4px solid #ad4b31; border-radius: 8px; color: #7d2f1d; background: #fff0eb; line-height: 1.4; }
.login-note { margin: 24px 0 0; color: var(--muted); font-size: .78rem; }

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

@media (max-width: 420px) { .login-shell { padding: 14px; } .login-card { border-radius: 22px; } }
