/* Conexão Mundo — recuperação de senha (complementa login.css) */

.login-card--password-reset {
  max-width: 420px;
}

.password-reset-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: var(--pb-blue-100);
  color: var(--pb-blue);
}

.password-reset-icon--warning {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #c2410c;
  border: 1px solid #fdba74;
}

.password-reset-form {
  gap: 16px;
}

.password-reset-back {
  margin-top: 6px;
  text-decoration: none;
}

.password-reset-back:hover {
  text-decoration: none;
}

/* Erros de validação */
.field--error .input {
  border-color: var(--pb-red);
}

.field--error .input:focus {
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.field__error {
  margin: 0;
  font-size: 12px;
  color: var(--pb-red);
  font-weight: 500;
}

.form-errors {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
  border: 1px solid #fecaca;
  font-size: 13px;
  color: #9f1239;
  box-shadow:
    0 1px 2px rgba(193, 16, 46, 0.06),
    inset 3px 0 0 var(--pb-red);
}

.form-errors p {
  margin: 0;
}

.form-errors p + p {
  margin-top: 6px;
}

/* Página de confirmação (modal sobre o formulário) */

.login-main--password-reset {
  position: relative;
}

.password-reset-card--dimmed {
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  filter: blur(1.5px);
  transform: scale(0.98);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.password-reset-success-modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.password-reset-success-modal__card {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 28px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  box-shadow:
    0 24px 48px rgba(13, 34, 71, 0.18),
    0 8px 16px rgba(13, 34, 71, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  animation: password-reset-modal-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.password-reset-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf3de 0%, #f4f9ec 100%);
  color: #3d7a1a;
  border: 1px solid #c5e0a8;
}

.password-reset-success-modal__hint {
  margin: 0 0 24px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--pb-blue-50);
  border: 1px solid var(--ink-200);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-600);
  text-align: center;
}

.password-reset-success-modal__btn {
  text-decoration: none;
}

.password-reset-success-modal__btn:hover {
  text-decoration: none;
}

@keyframes password-reset-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .password-reset-success-modal {
    padding: 16px;
  }

  .password-reset-success-modal__card {
    padding: 28px 22px 22px;
    border-radius: 16px;
  }

  .password-reset-card--dimmed {
    display: none;
  }
}
