:root {
  --paper: #f7f4ee;
  --surface: #fffefa;
  --ink: #191714;
  --muted: #6e675e;
  --line: #ded5c7;
  --accent: #126b63;
  --accent-dark: #0a453f;
  --danger: #9e2f32;
  --success: #14734f;
  --focus: #315cdb;
  --shadow: 0 22px 70px rgba(25, 23, 20, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(18, 107, 99, 0.13), transparent 24rem),
    linear-gradient(135deg, #f7f4ee 0%, #f2efe7 46%, #e8efe9 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  place-items: center;
}

.landing-shell {
  place-items: center;
}

.auth-shell {
  align-content: center;
}

.brand-panel,
.auth-panel {
  width: min(100%, 620px);
  background: rgba(255, 254, 250, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-panel {
  padding: clamp(32px, 7vw, 68px);
}

.auth-panel {
  padding: clamp(26px, 5vw, 48px);
}

.brand-mark {
  width: 76px;
  height: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 32px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ebe4d8;
}

.brand-mark span {
  display: block;
  border-radius: 50%;
  background: var(--accent);
}

.brand-mark span:nth-child(2) {
  background: #c16f38;
}

.brand-mark span:nth-child(3) {
  background: #273f6b;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  font-weight: 500;
}

.auth-panel h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
}

.lede {
  margin: 22px 0 0;
  max-width: 39rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.status {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #faf8f2;
  line-height: 1.5;
}

.status[data-tone="error"] {
  color: var(--danger);
  border-color: rgba(158, 47, 50, 0.28);
  background: rgba(158, 47, 50, 0.07);
}

.status[data-tone="success"] {
  color: var(--success);
  border-color: rgba(20, 115, 79, 0.28);
  background: rgba(20, 115, 79, 0.08);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.auth-form[hidden],
.success-actions[hidden] {
  display: none;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input:focus,
.button:focus-visible {
  outline: 3px solid rgba(49, 92, 219, 0.35);
  outline-offset: 2px;
  border-color: var(--focus);
}

.action-row,
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--accent-dark);
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fffefa;
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--accent-dark);
  background: transparent;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 560px) {
  .page-shell {
    padding: 24px 14px;
    place-items: stretch;
  }

  .brand-panel,
  .auth-panel {
    align-self: center;
  }

  .action-row,
  .success-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
