/* ================================================================
   CADASTRO PROFISSIONAL — estilos complementares ao login.css
   Etapas, validação em tempo real, medidor de força, campos opcionais.
   ================================================================ */

.cad-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 18px;
}
.cad-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #94a3b8;
  min-width: 0;
}
.cad-step__num {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  transition: background 0.2s, color 0.2s;
}
.cad-step__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cad-step[aria-current="step"] .cad-step__num {
  background: #3b82f6;
  color: #fff;
}
.cad-step[aria-current="step"] {
  color: #e2e8f0;
  font-weight: 600;
}
.cad-step--done .cad-step__num {
  background: #10b981;
  color: #04231a;
}
.cad-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
  margin-bottom: 16px;
}
.cad-progress__fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transition: width 0.3s ease;
}

.cad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px) {
  .cad-grid { grid-template-columns: 1fr; }
  .cad-step__label { display: none; }
}

.cad-field { margin-bottom: 4px; }
.cad-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  margin: 10px 0 5px;
}
.cad-label .opt {
  font-weight: 400;
  color: #7c8aa0;
  font-size: 11.5px;
  margin-left: 4px;
}
.cad-hint {
  font-size: 11.5px;
  color: #8fa0b6;
  margin: 4px 0 0;
  line-height: 1.5;
}
.cad-erro {
  display: block;
  font-size: 12px;
  color: #f87171;
  margin: 5px 2px 0;
  min-height: 0;
}
.cad-erro:empty { display: none; }
.field-input.is-invalid,
.cad-input.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}
.field-input.is-valid,
.cad-input.is-valid {
  border-color: #10b981 !important;
}

.cad-input,
select.cad-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.cad-input:focus-visible {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.pw-req {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 10px;
  font-size: 11.8px;
  color: #8fa0b6;
}
@media (max-width: 420px) { .pw-req { grid-template-columns: 1fr; } }
.pw-req li::before {
  content: "○";
  margin-right: 6px;
  color: #64748b;
}
.pw-req li.ok {
  color: #34d399;
}
.pw-req li.ok::before {
  content: "✓";
  color: #34d399;
}

.cad-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.8px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 10px 0 0;
  cursor: pointer;
}
.cad-check input { margin-top: 3px; flex: 0 0 auto; }
.cad-check a { color: #93c5fd; text-decoration: underline; }

.cad-acoes {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.cad-acoes .btn-principal { flex: 1; }
.btn-secundario {
  flex: 0 0 auto;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-secundario:hover { background: rgba(148, 163, 184, 0.1); }
.btn-principal[disabled] { opacity: 0.65; cursor: not-allowed; }

.cad-captcha { margin-top: 14px; min-height: 0; }

.cad-optional-note {
  font-size: 12.5px;
  color: #8fa0b6;
  line-height: 1.6;
  margin: 0 0 6px;
}

/* ===== Confirmação de e-mail / reenvio ===== */
.sucesso-icone--erro { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.reenvio-bloco {
  text-align: left;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
}
.reenvio-bloco .btn-secundario,
.reenvio-bloco .btn-principal { width: 100%; }

.reenvio-aviso {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: 10px;
}
.reenvio-aviso--ok {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.reenvio-aviso--erro {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.reenvio-dica {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #94a3b8;
  display: flex;
  gap: 8px;
}
