/* Registro - layout horizontal, sin scroll */
.auth-box.auth-box--register {
  max-width: 660px;
  padding: 1.25rem 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.register-card {
  background: transparent;
  padding: 0;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.register-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.register-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
}

/* Stepper */
.register-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

.step-item.active .step-num {
  background: #7c3aed;
  color: white;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

.step-item.done .step-num {
  background: #e9d5ff;
  color: #7c3aed;
}

.step-item:not(.active):not(.done) .step-num {
  background: #f1f5f9;
  color: #94a3b8;
}

.step-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.step-item.active .step-label { color: #7c3aed; }
.step-item.done .step-label { color: #7c3aed; }
.step-item:not(.active):not(.done) .step-label { color: #94a3b8; }

.step-arrow {
  color: #cbd5e1;
  font-size: 0.8rem;
  margin: 0 0.25rem;
}

/* Step content */
.step-content {
  display: none;
  min-height: 0;
}

.step-content.active {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
  flex: 1;
  min-height: 0;
}

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

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.15rem;
}

.step-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

/* Fila horizontal: Perú/Ext + DNI/RUC o Cédula/Tarjeta */
.doc-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.doc-type-group {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 140px;
}

.doc-type-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
}

.doc-type-btn:hover {
  border-color: #c4b5fd;
  color: #7c3aed;
}

.doc-type-btn.active {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #7c3aed;
}

.doc-options {
  display: none;
  gap: 0.4rem;
  flex: 1;
  min-width: 180px;
}

.doc-options.active {
  display: flex;
  flex-wrap: wrap;
}

.doc-option {
  padding: 0.4rem 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 0.8rem;
  color: #64748b;
  transition: all 0.2s;
}

.doc-option:hover { border-color: #c4b5fd; color: #7c3aed; }
.doc-option.active { border-color: #7c3aed; background: #f5f3ff; color: #7c3aed; }

/* Form - compacto */
.register-form .form-group {
  margin-bottom: 0.75rem;
}

.register-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 0.35rem;
}

.register-form input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.register-form input:focus {
  outline: none;
  border-color: #7c3aed;
}

.register-form input::placeholder {
  color: #94a3b8;
}

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

/* Fila horizontal para documento + nombres */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0.75rem;
}

/* Phone input with country */
.phone-input-wrap {
  display: flex;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.phone-input-wrap:focus-within {
  border-color: #7c3aed;
}

.phone-country {
  padding: 0 0.75rem;
  border-right: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  min-width: 120px;
}

.phone-country select {
  border: none;
  background: none;
  font-size: 0.95rem;
  color: #1e293b;
  cursor: pointer;
}

.phone-number {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.phone-number:focus { outline: none; }

/* Doc search (lupa) - solo visible cuando Perú */
.doc-search-wrap {
  position: relative;
  display: flex;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.doc-search-wrap:focus-within {
  border-color: #7c3aed;
}

.doc-search-wrap input {
  flex: 1;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
}

.doc-search-wrap input:focus {
  box-shadow: none;
}

.doc-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: none;
  border-left: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  font-size: 1rem;
  color: #64748b;
  transition: background 0.2s, color 0.2s;
}

.doc-search-wrap.doc-search-wrap--pe .doc-search-btn {
  display: flex;
}

.doc-search-btn:hover {
  background: #f1f5f9;
  color: #7c3aed;
}

.doc-search-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Password toggle */
.pwd-wrap {
  position: relative;
}

.pwd-wrap input { padding-right: 2.75rem; }

.pwd-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #64748b;
  font-size: 1.1rem;
}

.pwd-toggle:hover { color: #7c3aed; }

/* Nav buttons */
.step-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.btn-prev {
  padding: 0.75rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-prev:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-prev:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-next {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 10px;
  background: #22c55e;
  color: white;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.btn-next:hover { background: #16a34a; }
.btn-next:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-submit {
  width: 100%;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 10px;
  background: #22c55e;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.25rem;
}

.btn-submit:hover { background: #16a34a; }

.auth-footer-link {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
}

.auth-footer-link a {
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
}

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