/* =========================================
   Modal Esqueci a Senha — wsx-forgot-modal
   ========================================= */

#wsx-forgot-modal,
#wsx-forgot-modal * {
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

#wsx-forgot-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: transparent;
  z-index: 99999;
}

#wsx-forgot-modal.wsx-active {
  display: flex;
}

#wsx-forgot-modal .wsx-forgot-panel {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  position: relative;
  animation: wsxForgotPopupIn .18s ease-out;
}

#wsx-forgot-modal .wsx-forgot-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

#wsx-forgot-modal .wsx-forgot-header {
  padding: 28px 40px 18px;
  border-bottom: 1px solid #e8edf3;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

#wsx-forgot-modal .wsx-forgot-title {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
  word-break: break-word;
}

#wsx-forgot-modal .wsx-forgot-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  word-break: break-word;
  white-space: normal;
}

#wsx-forgot-modal .wsx-forgot-form {
  margin: 0;
  padding: 24px 28px 28px;
  display: block;
}

#wsx-forgot-modal .wsx-forgot-feedback {
  display: none;
  width: 100%;
  margin: 0 0 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

#wsx-forgot-modal .wsx-forgot-feedback.wsx-visible {
  display: block;
}

#wsx-forgot-modal .wsx-forgot-feedback.wsx-success {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
}

#wsx-forgot-modal .wsx-forgot-feedback.wsx-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

#wsx-forgot-modal .wsx-forgot-field {
  display: block;
  width: 100%;
  margin-bottom: 16px;
}

#wsx-forgot-modal .wsx-forgot-label {
  display: block;
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

#wsx-forgot-modal .wsx-forgot-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  line-height: 46px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
  -webkit-appearance: none;
}

#wsx-forgot-modal .wsx-forgot-input:focus {
  border-color: #0b6db8;
  box-shadow: 0 0 0 4px rgba(11, 109, 184, 0.12);
}

#wsx-forgot-modal .wsx-forgot-note {
  display: block;
  width: 100%;
  margin: 0 0 18px 0;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

#wsx-forgot-modal .wsx-forgot-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

#wsx-forgot-modal .wsx-forgot-btn {
  min-width: 120px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

#wsx-forgot-modal .wsx-forgot-btn:hover {
  transform: translateY(-1px);
}

#wsx-forgot-modal .wsx-forgot-btn-secondary {
  background: #e2e8f0;
  color: #1e293b;
}

#wsx-forgot-modal .wsx-forgot-btn-primary {
  background: linear-gradient(135deg, #0b6db8 0%, #095ea0 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(11, 109, 184, 0.18);
}

@keyframes wsxForgotPopupIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  #wsx-forgot-modal {
    padding: 16px;
  }

  #wsx-forgot-modal .wsx-forgot-panel {
    max-width: 100%;
    border-radius: 16px;
  }

  #wsx-forgot-modal .wsx-forgot-header,
  #wsx-forgot-modal .wsx-forgot-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  #wsx-forgot-modal .wsx-forgot-title {
    font-size: 24px;
  }

  #wsx-forgot-modal .wsx-forgot-actions {
    flex-direction: column-reverse;
  }

  #wsx-forgot-modal .wsx-forgot-btn {
    width: 100%;
  }
}
