/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f0 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #333;
}

/* Main container - centered card */
.container {
  width: 100%;
  max-width: 440px;
}

/* Card */
.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 
    0 10px 35px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.card-content {
  padding: 40px 32px;
}

/* Typography */
.fpFormTitle {
  text-align: center;
  color: #198754;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.subtitle {
  text-align: center;
  color: #6c757d;
  font-size: clamp(0.95rem, 3.5vw, 1.05rem);
  line-height: 1.45;
  margin-bottom: 32px;
}

/* Form */
#forgotPasswordForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #495057;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: #198754;
  outline: none;
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.15);
}

.form-control:invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.form-control:invalid:not(:placeholder-shown) ~ .invalid-feedback {
  display: block;
}

/* Button */
#fpButton {
  height: 50px;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#fpButton:hover:not(:disabled) {
  background-color: #157347;
  transform: translateY(-1px);
}

#fpButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Message */
.forgot-message {
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.5;
  padding: 16px;
  border-radius: 10px;
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
  margin-bottom: 24px;
}

/* Back link */
.text-muted {
  transition: color 0.2s;
  /* text-decoration: none; */
}

.text-muted:hover {
  color: #198754 !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .card-content {
    padding: 32px 24px;
  }
  
  .fpFormTitle {
    font-size: 1.8rem;
  }
  
  #fpButton {
    height: 48px;
  }
}