/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #000000, #2c3e50);
  color: #fff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Login Wrapper */
.login-wrapper {
  max-width: 950px;
  width: 90%;
  background-color: #1c1c1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 1s ease forwards;
}

/* Card */
.login-card {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

/* Image Side */
.login-image {
  flex: 1;
  min-width: 300px;
}
.login-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Form Side */
.login-form {
  flex: 1;
  min-width: 300px;
  background-color: #1f1f21;
  padding: 2.5rem;
}

.login-form h2 {
  margin-bottom: 2rem;
  font-weight: 600;
  color: #ffcc00;
  text-align: center;
}

.input-group {
  margin-bottom: 1.5rem;
}
.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.input-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 1rem;
  background-color: #2d2d2f;
  color: #fff;
  transition: 0.3s;
}
.input-group input:focus {
  border: 1px solid #ffcc00;
  background-color: #3a3a3c;
}

/* Button */
.login-button {
  width: 100%;
  padding: 0.9rem;
  border: none;
  background-color: #ffcc00;
  color: #111;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.login-button:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .login-card {
    flex-direction: column;
  }
}
.login-error {
  color: #ff4d4f;
  font-weight: 500;
  text-align: center;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  font-size: 0.95rem;
  visibility: hidden;
}

.login-error.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  animation: shake 0.3s ease;
}

/* Shake animation */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
