/* login.css */

/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f0fdf4; /* light green background */
}

/* Container styling */
.login-container {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Heading */
.login-container h2 {
  margin-bottom: 30px;
  color: #16a34a; /* vibrant green */
  font-size: 1.8rem;
  font-weight: 600;
}

/* Input group */
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  margin-bottom: 5px;
  font-weight: 500;
  color: #374151; /* dark gray */
}

.input-group input {
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: 0.3s;
}

.input-group input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 5px rgba(22, 163, 74, 0.4);
}

/* Message div */
.msg {
  color: #dc2626; /* red for error messages */
  margin-bottom: 15px;
  font-size: 0.9rem;
  min-height: 18px;
}

/* Button */
button {
  width: 100%;
  padding: 12px;
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #15803d;
  transform: translateY(-2px);
}

/* Responsive tweaks */
@media (max-width: 450px) {
  .login-container {
    padding: 30px 20px;
  }
}