/* --- Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Login Container --- */
.login-container {
  max-width: 380px;
  height: 400px;
  margin: 40px auto 80px;
  padding: 30px 25px;
  background-color: #c0cff0;
  box-shadow: 0 8px 25px rgb(0 0 0 / 0.1);
  border-radius: 10px;
  font-family: 'Segoe UI', sans-serif;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: slideFadeIn 1.0s ease-in-out;
}

/* Animation for entry */
@keyframes slideFadeIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

/* Dark Mode Login Container */
body.dark-mode .login-container {
  background-color: #333;
  color: #eee;
  box-shadow: 0 8px 25px rgb(255 255 255 / 0.1);
}

/* Heading */
.login-container h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  color: inherit;
}

/* Form Styles */
.login-container form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Labels */
.login-container label {
  font-weight: 500;
  font-size: 14px;
  color: inherit;
}

/* Inputs and Selects */
.login-container input[type="text"],
.login-container select {
  padding: 10px 12px;
  font-size: 17px;
  border: 2px solid #ccc;
  border-radius: 6px;
  outline-offset: 2px;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
  color: #222;
  background-color: #fff;
}

/* Input & Select focus */
.login-container input[type="text"]:focus,
.login-container select:focus {
  border-color: #e63946;
  background-color: #fff;
  color: #222;
}

/* Dark Mode input/select */
body.dark-mode .login-container input[type="text"],
body.dark-mode .login-container select {
  background-color: #7a7979;
  color: #eee;
  border-color: #777;
}

body.dark-mode .login-container input[type="text"]:focus,
body.dark-mode .login-container select:focus {
  border-color: #e63946;
  background-color: #666;
  color: #fff;
}

/* Button */
.login-container button[type="submit"] {
  margin-top: 12px;
  padding: 12px;
  font-size: 17px;
  font-weight: 700;
  background-color: #e63946;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 3px 8px rgb(230 57 70 / 0.6);
}

.login-container button[type="submit"]:hover {
  background-color: #d62828;
  box-shadow: 0 4px 12px rgb(214 40 40 / 0.8);
}

/* Responsive tweaks */
@media (max-width: 420px) {
  .login-container {
    margin: 30px 15px 60px;
    max-width: 100%;
    height: auto;
    padding: 25px 15px;
  }
}
