.auth-container {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.back-to-home {
  position: absolute;
  top: 30px;
  left: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(26, 26, 31, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  z-index: 10;
}

.back-to-home:hover {
  background: rgba(102, 126, 234, 0.15);
  border-color: #667eea;
  color: #ffffff;
  transform: translateX(-3px);
}

.back-to-home svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.back-to-home:hover svg {
  transform: translateX(-3px);
}

.auth-hero {
  flex: 1;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(129, 140, 248, 0.9) 100%),
              url('/images/hero-login.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
}

.auth-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%);
}

.auth-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 500px;
}

.auth-hero h1 {
  font-size: 48px;
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.auth-hero p {
  font-size: 18px;
  opacity: 0.95;
  line-height: 1.6;
}

.auth-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg-primary);
}

.auth-card {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 48px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-card h2 {
  font-size: 32px;
  margin-bottom: 8px;
  font-weight: 700;
}

.auth-card .subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 16px;
}

.auth-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  animation: slideDown 0.3s ease;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-full {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #818cf8 100%);
  border: none;
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  color: white;
}

.auth-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: #818cf8;
}

.terms-text {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.terms-text a {
  color: var(--accent);
  text-decoration: none;
}

#paypal-button-container {
  margin: 24px 0;
}

.success-card {
  text-align: center;
}

.success-icon {
  font-size: 72px;
  margin-bottom: 24px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-card h2 {
  color: var(--success);
  margin-bottom: 16px;
}

.success-card p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
  padding: 0 16px;
}

@media (max-width: 992px) {
  .auth-container {
    flex-direction: column;
  }
  
  .auth-hero {
    min-height: 40vh;
    padding: 40px 20px;
  }
  
  .auth-hero h1 {
    font-size: 36px;
  }
  
  .auth-hero p {
    font-size: 16px;
  }
  
  .auth-form-section {
    min-height: 60vh;
  }
  
  .back-to-home {
    top: 20px;
    left: 20px;
  }
}

@media (max-width: 576px) {
  .auth-card {
    padding: 32px 24px;
  }
  
  .auth-card h2 {
    font-size: 24px;
  }
  
  .auth-hero h1 {
    font-size: 28px;
  }
  
  .back-to-home {
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .back-to-home svg {
    width: 16px;
    height: 16px;
  }
}
