/* ============================================================
   InfoAi — Auth shell (login / criar conta / recuperar senha)
   Mesmo design system do site + dashboard
   ============================================================ */

:root {
  --purple: #6d28d9;
  --purple-light: #8b5cf6;
  --purple-soft: #ede9fe;
  --purple-softer: #f5f3ff;
  --purple-dark: #4c1d95;
  --orange: #f97316;
  --bg: #fafafa;
  --card: #ffffff;
  --text: #1e1b4b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --success: #10b981;
  --danger: #ef4444;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-lg: 0 12px 40px rgba(30, 27, 75, 0.08), 0 4px 12px rgba(30, 27, 75, 0.04);
  --shadow-xl: 0 24px 60px rgba(109, 40, 217, 0.14), 0 8px 20px rgba(30, 27, 75, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.auth-body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Layout split */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

@media (max-width: 960px) {
  .auth {
    grid-template-columns: 1fr;
  }
}

/* Brand panel */
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 2.25rem 2.25rem;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(249, 115, 22, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(139, 92, 246, 0.45), transparent 50%),
    linear-gradient(155deg, #2e1065 0%, #4c1d95 38%, #6d28d9 72%, #7c3aed 100%);
  overflow: hidden;
}

/* Brand clean (login / signup / recover) — logo + texto central + checks */
.auth-brand--clean,
.auth-brand--signup {
  justify-content: center;
  padding: 2rem 2rem 1.75rem;
}

.auth-brand__stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: min(100%, 680px);
  height: 100%;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  gap: 1.5rem;
}

.auth-brand__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
}

.auth-brand__logo--center {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.auth-brand__logo--center img {
  height: 36px;
  width: auto;
}

.auth-brand--clean .auth-brand__badge,
.auth-brand--signup .auth-brand__badge {
  margin-top: 0;
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
}

.auth-brand--clean .auth-brand__title,
.auth-brand--signup .auth-brand__title {
  max-width: 16ch;
  margin: 0.35rem auto 0;
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  line-height: 1.15;
}

.auth-brand--clean .auth-brand__text,
.auth-brand--signup .auth-brand__text {
  max-width: 32ch;
  margin: 0.15rem auto 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.auth-brand--clean .auth-brand__points,
.auth-brand--signup .auth-brand__points {
  margin: 1.15rem auto 0;
  width: 100%;
  max-width: 30ch;
  text-align: left;
}

.auth-brand--clean .auth-brand__points li,
.auth-brand--signup .auth-brand__points li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
}

.auth-brand--clean .auth-brand__bottom,
.auth-brand--signup .auth-brand__bottom {
  margin-top: 0;
  width: 100%;
}

/* Idioma — mesmo padrao da Home (chips PT EN ES) */
.auth-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: 0 1px 2px rgba(30, 27, 75, 0.04);
}

.auth-lang--field {
  width: 100%;
  justify-content: stretch;
  padding: 4px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: none;
}

.auth-lang__btn {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-full);
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  flex: 1;
  text-align: center;
}

.auth-lang:not(.auth-lang--field) .auth-lang__btn {
  flex: 0 0 auto;
}

.auth-lang__btn:hover {
  color: var(--purple);
  background: var(--purple-softer);
  text-decoration: none;
}

.auth-lang__btn.is-active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.25);
}

.auth-lang__btn:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 2px;
}

.auth-panel__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.auth-panel__topbar .auth-panel__mobile-logo {
  margin-bottom: 0;
}

.auth-field__hint code {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--purple-dark);
  background: var(--purple-softer);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

/* Select2 no auth — DDI / país do WhatsApp */
.auth-field .select2-container,
.auth-phone .select2-container {
  width: 100% !important;
}

/* Garante que o <select> nativo some quando o Select2 monta */
.auth-phone__select.select2-hidden-accessible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.auth-phone .select2-container--default .select2-selection--single,
.auth-s2-container.select2-container--default .select2-selection--single {
  min-height: 46px !important;
  height: 46px !important;
  border-radius: 12px !important;
  border: 1.5px solid var(--border) !important;
  padding: 0 0.45rem 0 0.55rem !important;
  display: flex !important;
  align-items: center !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.auth-phone .select2-container--default.select2-container--focus .select2-selection--single,
.auth-phone .select2-container--default.select2-container--open .select2-selection--single,
.auth-s2-container.select2-container--default.select2-container--open .select2-selection--single,
.auth-s2-container.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #c4b5fd !important;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12) !important;
}

.auth-phone .select2-container--default .select2-selection--single .select2-selection__rendered,
.auth-s2-container .select2-selection__rendered {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  padding: 0 1.35rem 0 0 !important;
  line-height: 1.2 !important;
  color: var(--text) !important;
  display: flex !important;
  align-items: center !important;
}

.auth-phone .select2-container--default .select2-selection--single .select2-selection__arrow,
.auth-s2-container .select2-selection__arrow {
  height: 100% !important;
  right: 0.4rem !important;
  width: 18px !important;
}

.auth-phone .select2-container--default .select2-selection--single .select2-selection__arrow b,
.auth-s2-container .select2-selection__arrow b {
  border-color: #8b5cf6 transparent transparent transparent !important;
  border-width: 5px 4px 0 4px !important;
  margin-left: -4px !important;
  margin-top: -2px !important;
}

/* Seleção compacta: 🇧🇷 +55 */
.auth-s2-sel {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.auth-s2-sel__flag {
  font-size: 1.05rem;
  line-height: 1;
}

.auth-s2-sel__dial {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Dropdown do DDI — largo, com busca e lista bonita */
.auth-s2-dropdown.select2-dropdown,
.select2-dropdown.auth-s2-dropdown {
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 40px rgba(30, 27, 75, 0.12), 0 4px 12px rgba(109, 40, 217, 0.08) !important;
  overflow: hidden;
  z-index: 10050 !important;
  min-width: min(320px, calc(100vw - 2rem)) !important;
}

.auth-s2-dropdown .select2-search--dropdown {
  padding: 0.65rem 0.7rem 0.45rem !important;
  background: linear-gradient(180deg, #faf8ff 0%, #fff 100%);
  border-bottom: 1px solid var(--border-soft);
}

.auth-s2-dropdown .select2-search--dropdown .select2-search__field {
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 0.55rem 0.75rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3-3'/%3E%3C/svg%3E")
    no-repeat right 0.7rem center / 15px !important;
  padding-right: 2.1rem !important;
  outline: none !important;
}

.auth-s2-dropdown .select2-search--dropdown .select2-search__field:focus {
  border-color: #c4b5fd !important;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12) !important;
}

.auth-s2-dropdown .select2-search--dropdown .select2-search__field::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.auth-s2-dropdown .select2-results > .select2-results__options {
  max-height: 260px !important;
  padding: 0.3rem 0 !important;
}

.auth-s2-dropdown .select2-results__option {
  padding: 0.45rem 0.75rem !important;
  font-size: 0.88rem !important;
}

.auth-s2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6) !important;
  color: #fff !important;
}

.auth-s2-dropdown .select2-results__option--selected {
  background: var(--purple-softer) !important;
  color: var(--purple-dark) !important;
}

.auth-s2-dropdown .select2-results__option--selected.select2-results__option--highlighted {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6) !important;
  color: #fff !important;
}

.auth-s2-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

.auth-s2-option__flag {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1;
  width: 1.4rem;
  text-align: center;
}

.auth-s2-option__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.auth-s2-option__name {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-s2-option__iso {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.55;
  text-transform: uppercase;
}

.auth-s2-dropdown .select2-results__option--highlighted .auth-s2-option__iso {
  opacity: 0.85;
  color: inherit;
}

.auth-s2-option__dial {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--purple-softer);
  color: var(--purple-dark);
}

.auth-s2-dropdown .select2-results__option--highlighted .auth-s2-option__dial {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.auth-s2-dropdown .select2-results__option--selected:not(.select2-results__option--highlighted) .auth-s2-option__dial {
  background: #ede9fe;
  color: #5b21b6;
}

.auth-s2-dropdown .select2-results__message {
  padding: 0.85rem 1rem !important;
  color: var(--text-muted) !important;
  font-size: 0.86rem !important;
}

.auth-phone {
  grid-template-columns: minmax(6.75rem, 7.75rem) 1fr;
}

.auth-select {
  width: 100%;
  min-height: 46px;
}

.auth-field.is-invalid .auth-phone .select2-selection--single,
.auth-field.is-invalid .auth-s2-container .select2-selection--single {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.auth-brand__top,
.auth-brand__mid,
.auth-brand__bottom {
  position: relative;
  z-index: 1;
}

.auth-brand__logo {
  display: inline-flex;
  align-items: center;
}

.auth-brand__logo img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.auth-brand__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.auth-brand__title {
  margin: 1rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
}

.auth-brand__text {
  margin: 0;
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.auth-brand__points {
  list-style: none;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auth-brand__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.auth-brand__points svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #fdba74;
}

.auth-brand__bottom {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.auth-brand__float {
  position: absolute;
  right: 8%;
  bottom: 18%;
  width: min(280px, 42%);
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.auth-brand__float-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}

.auth-brand__float strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.auth-brand__float p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.4;
}

/* Celular: faixa roxa minimalista — só logo + headline; foco no formulário */
@media (max-width: 960px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .auth-brand,
  .auth-brand--clean,
  .auth-brand--signup {
    min-height: 0;
    height: auto;
    padding: 1rem 1.15rem 1.05rem;
    justify-content: center;
  }

  .auth-brand__stack {
    min-height: 0;
    height: auto;
    max-width: none;
    gap: 0.45rem;
    justify-content: center;
  }

  .auth-brand__center {
    flex: 0 0 auto;
    gap: 0.35rem;
  }

  .auth-brand__logo--center {
    margin-bottom: 0.15rem;
  }

  .auth-brand__logo--center img,
  .auth-brand__logo img {
    height: 28px;
  }

  .auth-brand__badge,
  .auth-brand__text,
  .auth-brand__points,
  .auth-brand__bottom,
  .auth-brand__float,
  .auth-brand__hook,
  .auth-cta-list {
    display: none !important;
  }

  .auth-brand__title,
  .auth-brand--clean .auth-brand__title,
  .auth-brand--signup .auth-brand__title {
    margin: 0 auto;
    max-width: 20ch;
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 800;
  }

  .auth-panel {
    padding: 1.15rem 1.15rem 1.75rem;
    justify-content: flex-start;
  }

  .auth-panel__topbar {
    margin-bottom: 0.5rem;
  }

  /* logo já está na faixa roxa — evita duplicar no form */
  .auth-panel__mobile-logo {
    display: none !important;
  }

  .auth-panel__topbar {
    justify-content: flex-end;
  }

  .auth-back {
    margin-bottom: 0.75rem;
  }

  .auth-panel__title {
    font-size: 1.4rem;
  }

  .auth-panel__subtitle {
    margin-bottom: 1rem;
    font-size: 0.88rem;
  }

  .auth-card {
    padding: 1.1rem 1rem 1.15rem;
  }
}

/* Form panel */
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
}

.auth-panel__inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-panel__mobile-logo {
  display: none;
  margin-bottom: 1.25rem;
}

.auth-panel__mobile-logo img {
  height: 28px;
  width: auto;
}

@media (max-width: 960px) {
  .auth-panel__mobile-logo {
    display: block;
  }
}

.auth-panel__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple);
  margin-bottom: 0.4rem;
}

.auth-panel__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.auth-panel__subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Card form */
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-lg);
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

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

.auth-field__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-display);
}

.auth-field__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.auth-field__error {
  font-size: 0.75rem;
  color: var(--danger);
  font-weight: 600;
  display: none;
}

.auth-field.is-invalid .auth-field__error {
  display: block;
}

.auth-field.is-invalid .auth-input,
.auth-field.is-invalid .auth-phone {
  border-color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.auth-field.is-valid .auth-input {
  border-color: #6ee7b7;
}

.auth-input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input::placeholder {
  color: var(--text-muted);
}

.auth-input:focus {
  outline: none;
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .auth-input {
  padding-right: 2.75rem;
}

.auth-toggle-pass {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.auth-toggle-pass:hover {
  color: var(--text);
  background: var(--border-soft);
}

.auth-toggle-pass svg {
  width: 18px;
  height: 18px;
}

/* Phone row */
.auth-phone {
  display: grid;
  grid-template-columns: minmax(6.75rem, 7.75rem) 1fr;
  gap: 0.45rem;
  align-items: stretch;
}

.auth-phone__dial {
  position: relative;
}

.auth-phone__select {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 1.75rem 0.55rem 0.65rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
}

.auth-phone__select:focus {
  outline: none;
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

.auth-phone__input {
  min-width: 0;
}

/* Password rules */
/* Força da senha */
.auth-pass-meter {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.auth-pass-meter__bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.auth-pass-meter__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #94a3b8;
  transition: width 0.2s ease, background 0.2s ease;
}

.auth-pass-meter[data-level="1"] .auth-pass-meter__bar span {
  background: #ef4444;
}

.auth-pass-meter[data-level="2"] .auth-pass-meter__bar span {
  background: #f97316;
}

.auth-pass-meter[data-level="3"] .auth-pass-meter__bar span {
  background: #eab308;
}

.auth-pass-meter[data-level="4"] .auth-pass-meter__bar span {
  background: #10b981;
}

.auth-pass-meter__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.auth-pass-meter[data-level="1"] .auth-pass-meter__label {
  color: #dc2626;
}

.auth-pass-meter[data-level="2"] .auth-pass-meter__label {
  color: #ea580c;
}

.auth-pass-meter[data-level="3"] .auth-pass-meter__label {
  color: #ca8a04;
}

.auth-pass-meter[data-level="4"] .auth-pass-meter__label {
  color: #059669;
}

/* Criterios de senha — sempre visiveis */
.auth-pass-rules {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: #f8fafc;
}

.auth-pass-rules li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
}

.auth-pass-rules li svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #94a3b8;
}

.auth-pass-rules li.is-ok {
  color: #047857;
  font-weight: 650;
}

.auth-pass-rules li.is-ok svg {
  color: #059669;
}

/* Row helpers */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
}

.auth-link-muted {
  font-size: 0.84rem;
  font-weight: 600;
}

/* Buttons */
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s ease, background 0.15s ease;
}

.auth-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 55%, var(--orange) 160%);
  box-shadow: 0 8px 22px rgba(109, 40, 217, 0.3);
}

.auth-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(109, 40, 217, 0.38);
}

.auth-btn--primary:active {
  transform: translateY(0);
}

.auth-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-btn--ghost {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.auth-btn--ghost:hover {
  border-color: #c4b5fd;
  background: var(--purple-softer);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.15rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.auth-alert {
  display: none;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.auth-alert.is-visible {
  display: block;
}

.auth-alert--ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.auth-alert--err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-legal {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.auth-legal a {
  font-weight: 600;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.auth-back:hover {
  color: var(--purple);
  text-decoration: none;
}

.auth-back svg {
  width: 16px;
  height: 16px;
}

/* Success state (recuperar senha) */
.auth-success {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.auth-success__ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #059669;
}

.auth-success__ico svg {
  width: 28px;
  height: 28px;
}

.auth-success h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
}

.auth-success p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
