:root {
  --primary: #2563eb;
  --primary-hover: #1e40af;
  --python-green: #3776AB;
  --python-yellow: #FFD43B;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --card-bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(37, 99, 235, 0.12);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  background: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 700px;
}

.left-panel {
  flex: 1;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.branding {
  margin-bottom: 60px;
}

.branding h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.python-green {
  color: var(--python-yellow);
  font-weight: 800;
}

.tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 400;
}

.features {
  margin: 40px 0;
}

.feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease;
}

.feature:hover {
  transform: translateX(5px);
}

.feature-icon {
  font-size: 2rem;
  margin-right: 15px;
  min-width: 50px;
}

.feature-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.feature-text p {
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.5;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--python-yellow);
  margin-top: auto;
}

.testimonial p {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.author {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 500;
}

.right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.welcome-text {
  text-align: center;
  margin-bottom: 40px;
}

.welcome-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.welcome-text p {
  color: var(--muted);
  font-size: 1.1rem;
}

.input-group {
  margin-bottom: 20px;
  width: 100%;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.login-card input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--python-green) 0%, #2c5282 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: linear-gradient(135deg, #2c5282 0%, var(--python-green) 100%);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.login-btn:hover .arrow {
  transform: translateX(5px);
}

.divider {
  display: flex;
  align-items: center;
  margin: 30px 0;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  padding: 0 15px;
  font-size: 0.9rem;
}

.register-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: white;
  color: var(--python-green);
  border: 2px solid var(--python-green);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.register-btn:hover {
  background: var(--python-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.forgot-link {
  display: block;
  text-align: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  margin-bottom: 30px;
}

.forgot-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.quick-info {
  text-align: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: var(--radius);
  margin-top: 30px;
}

.quick-info p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.quick-info strong {
  color: var(--python-green);
}

.python-feature {
  color: var(--python-green);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.flash {
  padding: 15px;
  border-radius: var(--radius);
  background: #e8f0fe;
  text-align: center;
  border: 2px solid #c7d2fe;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 500;
}

.flash.error {
  background: #fdecea;
  color: #dc2626;
  border-color: #fca5a5;
}

.flash.success {
  background: #d1fae5;
  color: #059669;
  border-color: #34d399;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-container {
      flex-direction: column;
      max-width: 500px;
  }
  
  .left-panel {
      padding: 40px 30px;
  }
  
  .branding h1 {
      font-size: 2.8rem;
  }
  
  .feature {
      padding: 15px;
  }
  
  .right-panel {
      padding: 30px;
  }
}

@media (max-width: 480px) {
  body {
      padding: 10px;
  }
  
  .login-container {
      min-height: auto;
  }
  
  .left-panel {
      padding: 30px 20px;
  }
  
  .branding h1 {
      font-size: 2.2rem;
  }
  
  .feature {
      flex-direction: column;
      text-align: center;
  }
  
  .feature-icon {
      margin-right: 0;
      margin-bottom: 10px;
  }
  
  .right-panel {
      padding: 25px 20px;
  }
  
  .welcome-text h1 {
      font-size: 2rem;
  }
}