body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
}

.container {
  display: flex;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.left-side, .right-side {
  position: absolute;
  top: 0;
  height: 100%;
}

.left-side {
  left: 0;
  width: 60%;
  overflow: hidden;
}

#backgroundImage {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.right-side {
  right: 0;
  width: 55%;
  background: linear-gradient(135deg, #324db7, #50a6f9);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.form-container {
  background-color: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  z-index: 1;
}

form h2 {
  color: #324db7;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
  font-size: 1.5rem;
}

.welcome-text {
  color: #666;
  text-align: center;
  margin-bottom: 2rem;
}

.input-group {
  margin-bottom: 1.5rem;
  position: relative;
}

input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus {
  outline: none;
  border-color: #324db7;
}

input:invalid {
  border-color: #d32f2f;
}

button {
  width: 100%;
  padding: 0.75rem;
  background-color: #324db7;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

button:hover {
  background-color: #50a6f9;
}

#togglePassword {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: auto;
}

.eye-icon {
  width: 24px;
  height: 24px;
  color: #666;
}

.error {
  color: #d32f2f;
  margin-top: 1rem;
  text-align: center;
  font-weight: 400;
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  color: #666;
  font-size: 0.9rem;
}

.copyright .heart {
  color: #ff0000;
}

.copyright a {
  color: #324db7;
  text-decoration: none;
}

.copyright a:hover {
  text-decoration: underline;
}

.user-display {
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #324db7;
}

.change-user-button {
  background-color: transparent;
  color: #324db7;
  border: 2px solid #324db7;
  margin-top: 1rem;
}

.change-user-button:hover {
  background-color: #324db7;
  color: white;
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #324db7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

  .left-side, .right-side {
      position: static;
      width: 100%;
  }

  .left-side {
      height: 40vh;
  }

  .right-side {
      height: 60vh;
      clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
  }

  .form-container {
      padding: 2rem;
      max-width: 90%;
  }
}