* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 100vh;
  overflow: hidden; /* Prevents both vertical and horizontal scrolling on the body */
}

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

/* Left Side - Login Form */
.login-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px); /* overflow-y removed to prevent scrolling */
  overflow-y: auto; /* This will be handled by media queries for smaller screens */
}

.login-form-wrapper {
  width: 100%;
  max-width: 400px;
  margin: auto;
}

.brand-logo {
  text-align: center;
  margin-bottom: 20px;
}

.brand-logo h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  letter-spacing: -1px;
}

.login-header {
  text-align: center;
  margin-bottom: 20px;
}

.login-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.login-header p {
  color: #666;
  font-size: 0.9rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  position: relative;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  color: #999;
  font-size: 1rem;
  z-index: 1;
}

.login-form input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  transition: all 0.3s ease;
  outline: none;
}

.login-form input:focus {
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.login-form input::placeholder {
  color: #999;
}

.toggle-password {
  position: absolute;
  right: 15px;
  color: #999;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #4285f4;
}

.input-wrapper.focused .input-icon {
  color: #4285f4;
}

.forgot-password {
  text-align: right;
  margin-top: -10px;
  margin-bottom: 10px;
}

.forgot-link {
  color: #4285f4;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #3367d6;
  text-decoration: underline;
}

.form-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: #4285f4;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #3367d6;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

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

.signup-btn {
  width: 100%;
  padding: 15px;
  background: transparent;
  color: #4285f4;
  border: 2px solid #4285f4;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signup-btn:hover {
  background: #4285f4;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

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

.divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.divider-text {
  background: rgba(255, 255, 255, 0.95);
  padding: 0 20px;
  color: #666;
  font-size: 0.9rem;
  position: relative;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-btn {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.google-btn {
  color: #333;
}

.google-btn:hover {
  border-color: #4285f4;
  background: rgba(66, 133, 244, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-btn i {
  color: #4285f4;
  font-size: 1.2rem;
}

/* Right Side - Image Section */
.image-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #333 0%, #111 100%);
  position: relative;
  overflow: hidden;
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sneaker-container {
  position: relative;
  z-index: 2;
  transform: rotate(-15deg);
  transition: transform 0.3s ease;
}

.sneaker-container:hover {
  transform: rotate(-10deg) scale(1.05);
}

.sneaker-image {
  width: 400px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  border-radius: 20px;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.dot-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.dot-2 {
  top: 60%;
  right: 20%;
  animation-delay: 2s;
  width: 15px;
  height: 15px;
}

.dot-3 {
  bottom: 30%;
  left: 25%;
  animation-delay: 4s;
  width: 25px;
  height: 25px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }
  
  .login-form-section {
    order: 2;
    flex: 1 1 auto; /* Allow form section to grow and shrink */
    overflow-y: auto; /* Allow scrolling ONLY on mobile if content overflows */
    padding: 30px 20px;
  }
  
  .login-form-wrapper {
    margin: 20px auto; /* Add some vertical margin for better spacing */
  }

  .image-section {
    order: 1;
    min-height: 300px;
    flex: none;
  }
  
  .sneaker-image {
    width: 250px;
  }
  
  .brand-logo h1 {
    font-size: 2rem;
  }
  
  .login-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .login-form-wrapper {
    max-width: 100%;
  }
  
  .login-form {
    gap: 12px; /* Reduce gap for smaller screens */
  }

  .brand-logo {
    margin-bottom: 30px;
  }
  
  .form-buttons, .social-login { gap: 12px; }

  .login-header {
    margin-bottom: 30px;
  }
  
  .sneaker-image {
    width: 200px;
  }
  
  .floating-dot {
    display: none;
  }
}

/* Loading and Animation States */
.login-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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