/* ===== GENERAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ===== BACKGROUND ===== */
body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1e2f, #2b2b3c);
  color: #fff;
}

/* ===== LOGIN BOX ===== */
.login-box {
  width: 360px;
  padding: 40px 35px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

/* ===== TITLE ===== */
.login-box h2 {
  font-size: 28px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* ===== INPUT FIELDS ===== */
.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: background 0.3s;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
  background: rgba(255, 255, 255, 0.35);
}

/* ===== BUTTON ===== */
.login-box input[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #4caf50;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.login-box input[type="submit"]:hover {
  background: #45a049;
}

/* ===== ERROR MESSAGE ===== */
.error {
  background: rgba(255, 0, 0, 0.15);
  border-left: 4px solid #ff4d4d;
  color: #ffbaba;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  font-size: 14px;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
