/**
 * Lapso Mindbody - Reset Password Styles
 */

/* ==========================================================================
   Container
   ========================================================================== */
.recover-password-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 40px 20px;
  font-family: "Matter", "Montserrat", sans-serif;
}

.recover-password-modal *,
.recover-password-modal *::before,
.recover-password-modal *::after {
  box-sizing: border-box;
  font-family: "Matter", "Montserrat", sans-serif;
}

/* ==========================================================================
   Form Card
   ========================================================================== */
.form-recover-password {
  width: 100%;
  max-width: 420px;
  background-color: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-recover-password h2 {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
}

/* ==========================================================================
   Floating Label Inputs
   ========================================================================== */
.input-container {
  position: relative;
  margin-bottom: 20px;
}

.input-container input {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  color: #1a1a1a;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.input-container input:focus {
  border-color: #992d2d;
  background-color: #fff;
}

.input-container label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #999;
  pointer-events: none;
  transition: all 0.2s ease;
  background-color: transparent;
  padding: 0 4px;
}

/* Label moves up on focus or when filled */
.input-container.focused label,
.input-container.filled label {
  top: 0;
  font-size: 11px;
  color: #992d2d;
  background-color: #fff;
}

/* Error state */
.input-container.error input {
  border-color: #d63638;
}

/* ==========================================================================
   Complete Info Section
   ========================================================================== */
.complete-info-title {
  margin: 28px 0 16px;
  padding-top: 20px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  border-top: 1px solid #e0e0e0;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */
.recover-password-modal
  .form-recover-password
  button[type="submit"].btn-recover-password {
  display: block;
  width: 100%;
  padding: 14px !important;
  margin-top: 8px;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background-color: #992d2d !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: "Matter", "Montserrat", sans-serif !important;
  line-height: normal !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.recover-password-modal
  .form-recover-password
  button[type="submit"].btn-recover-password:hover {
  background-color: #6b2020 !important;
}

/* ==========================================================================
   Token Invalid
   ========================================================================== */
.token-invalid {
  text-align: center;
  max-width: 420px;
  background-color: #fff;
  border-radius: 12px;
  padding: 48px 32px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.token-invalid svg {
  margin-bottom: 20px;
}

.token-invalid h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.token-invalid p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ==========================================================================
   Loader Overlay
   ========================================================================== */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: #992d2d;
  border-radius: 50%;
  animation: lapso-spin 0.8s linear infinite;
}

@keyframes lapso-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 480px) {
  .recover-password-modal {
    padding: 20px 16px;
  }

  .form-recover-password {
    padding: 28px 20px;
  }

  .token-invalid {
    padding: 32px 20px;
  }
}
