/* Apply box-sizing to all elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Make both login and password change sections cover the full screen */
#login-section, #password-change-section {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, #6a11cb, #2575fc);
  color: #fff;
  text-align: center;
  transition: opacity 0.5s ease;
  padding: 20px;
}

/* Common container for form elements to center content properly */
.login-container, .password-change-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Common styling for input fields in both sections */
#login-section input, #password-change-section input {
  width: 80%;
  max-width: 300px;
  margin: 15px 0;
  padding: 15px;
  font-size: 1.2em;
  border-radius: 10px;
  border: none;
  text-align: center;
  background-color: #fff;
  color: #333;
}

/* Common styling for buttons in both sections */
#login-section button, #password-change-section button {
  width: 80%;
  max-width: 300px;
  padding: 15px;
  margin-top: 15px;
  font-size: 1.2em;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background-color: #fff;
  color: #2575fc;
  font-weight: bold;
  transition: background-color 0.3s;
}

#login-section button:hover, #password-change-section button:hover {
  background-color: #eee;
}

/* Common styling for error messages */
#login-error, #password-change-error {
  color: #ff4d4d;
  margin-top: 10px;
  font-size: 1.1em;
  text-shadow: 1px 1px #000;
}

/* Shared header styling */
#login-header {
  margin-bottom: 30px;
}

#login-header h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  text-shadow: 2px 2px #000;
}

#login-header h3 {
  font-size: 1.5em;
  margin-bottom: 40px;
  text-shadow: 1px 1px #000;
}
