body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #667eea, #764ba2);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #333;
}

.login-container {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 360px;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.login-container h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #764ba2;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #764ba2;
}

.input-group input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.input-group input:focus {
  border-color: #764ba2;
  outline: none;
}

.btn {
  background: #764ba2;
  color: #fff;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

.btn:hover {
  background: #5b3580;
  transform: translateY(-2px);
}

.login-container .error {
  background: #ff6b6b;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.login-container p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.login-container a {
  color: #764ba2;
  text-decoration: none;
}

.login-container a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
