* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Comic Sans MS', sans-serif;
  overflow: hidden; 
}

.container {
  display: flex;
  height: 100vh;
  animation: fadeIn 0.8s ease;
}

.left {
  flex: 1;
  animation: slideInLeft 1s ease forwards;
}

.left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.right {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  animation: bounceIn 1s ease forwards;
}

.logo {
  margin-top: -30px;
  width: 300px;
  margin-bottom: 30px;
  animation: popIn 0.8s ease forwards;
}

form label {
  font-size: 18px;
  color: #4D87DD;
  font-weight: bold;
  margin-top: -10px;
  margin-bottom: 5px;
  display: block;
  font-family: 'Bitter', serif;
}

form input {
  width: 80%;
  padding: 12px;
  margin: 15px 0;
  border: 3px solid #4D87DD;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  text-align: center;
  transition: all 0.3s ease;
}

form input:focus {
  border-color: #2e599e;
  box-shadow: 0 0 8px rgba(77,135,221,0.6);
}

form button {
  margin-top: 10px;
  background-color: #4D87DD;
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  padding: 12px 30px;
  font-family: 'Bitter', serif;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 
    inset 0 1px 0 0 rgba(255,255,255,0.4),
    0 1px 0 0 #3f75c5,
    0 2px 0 0 #3c70bd,
    0 4px 0 0 #3667b3,
    0 5px 0 0 #3463ad,
    0 6px 0 0 #325fa7,
    0 7px 0 0 #2e599e,
    0 7px 8px 0 rgba(0,0,0,0.2);
}

form button:hover {
  transform: translateY(4px);
  box-shadow: 
    inset 0 1px 0 0 rgba(255,255,255,0.4),
    0 1px 0 0 #3f75c5,
    0 1px 0 0 #3c70bd,
    0 2px 0 0 #3667b3,
    0 2px 0 0 #3463ad,
    0 3px 0 0 #325fa7,
    0 4px 0 0 #2e599e,
    0 4px 6px 0 rgba(0,0,0,0.2);
}

.fade-out {
  animation: zoomOut 0.6s ease forwards;
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.8); }
  60% { opacity: 1; transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes zoomOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.8); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*responsive*/

@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .left {
    display: none; 
  }

  .right {
    flex: none;
    width: 100%;
    height: 100vh;
    padding: 20px;
    justify-content: center;
  }

  .logo {
    width: 200px;
  }

  form input {
    width: 90%;
  }

  form button {
    width: 80%;
    max-width: 250px;
    font-size: 16px;
    padding: 10px;
  }
}

@media (max-width: 500px) {
  .logo {
    width: 150px;
  }

  form label {
    font-size: 16px;
  }

  form input {
    font-size: 14px;
    padding: 10px;
  }

  form button {
    font-size: 14px;
    padding: 10px 20px;
  }
}