@font-face {
  font-family: "Pangolin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pangolin-latin.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #4a4a4a;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

:focus-visible {
  outline: 2px solid #14680e;
  outline-offset: 3px;
}

.gate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #d7e3d8;
  background: #fff;
}

.gate-logo {
  display: inline-flex;
  line-height: 0;
}

.gate-logo img {
  width: auto;
  height: 3.15rem;
}

.gate-admin,
.gate-back {
  flex-shrink: 0;
  text-decoration: none;
}

.gate-admin {
  padding: 0.5rem 1rem;
  border: 1px solid #14680e;
  border-radius: 999px;
  color: #14680e;
  font-size: 0.95rem;
  font-weight: 550;
}

.gate-admin:hover {
  background: #14680e;
  color: #fff;
}

.gate-back {
  color: #14680e;
}

.gate-back:hover {
  color: #0f520b;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 2rem, 46rem);
  margin: 0 auto;
  padding-block: 3rem 4rem;
}

.gate-intro {
  width: min(100%, 34rem);
  margin-inline: auto;
  text-align: center;
}

h1 {
  margin: 0 0 1rem;
  color: #14680e;
  font-family: "Pangolin", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.gate-intro p {
  margin: 0;
}

.gate-photo {
  display: block;
  width: 100%;
  height: clamp(12rem, 32vw, 18rem);
  margin-top: 2.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
  object-position: center 48%;
}

.login-card {
  width: min(100%, 22rem);
  margin-inline: auto;
  display: grid;
  gap: 0.45rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgb(20 50 16 / 0.07);
}

.gate-login {
  background: #f7f8f7;
}

.gate-login .gate-bar {
  background: #fff;
}

.login-card h1 {
  margin-bottom: 0.25rem;
  font-size: 2.4rem;
}

.login-lead,
.gate-error {
  margin: 0 0 0.75rem;
}

.login-lead {
  color: #5c5c5c;
}

.gate-error {
  color: #8a1f1f;
}

.login-card label {
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.login-card input {
  width: 100%;
  min-height: 2.75rem;
  margin-bottom: 0.35rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d5dfd6;
  border-radius: 0.5rem;
  background: #fff;
  color: #4a4a4a;
  font: inherit;
}

.login-card button {
  margin-top: 0.85rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: #14680e;
  color: #fff;
  font: inherit;
  font-weight: 550;
  cursor: pointer;
}

.login-card button:hover {
  background: #0f520b;
}

@media (min-width: 48rem) {
  .gate-bar {
    padding: 1.1rem 2rem;
  }

  .gate-logo img {
    height: 3.6rem;
  }
}

@media (max-width: 40rem) {
  .gate-logo img {
    height: 2.5rem;
  }

  .gate-admin {
    padding: 0.4rem 0.75rem;
  }
}
