:root {
  color-scheme: light;
  font-family: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17231f;
  background: #f3f6f4;
  --accent: #0f5c4d;
  --accent-hover: #0b4c40;
  --accent-soft: #e7f1ed;
  --line: #dce4e0;
  --muted: #64716b;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: #f3f6f4; }
button, input { font: inherit; }

.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 410px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(24, 51, 42, .08);
}

.login-brand { display: flex; align-items: center; gap: 11px; }
.login-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
}
.login-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.login-brand strong { font-size: 16px; letter-spacing: .09em; }
.login-brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.login-copy { margin: 30px 0 22px; }
.login-eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login-copy h1 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.login-copy > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.login-error {
  margin: 0 0 18px;
  padding: 11px 12px;
  border: 1px solid #edc9c6;
  border-radius: 9px;
  background: #fff5f4;
  color: #8b312b;
  font-size: 13px;
  line-height: 1.4;
}

.login-form { display: grid; gap: 8px; }
.login-form label { margin-top: 7px; font-size: 12px; font-weight: 600; }
.login-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ccd6d1;
  border-radius: 9px;
  background: #fff;
  color: #17231f;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 92, 77, .13); }
.login-form button {
  min-height: 44px;
  margin-top: 15px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.login-form button:hover { background: var(--accent-hover); }
.login-form button:active { transform: translateY(1px); }
.login-form button:focus-visible { outline: 3px solid rgba(15, 92, 77, .24); outline-offset: 2px; }

.login-note { margin: 22px 0 0; color: #7a8580; font-size: 11px; line-height: 1.45; text-align: center; }

@media (max-width: 520px) {
  .login-page { place-items: start center; padding: 20px 14px; }
  .login-card { margin-top: min(12vh, 70px); padding: 24px 20px; border-radius: 14px; }
}
