:root {
  --paper: #f1f0ed;
  --ink: #080808;
  --red: #f32b1c;
  --muted: #777;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.auth-page {
  width: min(100% - 32px, 760px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 32px 0;
}

.auth-brand {
  display: inline-flex;
  justify-self: start;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  background: #fff;
}

.auth-brand img {
  display: block;
  width: 126px;
  height: auto;
}

.auth-card {
  width: min(100%, 480px);
  padding: clamp(24px, 5vw, 48px);
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 var(--red);
}

.auth-kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: clamp(3rem, 10vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.82;
  text-transform: uppercase;
}

.auth-subtitle {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.auth-form input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.auth-button {
  min-height: 48px;
  margin-top: 6px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-button:hover,
.auth-button:focus-visible {
  background: var(--red);
}

.auth-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.auth-link {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link:hover,
.auth-link:focus-visible {
  color: var(--red);
}

.auth-status {
  min-height: 1.4em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.auth-status.is-error {
  color: var(--red);
}

.auth-status.is-success {
  color: #16733b;
}

.is-hidden {
  display: none;
}

@media (max-width: 560px) {
  .auth-page {
    width: min(100% - 28px, 480px);
    gap: 18px;
  }

  .auth-brand {
    padding: 11px 14px;
  }

  .auth-brand img {
    width: 104px;
  }

  .auth-card {
    padding: 26px 20px;
    box-shadow: 5px 5px 0 var(--red);
  }

  .auth-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-button,
  .auth-link {
    transition: none;
  }
}
