.auth-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: #fff;
}

.auth-dialog::backdrop { background: #fff; }

.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,209,102,.22), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.auth-card {
  width: min(100%, 28rem);
  position: relative;
  text-align: center;
}

.auth-close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(23,32,51,.06);
  color: var(--ink);
  font-size: 1.15rem;
}

.auth-mark {
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.2rem;
  border-radius: 1.4rem;
  background: linear-gradient(145deg, #ff8a4c, #ffd166 55%, #6ec5ff);
  box-shadow: 0 18px 40px rgba(255,138,76,.24);
  font-size: 1.8rem;
}

.auth-card h2 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.auth-intro {
  margin: 1rem auto 1.65rem;
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.55;
}

.auth-switch {
  margin: 0 0 1rem;
  color: var(--muted);
}

.auth-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #e66c2c;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.auth-options,
.auth-email-form {
  display: grid;
  gap: .65rem;
}

.auth-provider {
  width: 100%;
  min-height: 3.25rem;
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  align-items: center;
  border: 1px solid rgba(23,32,51,.32);
  border-radius: .85rem;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.auth-provider:hover { border-color: var(--ink); }
.auth-provider-primary { border-color: #ff7a33; background: #ff7a33; color: #fff; }
.auth-provider-primary:hover { border-color: #e66c2c; background: #e66c2c; }
.auth-provider-icon { font-size: 1.15rem; }

.auth-email-form {
  margin-top: 1rem;
  text-align: left;
}

.auth-email-form label {
  display: grid;
  gap: .35rem;
  font-weight: 800;
}

.auth-email-form input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(23,32,51,.24);
  border-radius: .8rem;
  padding: .75rem .85rem;
  font: inherit;
}

.auth-email-form .primary { border-radius: .85rem; }
.auth-hidden { display: none !important; }

.auth-status {
  min-height: 1.4rem;
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.auth-legal {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}

.auth-legal a { color: var(--ink); }

@media (max-width: 560px) {
  .auth-shell { align-items: start; padding-top: 5.5rem; }
  .auth-close { top: -4.1rem; }
}
