:root {
  color-scheme: dark;
  --ink: #fff8ec;
  --muted: #d9c9b1;
  --forest-deep: #07110d;
  --gold: #d6a75f;
  --line: rgba(255, 248, 236, 0.2);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--forest-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--forest-deep);
}

a {
  color: inherit;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 22px;
  padding: 8px 12px;
  border: 1px solid rgba(214, 167, 95, 0.38);
  border-radius: 999px;
  color: #f2d7a5;
  background: rgba(13, 33, 24, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8.5rem;
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  border: 1px solid var(--gold);
  color: #1b1209;
  background: var(--gold);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  color: rgba(255, 248, 236, 0.68);
  background: #070d0a;
  font-size: 0.92rem;
}

.auth-page {
  display: grid;
  min-height: 88vh;
  place-items: center;
  padding: 48px 20px;
  background:
    linear-gradient(90deg, rgba(7, 17, 13, 0.98), rgba(7, 17, 13, 0.84)),
    var(--forest-deep) url("/assets/coat-hero.png") center center / cover no-repeat;
}

.auth-panel {
  width: min(100%, 520px);
  padding: 0;
}

.brand-link {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  text-decoration: none;
}

.auth-panel h1 {
  max-width: 9ch;
  font-size: 4.3rem;
}

.auth-copy {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 248, 236, 0.24);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(7, 17, 13, 0.78);
  font: inherit;
  outline: none;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 167, 95, 0.18);
}

.field input:user-invalid {
  border-color: #e98c8c;
}

.form-message,
.status-box {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.form-message:empty {
  display: none;
}

.status-box {
  margin-top: 28px;
  border: 1px solid rgba(255, 248, 236, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: rgba(7, 17, 13, 0.7);
}

[data-tone="success"] {
  color: #bfe6c8;
}

[data-tone="error"] {
  color: #f0b0a8;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.auth-actions {
  margin-top: 28px;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--muted);
  text-decoration-color: rgba(214, 167, 95, 0.46);
  text-underline-offset: 4px;
}

@media (max-width: 780px) {
  .button {
    width: 100%;
  }

  .auth-page {
    min-height: 84vh;
    align-items: start;
    padding-top: 36px;
  }

  .brand-link {
    margin-bottom: 34px;
  }

  .auth-panel h1 {
    font-size: 3.55rem;
  }
}

@media (max-width: 420px) {
  .auth-panel h1 {
    font-size: 3.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
