@font-face {
  font-family: "InterVariable";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f9f6;
  --panel: #ffffff;
  --ink: #12201d;
  --ink-soft: #31413d;
  --muted: #64736f;
  --line: #d9e3df;
  --teal: #0f766e;
  --teal-dark: #0a514c;
  --amber-text: #6d4a12;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "InterVariable", Inter, system-ui, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

main {
  width: min(500px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(1rem, 4vw, 1.5rem);
  box-shadow: 0 18px 44px rgba(20, 31, 28, 0.12);
}

.wordmark {
  display: inline-flex;
  margin-bottom: 1.15rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 820;
  text-decoration: none;
}

.psy { color: var(--teal); }

.language-links {
  float: right;
  display: flex;
  gap: 0.35rem;
}

.language-links a {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  padding: 0.3rem 0.55rem;
  text-decoration: none;
}

.language-links a[aria-current="true"] {
  border-color: var(--teal);
  color: var(--teal-dark);
  font-weight: 720;
}

.kicker {
  clear: both;
  margin: 0 0 0.4rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.9rem, 8vw, 2.5rem);
  line-height: 1.08;
}

p { color: var(--ink-soft); }

label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-weight: 680;
}

input[type="password"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

button {
  width: 100%;
  min-height: 46px;
  margin-top: 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

button:hover { background: var(--teal-dark); }

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.32);
  outline-offset: 3px;
}

.error {
  border-left: 4px solid #b9822a;
  border-radius: 6px;
  background: #fffaf0;
  color: var(--amber-text);
  padding: 0.75rem 0.85rem;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}
