:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f5f1;
  color: #1d2923;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top left, #e3eee5, #f3f5f1 52%);
}

.login-card {
  position: relative;
  width: min(100%, 430px);
  padding: 62px 40px 40px;
  border: 1px solid #d8e2d9;
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(54, 73, 59, .12);
}

.login-card .language-switcher {
  position: absolute;
  top: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #d8e2d9;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  transform: translateX(-50%);
}
.login-card .language-switcher button {
  width: auto;
  margin: 0;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f7d73;
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
}
.login-card .language-switcher button:hover { background: #f1f7f1; color: #286743; }
.login-card .language-switcher button.active { background: #e3eee5; color: #286743; font-weight: 750; }

.eyebrow { margin: 0 0 14px; color: #4d8060; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
h1 { margin: 0 0 12px; font-size: clamp(28px, 6vw, 40px); line-height: 1.05; }
.muted, .hint { color: #6f7d73; line-height: 1.6; }
.hint { margin: 22px 0 0; font-size: 12px; }
label { display: block; margin: 26px 0 8px; font-size: 13px; font-weight: 650; }
input, button { width: 100%; border-radius: 12px; font: inherit; }
input { padding: 13px 14px; border: 1px solid #c9d7cc; background: #fff; color: inherit; }
button { margin-top: 14px; padding: 13px 15px; border: 0; background: #286743; color: white; cursor: pointer; font-weight: 700; }
button:hover { background: #1f5636; }
.secondary-button { margin-top: 9px; border: 1px solid #c9d7cc; background: white; color: #286743; }
.secondary-button:hover { background: #f3f8f3; }
button:disabled { cursor: wait; opacity: .65; }
.message { min-height: 20px; margin: 12px 0 0; color: #a74733; font-size: 13px; }

@media (max-width: 520px) {
  .login-card { padding: 58px 24px 28px; }
  .login-card .language-switcher { top: 14px; }
  .login-card .language-switcher button { padding: 5px 6px; font-size: 10px; }
}
