/* styles.css */

/* Base styling */
* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  background: linear-gradient(to right, #2c3e50, #4ca1af);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Login Box */
.login-box {
  background: #ffffff10;
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 40px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.login-box h2 {
  margin-bottom: 25px;
  font-weight: 600;
  font-size: 26px;
  color: #fff;
}

/* Error Message */
.error {
  background-color: #ff4d4d;
  color: #fff;
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-weight: 500;
  animation: fadeIn 0.5s ease-in-out;
}

/* Form Elements */
form input[type="text"],
form input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0 20px;
  border: none;
  border-radius: 8px;
  background: #f0f0f0;
  font-size: 16px;
  color: #333;
  outline: none;
  transition: 0.3s ease;
}

form input[type="text"]:focus,
form input[type="password"]:focus {
  background: #e0e0e0;
  box-shadow: 0 0 0 2px #4ca1af80;
}

/* Submit Button */
form button {
  width: 100%;
  padding: 12px;
  background: #3498db;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #2980b9;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .login-box {
    padding: 30px 20px;
  }

  form input,
  form button {
    font-size: 14px;
  }
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group input[type="password"],
.input-group input[type="text"] {
  width: 100%;
  padding: 12px 40px 12px 15px; /* leave space on right for icon */
  border: none;
  border-radius: 8px;
  background: #f0f0f0;
  font-size: 16px;
  color: #333;
  outline: none;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
  font-size: 18px;
}



