:root {
  --ink: #18231f;
  --muted: #65706b;
  --paper: #fffef9;
  --canvas: #eef0e9;
  --lime: #c9f04b;
  --green: #1f5d45;
  --red: #9d3e35;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
}

.auth-intro {
  min-height: 100vh;
  padding: clamp(30px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  background: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font: 900 0.72rem ui-sans-serif, system-ui, sans-serif;
}

.brand strong,
.eyebrow {
  color: var(--lime);
}

.auth-intro h1 {
  max-width: 600px;
  margin: 16px 0;
  font: 500 clamp(3.4rem, 7vw, 7.2rem)/0.88 Georgia, serif;
  letter-spacing: -0.055em;
}

.auth-intro div > p:last-child {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.small-print {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.auth-card {
  width: min(520px, calc(100% - 40px));
  margin: auto;
  padding: clamp(28px, 6vw, 58px);
  background: var(--paper);
  border: 1px solid #d7dcd3;
  box-shadow: 0 20px 60px rgba(24, 35, 31, 0.1);
}

.tabs {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #d7dcd3;
}

.tabs a {
  padding: 12px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.tabs a[aria-selected="true"] {
  color: var(--green);
  border-color: var(--green);
}

h2 {
  margin: 8px 0;
  font: 500 clamp(2rem, 4vw, 3rem) Georgia, serif;
  letter-spacing: -0.035em;
}

#form-copy {
  margin: 0 0 34px;
  color: var(--muted);
}

label {
  display: block;
  margin: 18px 0 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

input {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  border: 1px solid #aeb6ae;
  border-radius: 2px;
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(201, 240, 75, 0.7);
  outline-offset: 2px;
}

.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.auth-error {
  margin: 18px 0 0;
  padding: 12px;
  color: #742b25;
  background: #f8e4e1;
  border-left: 4px solid var(--red);
  font-size: 0.85rem;
}

button {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font: 800 1rem inherit;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 760px) {
  .auth-shell {
    display: block;
  }

  .auth-intro {
    min-height: 280px;
    padding: 28px 20px;
  }

  .auth-intro h1 {
    margin-top: 42px;
    font-size: 3.4rem;
  }

  .small-print {
    display: none;
  }

  .auth-card {
    margin: 24px auto;
  }
}
