/* ============================================
   company-register.css
   Visual Clean/SaaS - Produzia
   Alinhado com a landing page moderna
   ============================================ */

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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #fef9f5 0%, #ffffff 50%, #f0f9ff 100%);
  min-height: 100vh;
  padding: 40px 20px;
  color: #1a1e2b;
}

/* Container principal */
.container {
  max-width: 680px;
  margin: 0 auto;
  background: white;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: 48px 40px;
  border: 1px solid #e5e7eb;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-mark {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

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

/* Progress Bar */
.progress-bar {
  background: #f3f4f6;
  border-radius: 12px;
  height: 6px;
  margin: 24px 0 32px;
  overflow: hidden;
}

.progress {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  width: 0%;
  height: 100%;
  border-radius: 12px;
  transition: width 0.4s ease;
}

/* Steps */
.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 12px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #6b7280;
  transition: all 0.3s;
}

.step.active .step-number {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.step.completed .step-number::after {
  content: "✓";
  font-size: 1rem;
}

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

.step.active .step-label {
  color: #2563eb;
}

/* Formulário */
.form-container {
  margin-top: 8px;
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

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

.form-step h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.form-step > p {
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 28px;
}

/* Grupos de formulário */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-group label.required::after {
  content: "*";
  color: #ef4444;
  margin-left: 4px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  background: white;
  transition: all 0.2s;
  color: #1f2937;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error,
.form-group select.error {
  border-color: #ef4444;
}

/* Error messages */
.error-message {
  color: #ef4444;
  font-size: 0.7rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.error-message::before {
  content: "⚠";
  font-size: 0.65rem;
}

/* Checkbox group */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #2563eb;
}

.checkbox-group label {
  font-size: 0.85rem;
  font-weight: 400;
  color: #4b5563;
  cursor: pointer;
}

.checkbox-group a {
  color: #2563eb;
  text-decoration: none;
}

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

/* Trial box */
.trial-box {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #bae6fd;
}

.trial-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 8px;
}

.trial-box p {
  font-size: 0.8rem;
  color: #0c4a6e;
  margin-bottom: 12px;
}

.trial-box ul {
  list-style: none;
  padding: 0;
}

.trial-box li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #075985;
  margin-bottom: 6px;
}

.trial-box li span {
  color: #10b981;
  font-weight: 700;
}

/* Summary box */
.summary-box {
  background: #f9fafb;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
}

.summary-box .summary-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.summary-box .summary-row:last-child {
  border-bottom: none;
}

.summary-box .summary-label {
  width: 140px;
  font-weight: 600;
  color: #4b5563;
}

.summary-box .summary-value {
  flex: 1;
  color: #111827;
}

/* Botões */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: #2563eb;
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.btn-accent {
  background: #f97316;
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-accent:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.4);
}

.btn:active {
  transform: translateY(0);
}

/* Loading state */
.btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn.loading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.loading span::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Responsivo */
@media (max-width: 640px) {
  body {
    padding: 20px 16px;
  }

  .container {
    padding: 32px 24px;
    border-radius: 32px;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .steps {
    gap: 8px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .step-label {
    font-size: 0.65rem;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
    padding: 12px 20px;
  }

  .summary-box .summary-row {
    flex-direction: column;
    gap: 4px;
  }

  .summary-box .summary-label {
    width: auto;
  }
}

/* Toast/Snackbar opcional */
.toast-message {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: white;
  padding: 12px 24px;
  border-radius: 48px;
  font-size: 0.85rem;
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.toast-message.show {
  transform: translateX(-50%) translateY(0);
}

.toast-message.error {
  background: #ef4444;
}

.toast-message.success {
  background: #10b981;
}