.auth-container {
  background: white;
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 30% 70%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.auth-card {
  background: white;
  padding: 4rem;
  justify-content: center;
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.auth-sidebar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.auth-sidebar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1);
  animation: fadeInScale 0.5s ease-out forwards;
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.auth-header {
  text-align: center;
}

.auth-header h1 {
  font-size: 2.5rem;
  color: #111827;
  margin-bottom: 1rem;
  font-weight: 700;
}

.auth-header p {
  color: #6b7280;
  font-size: 1.1rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-fill {
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.4s ease;
}

.steps-indicator {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.step-indicator.active {
  opacity: 1;
}

.step-indicator.completed {
  opacity: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #6b7280;
  transition: all 0.3s;
}

.step-indicator.active .step-number {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.step-indicator.completed .step-number {
  background: #10b981;
  color: white;
}

.step-indicator.completed .step-number {
  font-size: 1.3rem;
}

.step-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
}

.step-indicator.active .step-label {
  color: #667eea;
}

.form-step {
  display: none;
  animation-duration: 0.3s;
  animation-fill-mode: both;
}

.form-step.active {
  display: block;
}

.slide-in-right {
  animation-name: slideInRight;
}

.slide-out-left {
  animation-name: slideOutLeft;
}

.slide-in-left {
  animation-name: slideInLeft;
}

.slide-out-right {
  animation-name: slideOutRight;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.step-buttons {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}

.btn-secondary-full {
  display: block;
  width: 100%;
  background: white;
  color: #667eea;
  padding: 1.2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid #667eea;
  cursor: pointer;
}

.btn-secondary-full:hover {
  background: #f3f4f6;
}

.btn-primary-full:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary-full:disabled:hover {
  transform: none;
}

.btn-primary-full.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  cursor: pointer;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert-error {
  background-color: #fee;
  border: 1px solid #fcc;
  color: #c00;
}

.alert-success {
  background-color: #efe;
  border: 1px solid #cfc;
  color: #0a0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.form-group input.is-invalid:focus,
.form-group select.is-invalid:focus,
.form-group textarea.is-invalid:focus {
  border-color: #dc2626;
  outline: none;
}

.form-group .error-message {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: block;
}

.form-group small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-checkbox {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.1rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
}

.form-checkbox a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.form-checkbox a:hover {
  text-decoration: underline;
}

.btn-primary-full {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 1.2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

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

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.auth-footer p {
  color: #6b7280;
}

.auth-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.form-section {
  border: 2px solid #e4e8ff;
  border-radius: 8px;
  padding: 1rem 2rem 0 2rem;
  margin-bottom: 1rem;
}

.form-section-first {
  border: 2px solid #e4e8ff;
  border-radius: 8px;
  padding: 2rem 2rem 2rem 2rem;
  margin-bottom: 2rem;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  font-size: 1.2rem;
  color: #111827;
  font-weight: 600;
}

.payment-info {
  font-size: 0.9rem;
  color: grey;
  margin-bottom: 1rem;
  font-weight: 500;
}

.stripe-element {
  padding: 0.9rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  transition: border-color 0.3s;
}

.stripe-element:focus-within {
  border-color: #667eea;
}

.card-errors {
  color: #ef4444;
  font-size: 0.85rem;
}

.card-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pricing-summary {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 2px solid #e4e8ff;
}

.pricing-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem 0.75rem 0;
  font-size: 1.1rem;
  color: #111827;
  font-weight: 600;
}

.pricing-detail .price {
  color: #667eea;
}

.pricing-note {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.5rem;
  text-align: center;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.trial-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  margin-top: 2rem;
}

.trial-badge h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.trial-badge p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
}

.pricing-info {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.pricing-info h3 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  color: #111827;
}

.pricing-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: #4b5563;
}

.pricing-detail .price {
  font-weight: 700;
  color: #667eea;
}

.trial-info {
  margin-top: 1rem;
  padding-top: 1rem;
}

.trial-info p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #4b5563;
}

.trial-info p strong {
  color: #10b981;
  font-size: 1.05rem;
}

@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 40% 60%;
  }
  
  .auth-card {
    padding: 1rem 2rem;
  }
  
  .steps-indicator {
    gap: 1rem;
  }
  
  .step-label {
    font-size: 0.8rem;
  }
}

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

  .auth-card {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  .auth-header h1 {
    font-size: 2rem;
  }
  
  .auth-header p {
    font-size: 1rem;
  }

  .auth-header img {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .card-details-row {
    grid-template-columns: 1fr;
  }

  .auth-sidebar {
    display: none;
  }

  .auth-sidebar h2 {
    font-size: 3rem;
  }
  
  .form-section {
    padding: 1rem 1rem 0 1rem;
  }
  
  .form-section-first {
    padding: 1.5rem;
  }
  
  .step-buttons {
    grid-template-columns: 1fr;
  }
  
  .steps-indicator {
    gap: 0.5rem;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem 1rem;
  }
  
  .auth-header h1 {
    font-size: 1.75rem;
  }
  
  .btn-primary-full,
  .btn-secondary-full {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .pricing-summary {
    padding: 1rem;
  }
  
  .pricing-detail {
    font-size: 1rem;
  }
  
  .trial-badge h3 {
    font-size: 1.3rem;
  }
  
  .step-label {
    display: none;
  }
}

/* Styles pour section adresse de facturation */
.checkbox-wrapper {
  margin-bottom: 15px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}

.checkbox-input {
  margin-right: 8px;
}

.facturation-section {
  display: none !important;
}

.facturation-section.visible {
  display: block !important;
}

.facturation-details {
  padding: 15px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.form-section-subtitle {
  margin-top: 25px;
  margin-bottom: 15px;
  padding-top: 15px;
  border-top: 2px solid #e5e7eb;
}

.form-section-subtitle h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
  padding: 0;
}