@import url('styles.css');

.login-body {
  background: linear-gradient(to right, #0A2647, #2C74B3);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-card {
  background-color: white;
  width: 100%;
  max-width: 400px;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.6s ease;
}
.login-header h2 {
  margin: 0;
  font-weight: 600;
  color: #0A2647;
  text-align: center;
}
.login-header p {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}
.login-form label {
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #333;
  display: block;
}
.login-form input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s;
}
.login-form input:focus {
  border-color: #2C74B3;
  outline: none;
}
.login-form button {
  width: 100%;
  padding: 0.75rem;
  background-color: #2C74B3;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.login-form button:hover {
  background-color: #205295;
}
.error-message {
  color: red;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1rem;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loader-overlay.active {
  display: flex;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #0A2647;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}