/* Common background and styling adjustments */
body {
  font-family: 'Montserrat', sans-serif;
  background-image: url('../images/face.jpeg'); /* Ensure correct path to image */
  background-size: cover;
  background-position: center;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #fff;
}

/* Centered container for the form */
.form-container {
  background: rgba(255, 255, 255, 0.9); /* Slight transparency for blending with the background */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

/* Header styles */
header {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  font-size: 2rem;
  color: #333;
}

/* Form elements styling */
label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box; /* Ensures padding doesn’t exceed input width */
}

/* Password container and toggle button */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container input {
  flex: 1;
}

.toggle-password {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  font-size: 1rem;
  position: absolute;
  right: 10px;
  color: #007BFF;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #0056b3;
}

/* Submit button styling */
.submit-button {
  width: 100%;
  padding: 10px;
  background-color: #007BFF;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #0056b3;
}

/* Response message */
.response-message {
  text-align: center;
  font-size: 0.9rem;
}

/* Password requirements list */
#password-requirements {
  margin-top: -15px;
  margin-bottom: 20px;
  color: #333;
}

#password-requirements ul {
  list-style: none;
  padding-left: 0;
}

#password-requirements li {
  color: red; /* Default color for unmet requirements */
  margin-bottom: 5px;
  font-size: 0.9rem;
}

/* Adjusted styles for better legibility on the transparent background */
label, p, input {
  color: #333;
}
