@font-face {
  font-family: "Host Grotesk";
  src: url("/assets/HostGrotesk-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src: url("/assets/HostGrotesk-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src: url("/assets/HostGrotesk-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Host Grotesk", system-ui, -apple-system, sans-serif;
  color: #0d0513;
  background: #f8f5fa;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 105%, rgb(94 194 80 / 38%), transparent 42%),
    #f8f5fa;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100% - 40px, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 7vh, 72px) 0 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0d0513;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.action-card {
  align-self: center;
  padding: clamp(28px, 7vw, 48px);
  border: 1px solid rgb(44 44 44 / 16%);
  border-radius: 28px;
  background: rgb(248 245 250 / 88%);
  box-shadow: 0 24px 80px rgb(13 5 19 / 12%);
  backdrop-filter: blur(18px);
}

.status-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(164 213 160 / 34%);
}

.status-mark span {
  width: 24px;
  height: 24px;
  display: block;
}

.status-mark.is-loading span {
  border: 3px solid rgb(44 44 44 / 18%);
  border-top-color: #0d0513;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.status-mark.is-success span {
  width: 14px;
  height: 26px;
  border: solid #0d0513;
  border-width: 0 4px 4px 0;
  transform: translateY(-2px) rotate(45deg);
}

.status-mark.is-error {
  background: rgb(206 62 57 / 12%);
}

.status-mark.is-error span::before,
.status-mark.is-error span::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 26px;
  border-radius: 2px;
  background: #0d0513;
  transform: translate(10px, -1px) rotate(45deg);
}

.status-mark.is-error span::after {
  transform: translate(10px, -1px) rotate(-45deg);
}

.eyebrow {
  margin: 0 0 8px;
  color: #4ba540;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.message {
  max-width: 40ch;
  margin: 20px 0 0;
  color: #2c2c2c;
  font-size: 1.05rem;
  line-height: 1.55;
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 54px;
  margin-top: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #0d0513;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary-action {
  background: #5ec250;
  box-shadow: 0 10px 24px rgb(75 165 64 / 22%);
}

.primary-action:hover {
  background: #4ba540;
}

.secondary-action {
  margin-top: 12px;
  border: 1px solid rgb(44 44 44 / 18%);
  background: transparent;
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
input:focus-visible,
.brand:focus-visible {
  outline: 3px solid #5b8def;
  outline-offset: 3px;
}

.password-form {
  margin-top: 28px;
}

.password-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.password-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgb(44 44 44 / 22%);
  border-radius: 16px;
  color: #0d0513;
  background: #f8f5fa;
}

.field-help {
  margin: 8px 0 0;
  color: #2c2c2c;
  font-size: 0.88rem;
}

.password-form .primary-action {
  margin-top: 20px;
}

.privacy-note {
  margin: 0;
  color: rgb(44 44 44 / 70%);
  font-size: 0.82rem;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 28px, 560px);
    padding-top: 22px;
    gap: 18px;
  }

  .action-card {
    padding: 28px 22px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-mark.is-loading span {
    animation-duration: 1.8s;
  }
}
