* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: linear-gradient(135deg, #2e2e2e, #1e1e1e);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-wrapper {
  width: 90%;
  max-width: 900px;
  background-color: white;
  border-radius: 20px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.login-card {
  display: flex;
  width: 100%;
}

/* Left Form */
.login-left {
  width: 50%;
  padding: 50px 40px;
  background: #fff;
}

.login-left h1 {
  color: #5a2d82;
  font-size: 30px;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 20px;
}

label {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: 0.2s ease;
}

input:focus {
  border-color: #7a4b94;
}

.actions {
  text-align: right;
  margin-bottom: 20px;
}

.forgot {
  font-size: 13px;
  color: #7a4b94;
  text-decoration: none;
}

.btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #522f95, #5a2d82);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #5a2d82, #7a4b94);
}

.signup {
  font-size: 13px;
  color: #444;
  margin-top: 20px;
}

.signup a {
  color: #7a4b94;
  font-weight: 600;
  text-decoration: none;
}

/* Right Image */
.login-right {
  width: 50%;
  background-color: #522f95;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-right img {
  width: 90%;
  max-height: 80%;
  border-radius: 10px;
  object-fit: cover;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}

.close-btn:hover {
  color: #e2e2e2;
}

/* Responsive */
@media (max-width: 768px) {
  .login-wrapper,
  .login-card {
    flex-direction: column;
  }

  .login-left,
  .login-right {
    width: 100%;
  }

  .login-left {
    padding: 30px 20px;
  }

  .login-right {
    display: none; /* 👈 hide the image section on mobile */
  }

  .login-right img {
    width: 70%;
  }
}

/* Fade out animation for closing */
.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
}
