/* ESTILOS DA PÁGINA */
/* login.html — cartão de autenticação e cadastro em etapas
   Complementa css/base.css (não repete o que já está lá). */

/* Override de tom desta página (o restante vem de base.css) */
html[data-theme="light"] {
  --card-soft: #f5efe3;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  transition:
    background 0.25s ease,
    color 0.25s ease;
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.5;
}

header {
  min-height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 12px 5%;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: wrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--orange);
  color: white;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 3px 8px rgba(232, 98, 44, 0.25);
}

.brand-title {
  font-size: clamp(14px, 1.3vw, 15.5px);
  font-weight: 800;
  letter-spacing: -0.2px;
}

nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  font-size: clamp(13px, 1.05vw, 14px);
  color: var(--muted);
}

.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--input-border);
  background: var(--card-bg);
  color: var(--text);
  border-radius: 50%;
  padding: 0;
  flex: none;
  overflow: hidden;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease,
    transform 0.2s ease;
}

.theme-toggle i,
.theme-toggle svg {
  width: 17px;
  height: 17px;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  transform-origin: center;
}

.theme-toggle.switching i,
.theme-toggle.switching svg {
  transform: rotate(180deg) scale(0.4);
  opacity: 0;
}

.theme-toggle::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--orange) 35%, transparent);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.theme-toggle.rippling::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.btn {
  border-radius: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: clamp(13px, 1.05vw, 14px);
  font-weight: 700;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  box-shadow: 0 3px 10px rgba(232, 98, 44, 0.25);
}

.btn-outline {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--input-border);
  box-shadow: 0 1px 2px rgba(50, 38, 20, 0.04);
}

main {
  width: min(460px, 92%);
  margin: 0 auto;
  flex: 1;
  padding: clamp(30px, 5vw, 60px) 0 clamp(30px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* BANNER DE SESSÃO ENCERRADA */

.session-ended-banner {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  margin-bottom: 20px;
  animation: fadeDown 0.35s ease;
  position: relative;
}

.session-ended-banner.visible {
  display: flex;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.session-ended-banner > i {
  width: 20px;
  height: 20px;
  color: var(--danger);
  flex: none;
  margin-top: 1px;
}

.session-ended-banner .banner-text {
  flex: 1;
  line-height: 1.5;
}

.session-ended-banner .banner-text strong {
  display: block;
  font-size: clamp(13.5px, 1.1vw, 14.5px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}

.session-ended-banner .banner-text span {
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  color: var(--muted);
}

.session-ended-banner .banner-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 4px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.15s ease;
}

.session-ended-banner .banner-close:hover {
  background: var(--card-bg);
  color: var(--danger);
}

.session-ended-banner .banner-close i {
  width: 15px;
  height: 15px;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(24px, 3.4vw, 36px);
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(18px, 2.4vw, 24px);
}

.auth-logo .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.auth-logo .brand-mark i {
  width: 24px;
  height: 24px;
}

.auth-logo .brand-title {
  font-size: clamp(17px, 1.5vw, 19px);
}

.auth-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 6px;
  text-align: center;
}

.auth-subtitle {
  color: var(--muted);
  text-align: center;
  font-size: clamp(13px, 1.1vw, 14px);
  margin: 0 0 clamp(20px, 3vw, 26px);
  line-height: 1.5;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin-bottom: clamp(16px, 2.2vw, 20px);
}

.auth-tab {
  flex: 1;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
  font-size: clamp(13px, 1.05vw, 14px);
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(50, 38, 20, 0.08);
}

html[data-theme="dark"] .auth-tab.active {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.auth-tab:hover:not(.active) {
  color: var(--orange);
}

.public-consult-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--card-soft);
  border: 1px dashed var(--input-border);
  margin-bottom: clamp(20px, 2.6vw, 26px);
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  line-height: 1.5;
  color: var(--muted);
}

.public-consult-box i {
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex: none;
  margin-top: 2px;
}

.public-consult-box strong {
  color: var(--text);
  font-weight: 700;
}

.public-consult-box a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.public-consult-box a:hover {
  text-decoration: underline;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.field {
  margin-bottom: clamp(14px, 1.8vw, 18px);
}

.field label {
  display: block;
  font-size: clamp(13px, 1.1vw, 14px);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.field label .req {
  color: var(--orange);
  font-weight: 800;
  margin-left: 2px;
}

.field input {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  font: inherit;
  font-size: clamp(14px, 1.15vw, 15px);
  background: var(--input-bg);
  color: var(--text);
  transition:
    border 0.15s,
    box-shadow 0.15s;
}

.field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.field input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.field.error input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.field-error-msg {
  display: none;
  font-size: clamp(11.5px, 0.95vw, 12.5px);
  color: var(--danger);
  font-weight: 600;
  margin-top: 6px;
}

.field.error .field-error-msg {
  display: block;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 44px;
}

.toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 6px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: color 0.15s;
}

.toggle-pass:hover {
  color: var(--orange);
}

.toggle-pass i {
  width: 17px;
  height: 17px;
}

/* ===== CADASTRO EM ETAPAS ===== */

.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.step-dot .num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 800;
  background: var(--card-soft);
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.step-dot.active .num {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.step-dot.active {
  color: var(--text);
}

.step-dot.done .num {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.step-line {
  height: 2px;
  flex: 1;
  background: var(--border);
  border-radius: 2px;
}

.step-line.done {
  background: var(--success);
}

.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
  animation: fadeStep 0.22s ease;
}

@keyframes fadeStep {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.grid-2 .full {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.field select {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  font: inherit;
  font-size: clamp(14px, 1.15vw, 15px);
  background: var(--input-bg);
  color: var(--text);
  transition:
    border 0.15s,
    box-shadow 0.15s;
}

.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.field.error select {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.field label .opt {
  font-weight: 600;
  color: var(--muted);
  font-size: 11.5px;
  margin-left: 4px;
}

.field-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
}

.strength {
  margin-top: 9px;
}

.strength .bars {
  display: flex;
  gap: 4px;
}

.strength .bars span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--border);
  transition: background 0.2s;
}

.strength .lbl {
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--muted);
}

.strength.s1 .bars span:nth-child(-n + 1),
.strength.s2 .bars span:nth-child(-n + 2),
.strength.s3 .bars span:nth-child(-n + 3),
.strength.s4 .bars span {
  background: currentColor;
}

.strength.s0,
.strength.s1 {
  color: var(--danger);
}

.strength.s2 {
  color: var(--warning);
}

.strength.s3 {
  color: var(--info);
}

.strength.s4 {
  color: var(--success);
}

.strength.s0 .lbl,
.strength.s1 .lbl,
.strength.s2 .lbl,
.strength.s3 .lbl,
.strength.s4 .lbl {
  color: currentColor;
}

.step-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.step-actions .btn {
  flex: 1;
  justify-content: center;
}

.lgpd-box {
  display: flex;
  gap: 10px;
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 16px;
}

.lgpd-box i {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--orange);
  margin-top: 2px;
}

/* ===== CHECKBOX-ROW CORRIGIDO ===== */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: clamp(16px, 2vw, 20px);
  cursor: pointer;
  user-select: none;
  position: relative;
}

.checkbox-row input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkbox-row .check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--input-border);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  transition: all 0.15s ease;
  background: var(--input-bg);
  position: relative;
}

.checkbox-row .check-box svg,
.checkbox-row .check-box i {
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
  stroke-width: 3;
  pointer-events: none;
}

.checkbox-row input:checked + .check-box {
  background: var(--orange);
  border-color: var(--orange);
}

.checkbox-row input:checked + .check-box svg,
.checkbox-row input:checked + .check-box i {
  opacity: 1;
}

.checkbox-row span.text {
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  color: var(--muted);
  line-height: 1.5;
}

.checkbox-row span.text a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
}

.checkbox-row span.text a:hover {
  text-decoration: underline;
}
/* ===== FIM CHECKBOX-ROW ===== */

.btn-auth {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: clamp(14px, 1.15vw, 15px);
  border-radius: 10px;
}

.auth-footer {
  text-align: center;
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  color: var(--muted);
  margin-top: clamp(14px, 2vw, 18px);
}

.auth-footer a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--orange-soft);
  border: 1px solid color-mix(in srgb, var(--orange) 20%, transparent);
  margin-bottom: clamp(16px, 2vw, 20px);
  font-size: clamp(12px, 1vw, 13px);
  line-height: 1.5;
}

.info-box i {
  width: 15px;
  height: 15px;
  color: var(--orange);
  flex: none;
  margin-top: 2px;
}

.info-box strong {
  color: var(--text);
}

.error-banner {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
  margin-bottom: 16px;
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  line-height: 1.5;
  color: var(--text);
}

.error-banner.visible {
  display: flex;
}

.error-banner i {
  width: 16px;
  height: 16px;
  color: var(--danger);
  flex: none;
  margin-top: 2px;
}

.error-banner strong {
  color: var(--danger);
  font-weight: 800;
}

.demo-card {
  background: var(--card-soft);
  border: 1px dashed var(--input-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: clamp(20px, 2.6vw, 26px);
  font-size: clamp(12px, 1vw, 13px);
}

.demo-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  font-size: clamp(12px, 1vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.demo-title i {
  width: 14px;
  height: 14px;
  color: var(--purple);
}

.demo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-item:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
}

.demo-item .demo-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-item .demo-label i {
  width: 12px;
  height: 12px;
  color: var(--purple);
}

.demo-item .demo-fill {
  font-size: 11px;
  font-weight: 800;
  color: var(--purple);
  white-space: nowrap;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
  text-align: center;
  animation: modalIn 0.25s ease;
}

.modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--danger-soft);
  color: var(--danger);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.modal-icon i {
  width: 30px;
  height: 30px;
}

.modal-title {
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 800;
  margin: 0 0 8px;
}

.modal-msg {
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 14px);
  line-height: 1.55;
  margin: 0 0 22px;
}

.modal-msg strong {
  color: var(--text);
  font-weight: 700;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 130px;
}

footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  padding: clamp(24px, 3vw, 32px) 5% clamp(16px, 2vw, 22px);
  margin-top: clamp(30px, 4vw, 50px);
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: auto;
  color: var(--muted);
  font-size: clamp(11px, 1vw, 12.5px);
  text-align: center;
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 420px;
  margin-left: auto;
  background: var(--toast-bg);
  color: var(--toast-text);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: clamp(13px, 1.1vw, 14px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 60;
}

@media (max-width: 800px) {
  header {
    padding: 12px 4%;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 5%;
    gap: 10px;
    z-index: 15;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  nav.open {
    display: flex;
  }
  nav a,
  nav button,
  nav .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 16px;
  }
  .theme-toggle {
    width: 42px;
    height: 42px;
    margin: 6px auto 0;
  }
  .menu-btn {
    display: grid;
    place-items: center;
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .auth-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== ETAPA 3 — VERIFICAÇÃO POR E-MAIL ===== */
.code-input {
  text-align: center;
  font-size: 26px !important;
  font-weight: 800;
  letter-spacing: 10px;
  padding: 14px 12px !important;
  font-variant-numeric: tabular-nums;
}
.code-input::placeholder {
  letter-spacing: 10px;
  opacity: 0.35;
}

.codigo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: -6px 0 18px;
}
.codigo-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.codigo-meta > span i,
.codigo-meta > span svg {
  width: 14px;
  height: 14px;
}
.codigo-meta > span.expirado {
  color: var(--danger);
}

.link-btn {
  background: transparent;
  border: 0;
  padding: 4px 2px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--orange);
  cursor: pointer;
  border-radius: 6px;
}
.link-btn:hover {
  text-decoration: underline;
}
.link-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
  text-decoration: none;
}

/* ⚠️ Caixa de MOCK — sai junto com o mock quando houver back-end */
.mock-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--warning-soft);
  border: 1px dashed var(--warning);
  border-radius: 11px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
}
.mock-box i,
.mock-box svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--warning);
  margin-top: 2px;
}
.mock-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--orange);
}

/* 3 etapas: o indicador precisa caber melhor no mobile */
@media (max-width: 480px) {
  .step-dot {
    font-size: 11px;
    gap: 5px;
  }
  .step-dot .num {
    width: 21px;
    height: 21px;
    font-size: 10.5px;
  }
}
/* ===== Recuperação de senha: pílulas de método ===== */
#metodoGroup .radio-pill {
  flex: 1;
  justify-content: center;
  padding: 12px 14px;
}
#metodoGroup .radio-pill i {
  width: 16px;
  height: 16px;
}
#metodoGroup .radio-pill.active i {
  color: var(--orange-dark);
}
/* ===== Bloqueio temporário ===== */
#bloqueioSessaoBox {
  margin-top: 12px;
  margin-bottom: 4px;
  animation: fadeDown 0.3s ease;
}
#bloqueioSessaoBox strong {
  color: var(--text);
  font-weight: 800;
}
#bloqueioSessaoBox strong:last-of-type {
  color: var(--danger);
  font-variant-numeric: tabular-nums;
}
/* ===== Escolha do método de verificação (etapa 2) ===== */
.verify-choice {
  margin: 20px 0 8px;
}

.verify-choice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(13px, 1.1vw, 14px);
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text);
}

.verify-choice-title i {
  width: 16px;
  height: 16px;
  color: var(--orange);
}

.verify-choice-sub {
  font-size: clamp(12px, 1vw, 13px);
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.verify-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .verify-options {
    grid-template-columns: 1fr;
  }
}

.verify-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  background: var(--card-bg);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: all 0.15s ease;
  position: relative;
}

.verify-option:hover {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.verify-option.active {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.vo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--card-soft);
  color: var(--muted);
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.15s ease;
}

.verify-option.active .vo-icon {
  background: var(--orange);
  color: #fff;
}

.vo-icon i,
.vo-icon svg {
  width: 17px;
  height: 17px;
}

.vo-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vo-body strong {
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.vo-body small {
  font-size: clamp(11px, 0.9vw, 11.5px);
  color: var(--muted);
  line-height: 1.35;
}

.vo-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--input-border);
  display: grid;
  place-items: center;
  flex: none;
  background: var(--input-bg);
  transition: all 0.15s ease;
}

.vo-check i,
.vo-check svg {
  width: 11px;
  height: 11px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
  stroke-width: 3;
}

.verify-option.active .vo-check {
  background: var(--orange);
  border-color: var(--orange);
}

.verify-option.active .vo-check i,
.verify-option.active .vo-check svg {
  opacity: 1;
}

/* Aviso de verificação */
.verify-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 4px;
  border-radius: 10px;
  background: var(--warning-soft);
  border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
  font-size: clamp(12px, 1vw, 13px);
  line-height: 1.5;
  color: var(--text);
  animation: fadeDown 0.2s ease;
}

.verify-warning i {
  width: 15px;
  height: 15px;
  color: var(--warning);
  flex: none;
  margin-top: 2px;
}

.verify-warning .link-btn {
  padding: 0;
  margin-left: 2px;
  font-size: inherit;
}

/* ==========================================================
   COMBOBOX DE CIDADES — substitui o <datalist> nativo feio
   ========================================================== */

.aq-combo {
  position: relative;
  width: 100%;
}

.aq-combo input {
  width: 100%;
  padding-right: 38px !important; /* espaço para a setinha */
  cursor: pointer;
}

/* Seta no canto direito (igual ao select) */
.aq-combo input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23847a6c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
html[data-theme="dark"] .aq-combo input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a89b86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.aq-combo input:focus {
  cursor: text;
}

/* Lista */
.aq-combo-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  z-index: 50;
  animation: aqComboIn 0.14s ease-out;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
html[data-theme="dark"] .aq-combo-list {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.aq-combo-list::-webkit-scrollbar {
  width: 8px;
}
.aq-combo-list::-webkit-scrollbar-track {
  background: transparent;
}
.aq-combo-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.aq-combo-list::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

@keyframes aqComboIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Itens */
.aq-combo-item {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: clamp(13px, 1.05vw, 14px);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.1s ease,
    color 0.1s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.aq-combo-item strong {
  color: var(--orange);
  font-weight: 800;
}
.aq-combo-item:hover,
.aq-combo-item.active {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

/* Estado vazio */
.aq-combo-empty {
  padding: 14px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.google-sign-in {
  gap: 10px;
  min-height: 44px;
  margin-bottom: 16px;
  border: 1px solid #747775;
  background: #fff;
  color: #1f1f1f;
  font-weight: 500;
}

.google-sign-in:hover:not(:disabled) {
  background: #f8faff;
  border-color: #747775;
  color: #1f1f1f;
}

.google-sign-in svg {
  flex: 0 0 18px;
}

.google-sign-in:focus-visible {
  outline: 2px solid #0b57d0;
  outline-offset: 3px;
}

.form-issues{margin:4px 0 14px;padding:12px 14px;border:1px solid var(--danger);border-left-width:4px;border-radius:10px;background:var(--danger-soft)}
.form-issues-title{margin:0 0 6px;font-weight:700;color:var(--danger);font-size:14px}
.form-issues.server .form-issues-title{margin:0}
.form-issues ul{margin:0;padding:0;list-style:none;display:grid;gap:2px}
.form-issues li button{all:unset;cursor:pointer;display:block;width:100%;box-sizing:border-box;padding:5px 6px;border-radius:6px;color:var(--text);font-size:13.5px;line-height:1.45}
.form-issues li button:hover,.form-issues li button:focus-visible{background:color-mix(in srgb,var(--danger) 14%,transparent)}
.form-issues li button strong{text-decoration:underline;text-underline-offset:3px}

#recuperarLoginBloqueado:not([hidden]) {
  display: block;
  margin-top: .5rem;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}
