/* ========================================
   LOGIN PAGE - PREMIUM REDESIGN
   Color Palette: Light Blue, Light Yellow, Light Pink, Dark Black
   ======================================== */

.login-container {
  display: flex;
  min-height: calc(100vh - 5rem);
  margin-top: 5rem;
}

.login-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10);
  background: linear-gradient(135deg, 
    var(--white) 0%, 
    var(--primary-50) 50%,
    var(--secondary-50) 100%);
}

.login-form-wrapper {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  padding: var(--space-10);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-2xl);
  border: 3px solid transparent;
  border-image: linear-gradient(135deg, 
    var(--primary-400), 
    var(--secondary-400),
    var(--accent-400)) 1;
}

/* Form Wrapper */
.login-form,
.register-form {
  margin-top: 32px;
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: #87CEEB;
  color: var(--primary-700);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-colored-blue);
  border: 2px solid var(--primary-300);
}

.login-title {
  font-family: var(--font-family-heading);
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: var(--space-4);
}

.login-title-highlight {
  background: linear-gradient(135deg, 
    var(--primary-600), 
    var(--secondary-600),
    var(--accent-700));
  -webkit-background-clip: text;
  color: #87CEEB;
  background-clip: text;
}

.login-subtitle {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 0;
  font-weight: 500;
}

.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    var(--primary-100) 0%, 
    var(--accent-100) 50%,
    var(--secondary-100) 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
}

.login-svg-wrapper {
  width: 100%;
  max-width: 600px;
  height: auto;
  position: relative;
  z-index: 1;
}

.login-svg {
  width: 100%;
  height: auto;
  max-height: 600px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Decorative elements for the right side */
.login-right::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, var(--primary-300), transparent);
  opacity: 0.6;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
}

.login-right::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 500px;
  height: 500px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, var(--secondary-300), transparent);
  opacity: 0.6;
  filter: blur(80px);
  animation: float 25s ease-in-out infinite reverse;
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-8);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--dark-900);
  margin-bottom: var(--space-3);
  font-size: 15px;
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--neutral-300);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font-family-base);
  transition: all 0.3s ease;
  background: var(--neutral-50);
  color: var(--dark-900);
  line-height: 1.5;
}

.form-control::placeholder {
  color: var(--neutral-400);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-control:hover {
  border-color: var(--primary-400);
  background: var(--white);
}

/* Error Box Styling */
.error-box {
  background: #87CEEB;
  border: 2px solid #fecaca;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.error-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-list li {
  color: #dc2626;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-list li::before {
  content: '⚠';
  font-size: 16px;
}

/* Form Actions */
.form-actions {
  margin-top: 32px;
}

/* Submit Button */
.login-btn,
button[type="submit"] {
  width: 100%;
  padding: 16px 24px;
  background: #87CEEB;
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  margin-top: 2rem;
  letter-spacing: 0.3px;
}

.login-btn:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.login-btn:active,
button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Remember Me & Forgot Password */
.flex.items-center.justify-between {
  margin-top: 16px;
  margin-bottom: 8px;
}

.flex.items-center.justify-between label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.flex.items-center.justify-between input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid var(--neutral-300);
  accent-color: var(--primary-500);
}

.flex.items-center.justify-between a {
  color: var(--primary-600);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.flex.items-center.justify-between a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* Register/Login Link at Bottom */
.text-center.text-sm {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--neutral-200);
}

.text-center.text-sm a {
  color: var(--primary-600);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.text-center.text-sm a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .login-container {
    flex-direction: column;
  }
  
  .login-left,
  .login-right {
    width: 100%;
    padding: var(--space-8);
  }
  
  .login-right {
    min-height: 400px;
  }
  
  .login-form-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .login-container {
    margin-top: 0;
  }
  
  .login-left {
    padding: var(--space-6);
  }
  
  .login-form-wrapper {
    padding: var(--space-6);
  }
  
  .login-title {
    font-size: var(--text-4xl);
  }
  
  .login-subtitle {
    font-size: var(--text-base);
  }
  
  .login-right {
    min-height: 300px;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.1);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}