/* ====== Shell e Card das telas de autenticação ====== */
.auth-shell{
  min-height:100vh;
  display:grid; place-items:center;
  padding:24px;
  background:var(--bg);
}
.auth-card{
  width:100%;
  max-width:720px;  /* => duas colunas confortáveis em notebook/desktop */
  padding:28px 24px;
}

/* Seções do formulário de registro */
.form-register {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-1,
.form-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.form-1 > div,
.form-2 > div {
  flex: 1 1 min(260px, 100%);
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 16px;
  margin-bottom: 4px;
  font-weight: 600;
}

.auth-header{ margin-bottom:8px }
.subtitle{ margin:4px 0 0; }

/* ====== Linhas de formulário e senha com "olho" ====== */
.password-row{ display:flex; gap:8px; align-items:center }
.password-row .input{ flex:1 }

/* Botão-ícone genérico (usa .btn e .btn-ghost do global) */
.btn-icon{ padding:10px 12px; line-height:1; }

/* Footer da auth (links) */
.auth-footer{
  margin-top:16px; text-align:center;
}

/* ====== Password meter ====== */
.pw-meter {
  height: 6px;
  border-radius: 999px;
  background: #fff4ec; /* faixinha bem clara, puxando pro laranja */
  margin: 8px 0 0;
  overflow: hidden;
}

.pw-meter::before {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brand); /* barra na cor principal do app */
  transition: width 0.25s ease;
}

.pw-meter[data-score="1"]::before { width: 25%; opacity: 0.6; }
.pw-meter[data-score="2"]::before { width: 50%; opacity: 0.8; }
.pw-meter[data-score="3"]::before { width: 75%; opacity: 0.95; }
.pw-meter[data-score="4"]::before { width: 100%; opacity: 1; }


/* Alias para compatibilidade com o JS existente (alert.error/success) */
.alert.error{background:#fff1f2; border-color:#fecdd3; color:#991b1b}
.alert.success{background:#ecfdf5; border-color:#a7f3d0; color:#065f46}

@media (prefers-reduced-motion: reduce){
  *{animation:none!important; transition:none!important}
}

/* ===================== Modal de Política de Privacidade ===================== */

.privacy-inline {
  margin-top: 12px;
}

.privacy-inline .help {
  display: block;
  margin-top: 4px;
}

.privacy-inline .field-error,
.privacy-inline .field-ok {
  margin-top: 6px;
  text-align: center;
}

.fieldset{
  border-radius: 10px;
  border: solid 1px #e7b897;
}

.field-ok {
  color: #059669;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

.chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  pointer-events: none;
}

/* estado selecionado */
.chip:has(input:checked) {
  background: rgba(255, 106, 0, 0.06);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.06);
  font-weight: 600;
}


.privacy-modal[hidden] {
  display: none !important;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.privacy-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.privacy-modal .modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
}

.privacy-modal .modal-header,
.privacy-modal .modal-footer {
  padding: 16px 20px;
}

.privacy-modal .modal-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.privacy-modal .modal-body {
  padding: 12px 20px 8px;
}

.privacy-modal .privacy-scroll {
  max-height: 45vh;
  overflow-y: auto;
  padding-right: 8px;
  margin-right: -8px;
}

.privacy-modal .privacy-scroll p,
.privacy-modal .privacy-scroll h2 {
  margin-bottom: 8px;
}

.privacy-modal .modal-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-modal .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.privacy-modal .checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .privacy-modal .modal-dialog {
    border-radius: 14px;
  }

  .privacy-modal .modal-header,
  .privacy-modal .modal-footer,
  .privacy-modal .modal-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .privacy-modal .privacy-scroll {
    max-height: 55vh;
  }
}

/* Wrapper do campo cidade para posicionar o dropdown */
.city-autocomplete-wrap { position: relative; }

/* Dropdown de sugestões */
.city-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  max-height: 240px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Opção */
.city-suggest__opt {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.city-suggest__opt:hover,
.city-suggest__opt[aria-selected="true"] {
  background: rgba(0,0,0,.06);
}

/* Estado vazio */
.city-suggest__empty {
  padding: 10px 12px;
  color: rgba(0,0,0,.55);
  font-size: 14px;
}



