
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background-color: #f5f8f5; /* soft light green background */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Card Container --- */
.container {
  background-color: #ffffff;
  padding: 40px 36px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(24, 94, 50, 0.1);
  width: 100%;
  max-width: 420px;
  transition: all 0.3s ease;
}

.container:hover {
  box-shadow: 0 8px 28px rgba(24, 94, 50, 0.12);
}

/* --- Header / Logo --- */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.logo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #eaf7ea;
  padding: 8px;
  box-shadow: 0 0 8px rgba(38, 166, 91, 0.15);
}

.forgot-password-form h2 {
  text-align: center;
  font-weight: 700;
  font-size: 1.8em;
  color: #2f7b4c; /* dark green text */
  margin-bottom: 24px;
}

/* --- Input Fields --- */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95em;
  color: #2e4732;
  font-weight: 500;
}

input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #c5d6c7;
  border-radius: 8px;
  font-size: 1em;
  background: #f9fbf9;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

input[type="email"]:focus {
  border-color: #46b97b;
  outline: none;
  background-color: #f6fff6;
  box-shadow: 0 0 0 3px rgba(70, 185, 123, 0.15);
}

/* --- Button --- */
button {
  background-color: #46b97b;
  color: #ffffff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-size: 1.05em;
  font-weight: 600;
  margin-top: 10px;
  transition: all 0.25s ease;
}

button:hover {
  background-color: #3da56d;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(70, 185, 123, 0.25);
}

/* --- Messages --- */
.error-message,
.success-message {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.95em;
}

.error-message {
  background-color: #fdeaea;
  border: 1px solid #f5c6cb;
  color: #a93434;
}

.success-message {
  background-color: #e7f8ec;
  border: 1px solid #c3e6cb;
  color: #237a45;
}

/* --- Footer Link --- */
p {
  text-align: center;
  font-size: 0.95em;
  color: #3f5243;
  margin-top: 18px;
}

.login-link {
  color: #2f8e56;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.login-link:hover {
  color: #1f6a3d;
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .container {
    padding: 28px 20px;
    border-radius: 14px;
    width: 90%;
  }

  .forgot-password-form h2 {
    font-size: 1.5em;
  }

  input[type="email"] {
    padding: 10px;
  }

  button {
    font-size: 1em;
    padding: 10px;
  }
}
