:root {
  color-scheme: light;
  --ivory: #f1ece3;
  --ivory-light: #f8f4ed;
  --green: #183c31;
  --green-soft: #49655b;
  --line: #aeb7a9;
  --error: #8a302c;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ivory);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--green);
  background: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.gate-shell {
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4svh, 3rem) clamp(1.25rem, 5vw, 4rem);
}

.gate-panel {
  width: min(100%, 52rem);
  padding: clamp(2.5rem, 7svh, 5rem) clamp(1.5rem, 7vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 10rem 10rem 0.25rem 0.25rem;
  text-align: center;
}

h1 {
  max-width: 13ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(2.75rem, min(7.5vw, 10svh), 6rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.announcement {
  margin: clamp(1.75rem, 4vw, 3rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
}

.gate-footer {
  min-height: 4.5rem;
  display: grid;
  place-items: center;
  padding: 1rem 1.25rem 1.5rem;
}

a {
  color: var(--green-soft);
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.gate-footer a {
  font-size: 0.875rem;
}

.gate-panel--login {
  width: min(100%, 34rem);
  padding-block: clamp(3rem, 8vw, 5rem);
  border-radius: 9rem 9rem 0.25rem 0.25rem;
}

.gate-panel--login h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1;
}

form {
  width: min(100%, 20rem);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  text-align: left;
}

.field {
  display: grid;
  gap: 0.625rem;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--green-soft);
  border-radius: 0.2rem;
  color: var(--green);
  background: var(--ivory-light);
  font: inherit;
}

.form-error {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  color: var(--error);
  font-size: 0.875rem;
  line-height: 1.45;
}

button {
  width: 100%;
  min-height: 3rem;
  margin-top: 1rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--green);
  border-radius: 0.2rem;
  color: var(--ivory-light);
  background: var(--green);
  font: 600 1rem/1 var(--sans);
  cursor: pointer;
}

button:hover {
  background: #245144;
}

@media (max-width: 420px) {
  .gate-shell {
    padding-inline: 1rem;
  }

  .gate-panel {
    padding-inline: 1.25rem;
    border-radius: 6rem 6rem 0.2rem 0.2rem;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 3.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
