body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

.main-container {
  display: flex;
  width: 100%;
  height: 100vh;
}

.image-side {
  flex: 1;
  background: url('../final_image2.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
}

.login-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #001a34 0%, #001a34 25%, #001a34 50%, #001a34 75%, #001a34 100%);
  padding: 40px;
  position: relative;
}

.login-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 98, 255, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(0, 81, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.login-container {
  width: 100%;
  max-width: 500px;
  padding: 60px 40px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
  border: none;
  position: relative;
  z-index: 1;
}

.login-container::before {
  display: none;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.login-logo img {
  width: 400px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.login-logo h1 {
  font-size: 28px;
  margin-top: 20px;
  color: #e2e8f0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 600;
}

.login-form {
  width: 100%;
  position: relative;
  z-index: 2;
}

.inputBox {
  margin-bottom: 20px;
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.3s ease;
  z-index: 10;
  display: none; /* Initially hidden */
}

.password-toggle:hover {
  color: #e2e8f0;
}

.password-toggle.active {
  color: #60a5fa;
}

.inputBox input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  background: rgba(15, 32, 39, 0.7);
  color: #e2e8f0;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Override browser autofill styles */
.inputBox input:-webkit-autofill,
.inputBox input:-webkit-autofill:hover,
.inputBox input:-webkit-autofill:focus,
.inputBox input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px rgba(15, 32, 39, 0.7) inset !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  background-color: rgba(15, 32, 39, 0.7) !important;
  background-clip: content-box !important;
}

/* Firefox autofill override */
.inputBox input:-moz-autofill {
  background-color: rgba(15, 32, 39, 0.7) !important;
  color: #e2e8f0 !important;
}

.inputBox input::placeholder {
  color: rgba(226, 232, 240, 0.5);
}

.inputBox span {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(226, 232, 240, 0.6);
  font-size: 16px;
  transition: all 0.3s ease;
}

.inputBox input:focus ~ span,
.inputBox input:valid ~ span {
  transform: translateY(-140%);
  font-size: 12px;
  color: #60a5fa;
  background: rgba(15, 32, 39, 0.9);
  padding: 0 8px;
  border-radius: 5px;
}

.inputBox input:focus {
  border-color: #60a5fa;
  background: rgba(15, 32, 39, 0.9);
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #fd0b0b 0%, #ff0e0e 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(180, 17, 2, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(190, 31, 3, 0.4);
  background: linear-gradient(135deg, #970704 0%, #770404 100%);
} */

.btn:active {
  transform: translateY(0);
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  max-width: 100%;
  height: auto;
}

/* Password requirements styling */
#password-requirements {
  background: rgba(15, 32, 39, 0.8);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

#password-requirements div {
  margin: 5px 0;
  font-size: 12px;
  color: #e2e8f0;
}

/* Error message styling */
#error-message {
  color: #fca5a5 !important;
  background: rgba(220, 38, 38, 0.1);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(220, 38, 38, 0.3);
  text-align: center;
}

/* Session timeout alert */
.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  background: rgba(245, 158, 11, 0.9);
  color: #92400e;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  
  .image-side {
    height: 40vh;
  }
  
  .login-side {
    height: 60vh;
    padding: 20px;
  }
  
  .login-container {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 25px 15px;
  }
  
  .btn {
    font-size: 14px;
  }
  
  .login-logo h1 {
    font-size: 20px;
  }
}

@media (min-width: 1200px) {
  .login-container {
    max-width: 480px;
    padding: 50px 40px;
  }
}