/*
 * The registration page (register.php).
 * Linked from the <head> by the page ($boPageStylesheets).
 */
/* Register Page Styles */
.register-page {
  min-height: calc(100vh - 200px);
  background: linear-gradient(135deg, #f8faf8 0%, #f0f4f1 100%);
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.register-container {
  max-width: 1100px;
  margin: 0 auto;
}

.register-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* Form Card */
.form-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
}

.form-header h1 {
  font-size: 1.75rem;
  color: white !important;
  margin: 0 0 var(--space-xs);
}

.form-header p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 1rem;
}

.form-body {
  padding: var(--space-2xl);
}

/* Form Styles */
.reg-form .form-group {
  margin-bottom: var(--space-lg);
}

.reg-form .form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.reg-form .form-label .required {
  color: #dc3545;
  margin-left: 0.25rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .input-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.125rem;
  pointer-events: none;
}

.input-with-icon .form-input {
  padding-left: calc(var(--space-md) + 1.75rem);
}

.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  color: var(--text-primary);
  background: white;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.form-checkbox label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-checkbox a {
  color: var(--primary);
  text-decoration: none;
}

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

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-footer {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

.form-footer p {
  color: var(--text-muted);
  margin: 0;
}

.form-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

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

/* Alert */
.reg-alert {
  background: #fef3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Benefits Sidebar */
.benefits-sidebar {
  position: sticky;
  top: 100px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.benefits-sidebar-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.benefits-sidebar-content {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: var(--space-2xl);
  color: white;
}

/* Free Badge */
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: #10b981;
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-md);
}

.benefits-header {
  margin-bottom: var(--space-xl);
}

.benefits-header h2 {
  font-size: 1.75rem;
  color: white;
  margin: 0 0 var(--space-sm);
}

.benefits-header p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.benefits-header .price-highlight {
  color: white;
  font-weight: 700;
}

/* Benefit Items */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.benefit-item {
  display: flex;
  gap: var(--space-md);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.benefit-content h3 {
  font-size: 1.0625rem;
  color: white;
  margin: 0 0 0.25rem;
}

.benefit-content p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  line-height: 1.5;
}

/* Trust Card */
.trust-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.trust-card-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.trust-icon {
  width: 56px;
  height: 56px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.trust-content h4 {
  font-size: 1.125rem;
  color: white;
  margin: 0 0 0.25rem;
}

.trust-content p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* Testimonial */
.testimonial {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
}

.testimonial-text {
  font-size: 0.9375rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin: 0 0 var(--space-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.author-info h5 {
  font-size: 0.9375rem;
  color: white;
  margin: 0;
}

.author-info p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .register-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .benefits-sidebar {
    position: static;
  }

  .form-card {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .register-page {
    padding: var(--space-xl) 0 var(--space-2xl);
  }

  .form-body {
    padding: var(--space-xl);
  }

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

  .trust-card-inner {
    flex-direction: column;
    text-align: center;
  }
}
