:root {
  --ink: #24302a;
  --muted: #68746c;
  --paper: #fbf8f0;
  --cream: #eee7d6;
  --green: #245c45;
  --green-dark: #174131;
  --gold: #d49b3f;
  --line: #d9d1bf;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(212, 155, 63, 0.18), transparent 28rem),
    linear-gradient(135deg, #f4efdf 0%, #e3eadf 100%);
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(100%, 620px);
  padding: clamp(30px, 7vw, 64px);
  border: 1px solid rgba(36, 48, 42, 0.14);
  border-radius: 3px 28px 3px 28px;
  background: rgba(251, 248, 240, 0.93);
  box-shadow: 0 26px 70px rgba(36, 48, 42, 0.16);
}

.school-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50% 50% 50% 10%;
  color: #fff;
  background: var(--green);
  font-size: 27px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 32rem;
  margin: 22px 0 36px;
  color: var(--muted);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 1.03rem;
  line-height: 1.65;
}

label {
  display: block;
  margin-bottom: 9px;
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.password-row { display: flex; gap: 10px; }

input {
  min-width: 0;
  flex: 1;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  color: var(--ink);
  font: inherit;
}

input:focus { outline: 3px solid rgba(212, 155, 63, 0.28); border-color: var(--gold); }

button {
  padding: 13px 20px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

button:hover { background: var(--green-dark); }
button:disabled { opacity: 0.62; cursor: wait; }

.error {
  min-height: 1.35em;
  margin: 9px 0 0;
  color: #a23a2d;
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 0.86rem;
}

.privacy-note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 540px) {
  .password-row { flex-direction: column; }
  button { min-height: 48px; }
}

@media (prefers-reduced-motion: no-preference) {
  .login-card { animation: arrive 520ms cubic-bezier(.2,.8,.2,1) both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(14px); } }
}
