body {
  margin: 0;
  background: #f8fafc;
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 10%, rgba(187, 247, 208, 0.72), transparent 34rem),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 52%, #ecfdf5 100%);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1rem;
}

.auth-logo {
  display: inline-flex;
}

.auth-logo img {
  width: min(13rem, 56vw);
  height: auto;
}

.auth-header-link,
.auth-switch a {
  color: #047857;
  font-weight: 700;
  text-decoration: none;
}

.auth-header-link {
  border: 1px solid #d1fae5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.65rem 1rem;
  box-shadow: 0 12px 32px -24px rgba(15, 23, 42, 0.7);
}

.auth-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 5.75rem);
  padding: 2rem 1rem 4rem;
}

.auth-main-wide {
  align-items: start;
}

.auth-card {
  width: min(100%, 30rem);
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  padding: clamp(1.35rem, 4vw, 2.25rem);
  box-shadow: 0 32px 80px -48px rgba(15, 23, 42, 0.85);
}

.auth-main-wide .auth-card {
  width: min(100%, 38rem);
}

.auth-kicker {
  color: #047857;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0.55rem 0 0;
  color: #030712;
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.auth-lede {
  margin: 0.85rem 0 0;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.auth-grid {
  display: grid;
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
}

.auth-field span,
.auth-check {
  color: #374151;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.8rem;
  background: #ffffff;
  color: #111827;
  padding: 0.85rem 0.95rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-field input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.auth-code-input {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-align: center;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.45;
}

.auth-check input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.18rem;
  accent-color: #10b981;
  flex: none;
}

.auth-primary,
.auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.05rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.auth-primary {
  background: #fbbf24;
  color: #111827;
  box-shadow: 0 18px 34px -22px rgba(245, 158, 11, 0.9);
}

.auth-primary:hover {
  background: #f59e0b;
}

.auth-secondary {
  border: 1px solid #d1fae5;
  background: #ecfdf5;
  color: #047857;
}

.auth-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.auth-resend-form {
  margin-top: 0.9rem;
}

.auth-switch {
  margin: 1.35rem 0 0;
  color: #6b7280;
  font-size: 0.95rem;
  text-align: center;
}

.auth-alert {
  margin-top: 1.25rem;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.auth-alert-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.auth-alert-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

@media (min-width: 640px) {
  .auth-header {
    padding: 1.25rem 2rem;
  }

  .auth-grid {
    grid-template-columns: 1fr 1fr;
  }
}
