/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body, html {
  height: 100%;
}

/* Background with a petrol green gradient */
.background {
  height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #00423e, #006a66);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Login card container */
.login-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 600px;
  text-align: center;
}

/* Logo image */
.logo {
  max-width: 200px;   /* Increased from 140px */
  height: auto;
  margin: 0 auto 2rem auto;  /* More spacing below */
  display: block;
}

/* Title */
.login-card h2 {
  color: #00423e;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

/* Form inputs */
.login-card input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: border 0.3s;
}

.login-card input:focus {
  border-color: #006a66;
  outline: none;
}

/* Submit button */
.login-card button {
  width: 100%;
  background-color: #006a66;
  color: white;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-card button:hover {
  background-color: #004f4c;
}

/* Links for registration and password recovery */
.extra-links {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #444;
}

.extra-links a {
  color: #006a66;
  text-decoration: none;
  margin: 0 0.4rem;
  transition: color 0.3s ease;
}

.extra-links a:hover {
  color: #004f4c;
}

.extra-links span {
  color: #aaa;
}

/* Footer */
.footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #888;
}

/* Responsive tweaks (optional) */
@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.5rem;
  }

  .login-card h2 {
    font-size: 1.5rem;
  }
}

/* For the registration of new users */
/* Style for file input label */
.file-label {
  display: block;
  text-align: left;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #00423e;
  font-weight: 600;
}

/* Hide the actual file input but keep it accessible */
/* Error message styling for email validation */
.error-message {
  color: #d9534f;
  font-size: 0.85rem;
  margin-top: -0.8rem;
  margin-bottom: 1rem;
  display: none;
  text-align: left;
}

/* Style for file input label */
.file-label {
  display: block;
  text-align: left;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #00423e;
  font-weight: 600;
}

/* File input styling */
input[type="file"] {
  width: 100%;
  padding: 0.5rem 0;
  border: none;
  border-radius: 10px;
  background-color: #f7f7f7;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  transition: background-color 0.3s ease;
}

input[type="file"]:hover {
  background-color: #e0f0ef;
}

/* Placeholder color for inputs */
.login-card input::placeholder {
  color: #999;
}

/* Style for dropdown (select) */
select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  background-color: #fff;
  color: #333;
  transition: border 0.3s;
}

select:focus {
  border-color: #006a66;
  outline: none;
}