:root {
  --primary: #2563eb;
  --primary-hover: #1e40af;
  --python-green: #3776AB;
  --python-yellow: #FFD43B;
  --success-green: #10b981;
  --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;
}

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

.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: 40px;
}

.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;
}

.benefits {
  margin: 40px 0;
}

.benefit {
  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;
}

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

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

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

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

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

.pricing-hint h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.pricing-hint p {
  margin-bottom: 10px;
  font-weight: 500;
}

.pricing-hint ul {
  list-style: none;
  padding-left: 0;
}

.pricing-hint li {
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
  opacity: 0.9;
}

.pricing-hint li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--python-yellow);
  font-weight: bold;
}

.right-panel {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
}

.register-card {
  width: 100%;
  max-width: 800px;
}

.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;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .form-row {
      flex-direction: column;
      gap: 20px;
  }
}

.input-group {
  flex: 1;
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.register-card input[type="text"],
.register-card input[type="password"],
.register-card input[type="email"] {
  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;
}

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

.input-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

.package-section {
  margin: 40px 0;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.package-icon {
  font-size: 1.8rem;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 25px;
  font-size: 1rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .packages-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .packages-grid {
      grid-template-columns: 1fr;
  }
}

.package-option {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.package-option:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.package-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.package-option input[type="radio"]:checked + .package-content {
  border-color: var(--python-green);
  background: rgba(55, 118, 171, 0.05);
}

.package-recommended {
  border: 2px solid var(--python-green);
  position: relative;
}

.package-recommended:before {
  content: "Best Value";
  position: absolute;
  top: 0;
  right: 0;
  background: var(--python-green);
  color: white;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0 0 0 var(--radius);
  z-index: 2;
}

.package-content {
  padding: 25px;
  border-radius: calc(var(--radius) - 2px);
  transition: all 0.3s ease;
}

.package-header {
  margin-bottom: 20px;
}

.package-badge {
  display: inline-block;
  background: #e8f0fe;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.package-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.package-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--python-green);
  margin: 10px 0;
}

.package-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.package-features {
  margin: 20px 0;
}

.feature {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.check-icon {
  color: var(--success-green);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.1rem;
}

.package-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-style: italic;
}

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

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

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

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

.terms-agreement {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 20px 0;
}

.terms-agreement a {
  color: var(--python-green);
  text-decoration: none;
  font-weight: 500;
}

.terms-agreement a:hover {
  text-decoration: underline;
}

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

.login-redirect p {
  color: var(--text);
}

.login-redirect a {
  color: var(--python-green);
  text-decoration: none;
  font-weight: 600;
}

.login-redirect a:hover {
  text-decoration: underline;
}

.flash {
  padding: 15px 20px;
  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) {
  .register-container {
      flex-direction: column;
      max-width: 800px;
      min-height: auto;
  }
  
  .left-panel {
      padding: 40px 30px;
  }
  
  .branding h1 {
      font-size: 2.8rem;
  }
  
  .right-panel {
      padding: 30px;
  }
}

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