.step-line { width: 60px; height: 2px; background: #e2e8f0; margin: 0 12px; }

.step-line.done { background: #10b981; }

.auth-container {
  max-width: 540px;
  margin: 32px auto;
  flex-shrink: 0;
}

.registration-note {
  background: #f0f9ff;
  border-left: 4px solid #4285f4;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  color: #1e40af;
  margin-bottom: 20px;
}

body.auth-body {
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.auth-form-help {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .auth-form-row {
    grid-template-columns: 1fr;
  }
}

.auth-btn-ghost {
  background: transparent;
  color: #2563eb;
  border: 1.5px solid #2563eb;
}

.auth-btn-ghost:hover {
  background: #eff6ff;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #94a3b8;
  font-size: 14px;
  transition: all 0.3s;
}

.step-item.done .step-circle {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.step-item.done .step-label {
  color: #10b981;
}

.step-line {
  height: 2px;
  flex: 1;
  background: #e2e8f0;
  margin: 0 4px;
  transition: background 0.3s;
}

.step-line.done {
  background: #10b981;
}

/* ── Profile selection cards (Step 0) ── */
.profile-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.profile-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.profile-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.profile-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.profile-card-icon.reseller { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.profile-card-icon.b2b { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.profile-card-icon.marketplace { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }

.profile-card-content { flex: 1; }

.profile-card-title {
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-card-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}

.profile-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.profile-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #64748b;
}

.profile-card.selected .profile-tag {
  background: #dbeafe;
  color: #2563eb;
}

.profile-card-radio {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
}

.profile-card.selected .profile-card-radio {
  border-color: #2563eb;
  background: #2563eb;
}

.profile-card.selected .profile-card-radio::after {
  content: '\2713';
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.reg-step {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.step-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
  text-align: center;
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-row .auth-btn-primary {
  flex: 1;
}

.auth-btn-ghost {
  background: #fff;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  flex-shrink: 0;
  min-width: 120px;
  border-radius: 10px;
}

.auth-btn-ghost:hover {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
}

/* ── Label + tooltip row ── */
.label-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
}
.label-row .auth-form-label {
  margin-bottom: 0;
}

/* ── Why-tooltip (?) ── */
.why-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 5px;
  position: relative;
  vertical-align: middle;
  transition: all .2s;
  line-height: 1;
}
.why-tip:hover {
  background: #2563eb;
  color: #fff;
}
.why-tip .why-bubble {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 8px;
  width: 260px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 100;
  text-align: left;
}
.why-tip .why-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}
.why-tip:hover .why-bubble,
.why-tip:focus .why-bubble {
  display: block;
}

.email-code-digit, .phone-code-digit {
  width: 40px;
  height: 46px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  color: #1e293b;
}
.email-code-digit:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.phone-code-digit:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.email-code-digit.is-valid, .phone-code-digit.is-valid {
  border-color: #059669;
  background: #f0fdf4;
}
.email-code-digit.is-invalid, .phone-code-digit.is-invalid {
  border-color: #dc2626;
  background: #fef2f2;
}

.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.password-strength-bar {
  height: 4px;
  flex: 1;
  background: #f1f5f9;
  border-radius: 2px;
  transition: all 0.3s;
}

.summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  align-items: baseline;
}

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

.summary-label {
  font-weight: 600;
  color: #64748b;
  min-width: 100px;
  flex-shrink: 0;
  font-size: 13px;
}

.summary-value {
  color: #1e293b;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
}

.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.5;
}

.info-box i {
  color: #2563eb;
  font-size: 16px;
  flex-shrink: 0;
}

.auth-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-checkbox-group input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2563eb;
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-checkbox-group label {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  cursor: pointer;
}

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

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

.confirmation-icon {
  text-align: center;
  margin-bottom: 24px;
}

.confirmation-icon .circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 40px;
  margin: 0 auto;
  animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.verification-icon {
  text-align: center;
  margin-bottom: 20px;
  font-size: 48px;
  color: #2563eb;
}

.confirmation-text {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  margin: 12px 0;
  line-height: 1.6;
}

.dossier-number {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 1px;
  margin: 20px 0;
  font-family: 'SF Mono', monospace;
}

.email-confirm-text {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  margin: 16px 0 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  position: relative;
  padding-left: 60px;
}

.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 50px;
  width: 2px;
  height: calc(100% - 30px);
  background: #e2e8f0;
}

.timeline-step.t-done::before {
  background: #10b981;
}

.timeline-step.t-active::before {
  background: #2563eb;
}

.t-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #94a3b8;
  font-size: 18px;
  position: absolute;
  left: 0;
  top: 0;
  transition: all 0.3s;
}

.timeline-step.t-done .t-circle {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.timeline-step.t-active .t-circle {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.t-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.timeline-step.t-done .t-label {
  color: #10b981;
}

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

.timeline-connector {
  height: 0;
}

@media (max-width: 480px) {
  .stepper {
    margin-bottom: 24px;
  }
  .step-label {
    font-size: 11px;
  }
}
@media (max-width: 390px) {
  .step-label { font-size: 10px; }
  .stepper { margin-bottom: 18px; }
}
