@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

.dsm-auth-lostpassword,
.dsm-auth-lostpassword *,
.dsm-auth-lostpassword *::before,
.dsm-auth-lostpassword *::after {
  box-sizing: border-box;
}

.dsm-auth-lostpassword {
  width: 100%;
  background-color: #f1f5f9;
  font-family: "Inter", sans-serif;
  color: #0f172a;
}

.dsm-auth-lostpassword button,
.dsm-auth-lostpassword input {
  font-family: inherit;
}

/* Viewport - Responsive container */
.dsm-auth-lostpassword__viewport {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* Form card */
.dsm-auth-lostpassword__form {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  padding: 80px 70px;
  width: 100%;
}

/* Header */
.dsm-auth-lostpassword__header {
  text-align: center;
  margin-bottom: 32px;
}

.dsm-auth-lostpassword__title {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 900;
  color: #111827;
  line-height: 1.2;
}

.dsm-auth-lostpassword__subtitle {
  margin: 0;
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
}

/* Feedback message */
.dsm-auth-lostpassword__feedback {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 5px;
  font-size: 16px;
  display: none;
}

.dsm-auth-lostpassword__feedback--error {
  display: block;
  background-color: #fde8ea;
  border: 1px solid #f5b4bb;
  color: #a12633;
}

.dsm-auth-lostpassword__feedback--success {
  display: block;
  background-color: #e8f7ee;
  border: 1px solid #b5e0c7;
  color: #176c3a;
}

.dsm-auth-lostpassword__feedback--hide {
  display: none !important;
}

/* Field */
.dsm-auth-lostpassword__field {
  margin-bottom: 24px;
}

.dsm-auth-lostpassword__label {
  display: none;
}

.dsm-auth-lostpassword__control {
  position: relative;
}

/* Input */
.dsm-auth-lostpassword__input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  font-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #ffffff;
  color: #1f2937;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.dsm-auth-lostpassword__input::placeholder {
  color: #9ca3af;
  font-size: 16px;
}

.dsm-auth-lostpassword__input:focus {
  border-color: #4F6EF7;
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.15);
  outline: none;
}

/* reCAPTCHA */
.dsm-auth-lostpassword .sm-recaptcha-wrapper {
  margin: 16px 0 24px;
}

/* Actions */
.dsm-auth-lostpassword__actions {
  margin-top: 8px;
}

/* Submit button - Solid blue */
.dsm-auth-lostpassword__submit {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 8px;
  background-color: #4F6EF7;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, transform 100ms ease;
}

.dsm-auth-lostpassword__submit:hover {
  background-color: #3B5CE4;
}

.dsm-auth-lostpassword__submit:active {
  transform: translateY(1px);
  background-color: #2D4AD1;
}

.dsm-auth-lostpassword__submit:focus-visible {
  outline: 2px solid #4F6EF7;
  outline-offset: 2px;
}

.dsm-auth-lostpassword__submit:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* Links */
.dsm-auth-lostpassword__links {
  margin-top: 24px;
  font-size: 15px;
  color: #4b5563;
  text-align: center;
}

.dsm-auth-lostpassword__links a {
  color: #4F6EF7;
  font-weight: 600;
  text-decoration: none;
}

.dsm-auth-lostpassword__links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive - Tablet (768px and below)
   ========================================================================== */
@media (max-width: 768px) {
  .dsm-auth-lostpassword__viewport {
    max-width: 100%;
    padding: 48px 20px;
  }

  .dsm-auth-lostpassword__form {
    padding: 40px 32px;
    border-radius: 14px;
  }

  .dsm-auth-lostpassword__title {
    font-size: 28px;
  }

  .dsm-auth-lostpassword__subtitle {
    font-size: 15px;
  }

  .dsm-auth-lostpassword__input {
    height: 52px;
  }

  .dsm-auth-lostpassword__submit {
    height: 52px;
  }
}

/* ==========================================================================
   Responsive - Mobile (480px and below)
   ========================================================================== */
@media (max-width: 480px) {
  .dsm-auth-lostpassword__viewport {
    padding: 32px 16px;
  }

  .dsm-auth-lostpassword__form {
    padding: 32px 24px;
    border-radius: 12px;
  }

  .dsm-auth-lostpassword__header {
    margin-bottom: 24px;
  }

  .dsm-auth-lostpassword__title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .dsm-auth-lostpassword__subtitle {
    font-size: 14px;
  }

  .dsm-auth-lostpassword__field {
    margin-bottom: 20px;
  }

  .dsm-auth-lostpassword__input {
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
  }

  .dsm-auth-lostpassword__input::placeholder {
    font-size: 15px;
  }

  .dsm-auth-lostpassword__submit {
    height: 48px;
    font-size: 15px;
  }

  .dsm-auth-lostpassword__links {
    margin-top: 20px;
    font-size: 14px;
  }
}
