.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;
}

.cadastro-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Card de cadastro (dentro de .auth-wrap) */
.auth-wrap .auth-card.cadastro-step {
  max-width: 420px;
}

.auth-wrap .auth-card.cadastro-step-dados {
  max-width: 460px;
}

.cadastro-step-badge {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cadastro-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.cadastro-step-desc {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cadastro-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.cadastro-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.cadastro-input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  box-sizing: border-box;
}

.cadastro-input:focus {
  outline: 0;
  border-color: var(--link);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

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

.cadastro-input[readonly] {
  background: var(--surface-soft);
  color: var(--text-muted);
  cursor: default;
}

.cadastro-error {
  margin: 0;
  font-size: 0.875rem;
  color: var(--danger);
}

.cadastro-error-login-wrap {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.cadastro-login-link {
  color: var(--link);
  font-weight: 600;
}

.cadastro-login-link:hover {
  text-decoration: underline;
}

.cadastro-error-global {
  margin-top: 0;
}

.cadastro-success {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--success);
  font-weight: 500;
}

.cadastro-trust-line {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cadastro-btn {
  margin-top: 4px;
  min-height: 48px;
  font-weight: 600;
}

.cadastro-back {
  margin-top: 4px;
}

.cadastro-btn:disabled,
.cadastro-back:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Fieldsets (Passo 2) */
.cadastro-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.cadastro-legend {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding: 0;
}

.cadastro-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cadastro-field-numero {
  min-width: 0;
}

.cadastro-field-uf {
  max-width: 120px;
}

@media (max-width: 520px) {
  .auth-wrap .auth-card.cadastro-step-dados {
    max-width: 100%;
  }

  .cadastro-row {
    grid-template-columns: 1fr;
  }

  .cadastro-field-uf {
    max-width: none;
  }
}
