@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #007bff;
  --primary-hover-color: #0056b3;
  --background-color: #f8f9fa; /* Light background */
  --card-background-color: #ffffff; /* White card background */
  --text-color: #333; /* Dark text */
  --text-light-color: #fff; /* White text */
  --border-color: #dee2e6; /* Light gray border */
  --font-family: "Poppins", sans-serif; /* Assuming Poppins is available */
}

body {
  font-family: var(--font-family); /* Use the defined font family */
  margin: 0;
  background-color: var(
    --background-color
  ); /* Use the background color variable */
  color: var(--text-color); /* Use the text color variable */
  line-height: 1.6;
  display: flex; /* Use flexbox for centering */
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  min-height: 100vh; /* Full viewport height */
}

.login-container {
  background: var(
    --card-background-color
  ); /* Use card background color variable */
  padding: 30px; /* Slightly increased padding */
  border-radius: 8px; /* Consistent border-radius */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Stronger shadow for prominence */
  min-width: 320px;
  max-width: 400px; /* Limit max width */
  width: 90%; /* Make it responsive */
  box-sizing: border-box; /* Include padding in width */
}

h2 {
  text-align: center;
  margin-bottom: 30px; /* Increased margin below heading */
  color: var(--primary-color); /* Use the primary color variable */
  font-weight: 600; /* Match other headings */
}

label {
  display: block;
  margin-bottom: 8px;
  color: #555; /* Keep a slightly lighter color for labels */
  font-weight: 500; /* Consistent font weight for labels */
}

input[type="email"] {
  width: 100%; /* Full width within container */
  padding: 12px; /* Consistent input padding */
  margin-bottom: 20px; /* Increased margin below input */
  border: 1px solid var(--border-color); /* Use border color variable */
  border-radius: 5px; /* Consistent border-radius */
  box-sizing: border-box; /* Include padding in width */
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Add transition */
}

input[type="email"]:focus {
  border-color: var(--primary-color); /* Primary color on focus */
  outline: none; /* Remove default outline */
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); /* Consistent focus shadow */
}

button {
  width: 100%;
  padding: 12px; /* Consistent button padding */
  background: var(--primary-color); /* Use primary color variable */
  color: var(--text-light-color); /* Use light text color variable */
  border: none;
  border-radius: 5px; /* Consistent border-radius */
  font-size: 16px;
  font-weight: 500; /* Consistent font weight */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease; /* Add transform transition */
}

button:hover {
  background: var(--primary-hover-color); /* Use primary hover color variable */
}

button:active {
  transform: translateY(1px); /* Add active state effect */
}

/* Optional: Add some basic responsive adjustments if needed */
@media (max-width: 400px) {
  .login-container {
    padding: 20px; /* Reduce padding on very small screens */
  }
}
