body {
  background: var(--surface-2);
  margin: 0;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  box-sizing: border-box;
}

.auth {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Pitch panel */
.auth-pitch {
  background: var(--pine);
  color: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.auth-pitch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(46, 219, 143, 0.18), transparent 55%);
  pointer-events: none;
}
.auth-pitch > * {
  position: relative;
  z-index: 1;
}
.auth-pitch .logo {
  display: inline-block;
}
.auth-pitch .logo img {
  height: 44px;
  width: auto;
  display: block;
}
.auth-pitch h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 96px 0 16px;
  color: var(--white);
}
.auth-pitch p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.55;
  margin: 0;
}
.auth-pitch .quote {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin: 32px 0 0;
}
.auth-pitch .quote blockquote {
  margin: 0;
  font-style: italic;
  color: var(--white);
  font-size: 14px;
  line-height: 1.55;
}
.auth-pitch .quote .who {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* Form panel */
.auth-form {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}
.auth-form h3 {
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.auth-form .sub {
  font-size: 14px;
  color: var(--text-2);
  margin: 0 0 32px;
}
.auth-alert {
  border: 1px solid rgba(196, 79, 60, 0.28);
  border-radius: var(--r-md);
  background: rgba(196, 79, 60, 0.08);
  color: #8f2f22;
  font-size: 13px;
  line-height: 1.45;
  margin: -12px 0 20px;
  padding: 10px 12px;
}
.auth-alert[hidden] {
  display: none;
}

/* Role switch */
.role-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  margin-bottom: 32px;
}
.role-switch button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
}
.role-switch button:hover {
  color: var(--text-1);
}
.role-switch button.on {
  background: var(--surface);
  color: var(--text-1);
  box-shadow: 0 1px 2px rgba(0, 63, 52, 0.06), 0 4px 12px rgba(0, 63, 52, 0.06);
}
.role-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* OAuth buttons */
.oauth {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.oauth[hidden] {
  display: none;
}
.oauth-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard);
  text-align: left;
  width: 100%;
}
.oauth-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 63, 52, 0.08);
}
.oauth-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}
.oauth-btn:disabled:hover {
  border-color: var(--hairline);
  box-shadow: none;
}
.oauth-btn.is-loading .oauth-label::after {
  content: "...";
}
.oauth-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.oauth-btn .ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.oauth-btn .oauth-label {
  flex: 1;
}
.oauth-btn .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.oauth-empty {
  border: 1px dashed var(--hairline);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  padding: 14px;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 8px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.divider span {
  display: inline-block;
}

/* Anonymous donor block */
.anon-note {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 12px;
}
.anon-cta {
  text-align: center;
  justify-content: center;
}

/* Form fields (kept for future fallback flow) */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--text-1);
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.legal {
  font-size: 12px;
  color: var(--text-3);
  margin: 24px 0 0;
  line-height: 1.5;
}
.legal a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.swap {
  font-size: 13px;
  color: var(--text-2);
  margin: 16px 0 0;
  text-align: center;
}
.swap a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}
.swap a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .auth {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .auth-pitch {
    padding: 32px 24px;
    min-height: 0;
  }
  .auth-pitch h2 {
    margin-top: 32px;
    font-size: 28px;
  }
  .auth-pitch .quote {
    display: none;
  }
  .auth-form {
    padding: 32px 24px;
  }
}
