/* ═══════════════════════════════════════════
   PÁGINA DE LOGIN / CADASTRO
═══════════════════════════════════════════ */

.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0A4E7A 0%, #0D5B8F 50%, #1B6FA3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ── Marca ─────────────────────────────── */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  margin-bottom: 2px;
}

.auth-brand .logo-icon { font-size: 32px; }
.auth-brand .logo-text { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }

.auth-tagline {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ── Card ──────────────────────────────── */
.auth-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}

/* ── Abas ──────────────────────────────── */
.auth-tabs {
  display: flex;
  background: #F1F5F9;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.auth-tab.active {
  background: #fff;
  color: #1E293B;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

/* ── Mensagem de erro / sucesso ─────────── */
.auth-msg {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.auth-msg--erro {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.auth-msg--ok {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

/* ── Formulário ────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.field-group { display: flex; flex-direction: column; gap: 6px; }

.field-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #64748B;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #94A3B8;
  pointer-events: none;
  flex-shrink: 0;
}

.field-wrap input {
  width: 100%;
  padding: 11px 40px 11px 38px;
  border: 1.5px solid #E2E8F0;
  border-radius: 9px;
  font-size: 15px;
  color: #1E293B;
  background: #FAFAFA;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.field-wrap input:focus {
  border-color: #0D5B8F;
  box-shadow: 0 0 0 3px rgba(13,91,143,.12);
  background: #fff;
}

.field-wrap input::placeholder { color: #CBD5E1; }

/* Botão show/hide senha */
.toggle-senha {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color .15s;
}

.toggle-senha svg { width: 16px; height: 16px; }
.toggle-senha:hover { color: #0D5B8F; }
.toggle-senha.ativo  { color: #0D5B8F; }

/* ── Botão submit ──────────────────────── */
.btn-auth {
  margin-top: 4px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #0A4E7A, #0D5B8F);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .3px;
  transition: filter .15s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-auth:hover:not(:disabled)  { filter: brightness(1.1); }
.btn-auth:active:not(:disabled) { transform: scale(.98); }
.btn-auth:disabled { opacity: .65; cursor: not-allowed; }

/* ── Separador de seção ────────────────── */
.auth-section-label {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .8px;
  color: #94A3B8;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 6px;
  margin-top: 4px;
}

/* ── Status do CEP ─────────────────────── */
.cep-status {
  font-size: 11px; font-weight: 600;
  color: #6B7280;
  text-transform: none; letter-spacing: 0;
}

/* ── Campos de endereço ────────────────── */
.addr-fields { display: flex; flex-direction: column; gap: 12px; }

.field-row { display: flex; gap: 12px; }
.field-row .field-group { margin: 0; }

/* Input simples (sem ícone) */
.field-input {
  width: 100%; box-sizing: border-box;
  padding: 11px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 9px;
  font-size: 15px; color: #1E293B;
  background: #FAFAFA; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-family: inherit;
}
.field-input:focus {
  border-color: #0D5B8F;
  box-shadow: 0 0 0 3px rgba(13,91,143,.12);
  background: #fff;
}
.field-input::placeholder { color: #CBD5E1; }
