@font-face {
  font-family: Alexandria;
  src: url("/fonts/Alexandria-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --forest: #203f25;
  --teal: #005b52;
  --gold: #fdbd3e;
  --muted: #52695b;
  --background: #f7f9f7;
  --line: #ced9d1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--background);
  color: var(--forest);
  font: 400 1rem/1.7 Alexandria, sans-serif;
}

.auth-card {
  width: min(100%, 460px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 16px 44px #203f2518;
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px clamp(20px, 7vw, 36px);
  background: var(--forest);
  color: white;
  border-block-end: 3px solid var(--gold);
}

header img { object-fit: contain; border-radius: 12px; background: white; padding: 5px; }
header strong, header span { display: block; }
header span { color: #ffd683; font-size: .78rem; }
section { padding: 30px clamp(20px, 7vw, 36px) 36px; }
h1 { margin: 0 0 22px; font-size: clamp(1.35rem, 5vw, 1.65rem); font-weight: 650; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }

input, button {
  inline-size: 100%;
  min-block-size: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  font: inherit;
}

input { background: white; color: var(--forest); border: 1px solid var(--line); }
button { background: var(--forest); color: white; border: 1px solid transparent; cursor: pointer; font-weight: 650; }
button:hover { background: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.error { color: #8d251f; background: #fff2ef; border-radius: 10px; margin: 0 0 18px; padding: 10px 12px; font-size: .85rem; }
