* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f5f5;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.card {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 1100px;
  width: 100%;
}

.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.img {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e8f7f1;
  border-radius: 15px;
  padding: 20px;
}

.img img {
  width: 100%;
  max-width: 400px;
}

.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

form {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-content img {
  height: 100px;
  margin-bottom: 10px;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

/* Error */
.login-error {
  color: #dc3545;
  background-color: #ffe6e6;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 15px;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.login-error.fade-out {
  opacity: 0;
}

/* Input fields */
.input-div {
  display: flex;
  align-items: center;
  margin: 15px 0;
  border-bottom: 2px solid #d9d9d9;
  padding: 10px 0;
}

.i {
  width: 10%;
  text-align: center;
  color: #d9d9d9;
}

.div {
  width: 90%;
  position: relative;
}

.div h5 {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  transition: 0.3s;
  pointer-events: none;
}

.div input {
  width: 100%;
  padding: 10px;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: #333;
}

.input-div .div input:focus ~ h5,
.input-div .div input:not(:placeholder-shown) ~ h5 {
  top: -10px;
  font-size: 12px;
  color: #38d39f;
}

/* Show password */
.show-password {
  margin: 10px 0;
  font-size: 0.9rem;
  display: flex;
  margin-left: 50px;
  color: #4e4e4e;
  
  gap: 5px;
}

/* Links */
a {
  font-size: 0.9rem;
  color: #999;
  text-decoration: none;
  display: block;
  text-align: right;
  margin-top: 10px;
}

a:hover {
  color: #38d39f;
}

/* Button */
.btn {
  margin-top: 20px;
  width: 100%;
  height: 50px;
  border-radius: 25px;
  border: none;
  background-image: linear-gradient(to right, #231ced, #2e3de4, #4251f5);
  color: white;
  font-size: 1.1rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-position 0.5s;
  background-size: 200%;
}

.btn:hover {
  background-position: right;
}

/* Responsive */
@media screen and (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
  .img {
    display: none;
  }
  .login-content {
    padding: 0;
  }
  .card {
    padding: 2rem 1rem;
  }
}
