* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1404px;
  background-color: #fff;
  position: relative;
}

.left-side,
.right-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: #f8f8f8;
  position: relative;
}
.left-image {
  width: 100%;
  max-height: 468px;
  object-fit: contain;
  position: absolute;
  top: clamp(-40px, -3vw, -20px);
  left: clamp(100px, 15vw, 220px);
  z-index: 0;
}

.right-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  position: absolute;
  top: clamp(60px, 4vw, 92px);
  right: clamp(100px, 17vw, 249px);
  z-index: 0;
}

.login-form {
  flex: 1;
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  z-index: 1;
  position: relative;
  border: 1px solid #e1c8c8;
}

.logo-container {
  margin-bottom: 30px;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.logo {
  max-width: 70px;
  height: auto;
}

.login-header {
  margin-bottom: 40px;
}

.login-header h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 600;
}

.login-header p {
  color: #666;
  margin-top: 25px;
  margin-bottom: -5px;
  font-size: 17px;
}

.form-group {
  margin-bottom: 35px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: bold;
  font-size: 14px;
}
.message {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  margin-top: 10px;
  font-size: 14px;
  border-radius: 3px;
  font-weight: 500;
  border: 1.5px solid;
  justify-content: center;
}

.success-message {
  color: #ffffff;
  border-color: #617f69;
  background: #2f978f;
}

.success-message .icon {
  font-size: 18px;
  color: #ffffff;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #299eaf;
  outline: none;
}

.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: flex;
  align-items: center;
}

.error-message::before {
  content: "!";
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #e74c3c;
  background-color: #fff;
  color: #e74c3c;
  font-size: 12px;
  font-weight: bold;
  margin-right: 6px;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #299eaf;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  margin-top: 15px;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #238a9a;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .login-container {
    margin: 0px 29px;
  }

  .left-side,
  .right-side {
    display: none;
  }

  .login-form {
    padding: 40px 20px;
    box-shadow: none;
  }

  .login-header h2 {
    font-size: 15px;
  }

  .form-group input {
    font-size: 13px;
  }
}
