/* ===============================
   login.css
   Styles for Login Page
   =============================== */

/* Reset and Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(120deg, #00a86b, #66c2a4);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #2c3e50;
  padding: 1rem;
}

/* Container */
.login-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 2rem;
  animation: fadeInUp 0.7s ease forwards;
}

/* Form Title */
.login-form h2 {
  text-align: center;
  color: #00a86b;
  margin-bottom: 1.8rem;
  font-weight: 700;
  font-size: 1.8rem;
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
}

.form-group input,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #00a86b;
  box-shadow: 0 0 8px rgba(0, 168, 107, 0.3);
}

/* Button */
.btn-primary {
  width: 100%;
  padding: 0.75rem 0;
  background-color: #00a86b;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #008f5c;
  transform: translateY(-2px);
}

/* Error Message */
.error-msg {
  color: #d93025;
  font-size: 0.9rem;
  margin-top: -0.75rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
}

.hidden {
  display: none;
}

/* Redirect Link */
.redirect-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #555;
}

.redirect-link a {
  color: #00a86b;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.redirect-link a:hover {
  color: #007c47;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 420px) {
  .login-container {
    padding: 2rem 1.5rem;
  }
  
  .login-form h2 {
    font-size: 1.5rem;
  }
}
