* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  background-color: #f0f8ff;
  position: relative;
  overflow: hidden;
}

.container {
  display: flex;
  width: 80%;
  height: 80vh; 
  position: relative;
  z-index: 1;
  overflow: hidden; 
  max-height: 800px;
}

.left {
  flex: 0.45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 400px;
  padding: 30px;
  border-radius: 8px;
  background: white;
  border: solid #003f83;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-form input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.login-form button {
  width: 100%;
  background: #007bff;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
  text-transform: uppercase;
}

.login-form button:hover {
  background: #0056b3;
}

.links {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.links a {
  font-size: 14px;
  text-decoration: none;
}

.forgot {
  color: #ff6600;
}

.signup {
  color: #007bff;
}

.right {
  flex: 0.55;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden; 
}

.right img {
  width: 150%; 
  object-fit: contain;
  margin-left: 105px;
  max-width: none; 
  max-height: 100%; 
}

.warning-message {
  color: red;
  font-size: 12px;
  display: none;
}

.error-message {
  color: #ff0000;
  background-color: #ffe6e6;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  text-align: center;
}

@media screen and (max-width: 1200px) {
  .container {
    width: 90%;
    height: 85vh;
  }
  
  .right img {
    width: 140%;
    margin-left: 80px;
  }
}

@media screen and (max-width: 992px) {
  .container {
    width: 95%;
    height: 85vh;
  }
  
  .right img {
    width: 130%;
    margin-left: 60px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    width: 90%;
    height: auto;
    max-height: none;
  }
  
  .left {
    width: 100%;
    padding: 20px;
    order: 2;
  }
  
  .right {
    display: none;
  }
  
  .login-box {
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .container {
    width: 95%;
  }
  
  .left {
    padding: 15px;
  }
  
  .right {
    display: none;
  }
  
  .login-box {
    padding: 15px;
  }
  
  .login-form input, .login-form button {
    padding: 10px;
    font-size: 14px;
  }
  
  .links {
    flex-direction: column;
    align-items: center;
  }
  
  .links a {
    margin: 5px 0;
  }
}