:root {
  --auth-bg:
    radial-gradient(1100px 260px at 12% -8%, rgba(251, 191, 36, 0.2), transparent 62%),
    radial-gradient(1200px 340px at 88% -12%, rgba(251, 146, 60, 0.16), transparent 58%),
    #fff6ef;
  --auth-card: #ffffff;
  --auth-card-soft: #fffaf4;
  --auth-border: #ffd8b5;
  --auth-border-strong: #f5be88;
  --auth-text: #2f2a24;
  --auth-muted: #78685a;
  --auth-primary: #f97316;
  --auth-primary-strong: #ea580c;
  --auth-success: #15803d;
  --auth-danger: #b91c1c;
  --auth-shadow: 0 22px 52px -30px rgba(180, 83, 9, 0.44);
}

.auth-page {
  min-height: 100vh;
  background: var(--auth-bg);
  padding: 14px 0 36px;
}

.auth-shell {
  width: min(1140px, calc(100% - 16px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.auth-hero,
.auth-card {
  border: 1px solid var(--auth-border);
  background: var(--auth-card);
  border-radius: 20px;
  box-shadow: var(--auth-shadow);
}

.auth-hero {
  padding: 16px 14px;
  display: grid;
  gap: 12px;
  background:
    radial-gradient(1200px 340px at 88% -10%, rgba(251, 146, 60, 0.1), transparent 55%),
    var(--auth-card-soft);
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #fdba74;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.auth-hero h1 {
  margin: 0;
  color: var(--auth-text);
  line-height: 1.2;
  font-size: clamp(1.45rem, 1.22rem + 1.2vw, 2.15rem);
}

.auth-hero p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Guardrail: oculta chips legacy de intencion si aparecen por cache vieja. */
.auth-intent-switch,
.auth-intent-btn {
  display: none !important;
}

.auth-fomo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.auth-fomo__item {
  border-radius: 12px;
  border: 1px solid #ffe5cc;
  background: #ffffff;
  padding: 9px;
  box-shadow: 0 12px 28px -26px rgba(20, 14, 8, 0.32);
}

.auth-fomo__item small {
  display: block;
  color: var(--auth-muted);
  font-size: 11px;
}

.auth-fomo__item strong {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  color: #3c2615;
}

.auth-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #5f4732;
  font-size: 0.9rem;
}

.auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.auth-benefits i {
  color: #f97316;
  margin-top: 2px;
}

.auth-card {
  padding: 16px 14px;
  color: var(--auth-text);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto 0;
  height: 68%;
  background: linear-gradient(180deg, rgba(255, 214, 168, 0) 0%, rgba(255, 214, 168, 0.75) 48%, rgba(255, 214, 168, 0) 100%);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-140%);
  z-index: 0;
}

.auth-card.is-sweep::before {
  animation: authSweepDown 1.1s ease-out;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

@keyframes authSweepDown {
  0% {
    opacity: 0;
    transform: translateY(-140%);
  }
  22% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(220%);
  }
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.auth-tab {
  border: 1px solid #f4d1ac;
  border-radius: 12px;
  background: #fff8f1;
  color: #85562f;
  min-height: 42px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab:focus-visible {
  outline: 3px solid rgba(251, 146, 60, 0.72);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(251, 146, 60, 0.22);
}

.auth-tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-strong));
  color: #ffffff;
}

.auth-tabs.notification-focus-target {
  border-radius: 14px;
}

.auth-form {
  display: none;
  gap: 10px;
}

.auth-form.is-active {
  display: grid;
}

.auth-form__header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.auth-form__header p {
  margin: 4px 0 0;
  color: var(--auth-muted);
  font-size: 0.9rem;
}

.auth-grid {
  display: grid;
  gap: 10px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field > span {
  font-size: 0.82rem;
  font-weight: 800;
  color: #6f5135;
}

.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #f3cba4;
  border-radius: 11px;
  padding: 9px 11px;
  color: #3c2615;
  background: #ffffff;
  outline: none;
  font-size: 0.92rem;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}

.auth-password-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 6px;
}

.auth-eye {
  width: 38px;
  height: 38px;
  border: 1px solid #f2c89f;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  cursor: pointer;
}

.auth-eye:focus-visible {
  outline: 3px solid rgba(251, 146, 60, 0.72);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(251, 146, 60, 0.2);
}

.auth-inline-help {
  color: var(--auth-muted);
  font-size: 0.78rem;
}

.auth-inline-help.is-success {
  color: var(--auth-success);
}

.auth-inline-help.is-error {
  color: var(--auth-danger);
}

.auth-strength {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.auth-strength span {
  height: 6px;
  border-radius: 999px;
  background: #f1e7dc;
}

.auth-progress {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: #f5e5d5;
  overflow: hidden;
}

.auth-progress__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb923c, #f97316);
  transition: width 0.22s ease;
}

.auth-divider {
  position: relative;
  text-align: center;
  color: #7a6a5a;
  font-size: 12px;
  font-weight: 700;
  margin: 2px 0 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid #f2ddc7;
}

.auth-divider span {
  position: relative;
  z-index: 1;
  background: #ffffff;
  padding: 0 10px;
}

.auth-google-slot {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-location {
  border: 1px dashed #f0be8c;
  border-radius: 13px;
  background: #fffaf4;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.auth-location__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auth-location__head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: #5f4732;
}

.auth-check input {
  margin-top: 2px;
}

.auth-check a {
  color: #c2410c;
  font-weight: 700;
}

.auth-actions {
  display: grid;
  gap: 9px;
}

.auth-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 43px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.auth-btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-strong));
  box-shadow: 0 14px 24px -16px rgba(234, 88, 12, 0.8);
}

.auth-btn--ghost {
  background: #ffffff;
  border-color: #f0c79f;
  color: #855937;
}

.auth-btn:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.auth-btn:focus-visible,
.auth-link:focus-visible,
.auth-check input:focus-visible {
  outline: 3px solid rgba(251, 146, 60, 0.72);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(251, 146, 60, 0.2);
}

.auth-link {
  color: #9a3412;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-messages {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.auth-message,
.auth-badge {
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 9px 11px;
  font-size: 0.84rem;
}

.auth-message.error,
.auth-message.warning,
.auth-badge--warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.auth-message.success,
.auth-badge--ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.auth-hidden {
  display: none;
}

.auth-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auth-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-guide-modal.is-open,
.auth-guide-modal.is-forced {
  display: flex;
}

.auth-guide-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 8, 0.62);
  backdrop-filter: blur(4px);
}

.auth-guide-modal__card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  border-radius: 18px;
  border: 1px solid #ffd5ad;
  background: linear-gradient(180deg, #ffffff 0%, #fff8ee 100%);
  box-shadow: 0 30px 72px rgba(20, 14, 8, 0.4);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.auth-guide-modal__card h3 {
  margin: 7px 0 0;
}

.auth-guide-modal__card p {
  margin: 0;
  color: #6f5135;
}

.auth-guide-list {
  margin: 0;
  padding-left: 18px;
  color: #5f4732;
  font-size: 0.9rem;
  display: grid;
  gap: 4px;
}

.auth-guide-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .auth-shell {
    width: min(1140px, calc(100% - 26px));
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
    gap: 16px;
  }

  .auth-hero,
  .auth-card {
    padding: 20px;
  }

  .auth-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-actions,
  .auth-guide-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
