/* Left container styling with responsive background */
.left-container {
  background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
  position: relative;
}

/* Dark mode based on browser settings */
@media (prefers-color-scheme: dark) {
  .left-container {
    background: #1e293b;
  }
  
  .left-container::before {
    background: rgba(0, 0, 0, 0.1);
  }
}

/* Add subtle overlay for better text readability */
.left-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

/* Right container with responsive background */
.right-container {
  background: url('../assets/background.jpeg') no-repeat center center;
  background-size: cover;
  position: relative;
}

/* Fallback for missing background image */
@supports not (background-image: url('../public/background.jpeg')) {
  .right-container {
    background: #1e293b;
  }
}

/* Overlay for better text contrast on background */
.right-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Ensure content appears above overlay */
.right-container > * {
  position: relative;
  z-index: 1;
}

/* Responsive adjustments for mobile */
@media (max-width: 1023px) {
  .right-container {
    display: none; /* Hidden on mobile and tablet */
  }
  
  .left-container {
    width: 100% !important;
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .left-container {
    background: linear-gradient(to right, #ffa500 0%, #ff8c00 50%, rgba(255, 165, 0, 0.8) 100%);
  }
}

/* High resolution display adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .right-container {
    background-size: cover;
    background-attachment: scroll; /* Better performance on mobile */
  }
}

/* Smooth transitions for responsive changes */
.left-container,
.right-container {
  transition: all 0.3s ease-in-out;
}

/* Focus and accessibility improvements */
.left-container input:focus,
.left-container button:focus {
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  .left-container input:focus,
  .left-container button:focus {
    box-shadow: 0 0 0 3px rgba(202, 202, 202, 0.3);
  }
}

/* Animation for loading states */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.loading-pulse {
  animation: pulse 2s infinite;
}