/* =====================================================
   USER-FORM — Nouveau design
   ===================================================== */

/* ── Layout ─────────────────────────────────────────── */
.uf-layout {
  display: flex;
  min-height: 100vh;
}

/* ── LEFT PANEL ─────────────────────────────────────── */
.uf-left {
  width: 42%;
  background: linear-gradient(150deg, #0b1120 0%, #111827 55%, #0d2240 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.uf-left-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 380px;
}

.uf-logo {
  width: 170px;
  height: auto;
  display: block;
  margin-bottom: 30px;
 /* filter: brightness(0) invert(1);*/
}

.uf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.uf-badge i { font-size: 12px; }

.uf-left-inner h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
}

.uf-left-inner > p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 32px;
}

.uf-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 0;
  margin: 0;
}

.uf-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.8);
}

.uf-features li i {
  color: #4ade80;
  font-size: 16px;
  flex-shrink: 0;
}

/* Decorative circles */
.uf-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.uf-deco-1 {
  width: 480px; height: 480px;
  top: -180px; left: -160px;
  border: 1px solid rgba(255,255,255,0.05);
}
.uf-deco-2 {
  width: 320px; height: 320px;
  bottom: -90px; right: -100px;
  border: 1px solid rgba(255,255,255,0.04);
}
.uf-deco-3 {
  width: 160px; height: 160px;
  bottom: 80px; left: 30px;
  background: rgba(34,197,94,0.04);
  border: 1px solid rgba(34,197,94,0.08);
}

/* ── RIGHT PANEL ────────────────────────────────────── */
.uf-right {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f5f7fa;
  display: flex;
  flex-direction: column;
}

/* ── MOBILE HEADER (hidden on desktop) ──────────────── */
.uf-mobile-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
}

.uf-mobile-head img { width: 120px; height: auto; }

.uf-mobile-back {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
}

/* ── TABS NAV ───────────────────────────────────────── */
.uf-tabs-nav {
  display: flex;
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
}

.uf-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: auto 10px auto 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.uf-back-btn:hover {
  background: #0b1120;
  color: #fff;
}

.uf-tab-btn {
  padding: 16px 18px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.uf-tab-btn.active {
  color: #0b1120;
  border-bottom-color: #0b1120;
}

.uf-tab-btn:hover:not(.active) { color: #374151; }

/* ── TAB PANES ──────────────────────────────────────── */
.uf-pane { display: none; }
.uf-pane.active,
.uf-pane.show { display: block; }

/* ── PANE BODY ──────────────────────────────────────── */
.uf-pane-body {
  max-width: 460px;
  margin: 0 auto;
  padding: 36px 20px 24px;
}

/* Register tab: no bottom padding (buttons are sticky) */
#register-tab .uf-pane-body {
  padding-bottom: 0;
}

/* ── FORM TITLE ─────────────────────────────────────── */
.uf-form-title {
  margin-bottom: 24px;
}

.uf-form-title h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0b1120;
  margin-bottom: 6px;
}

.uf-form-title p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.55;
}

/* ── FIELDS ─────────────────────────────────────────── */
.uf-field {
  margin-bottom: 16px;
}

.uf-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-control,
.form-select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: #0b1120;
  box-shadow: 0 0 0 3px rgba(11,17,32,0.08);
  background: #fff;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

textarea.form-control {
  height: auto;
  padding: 10px 14px;
  resize: vertical;
  min-height: 90px;
}

input[type="file"].form-control {
  height: auto;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.uf-hint {
  display: block;
  font-size: 11.5px;
  color: #9ca3af;
  margin-top: 5px;
}

.uf-opt {
  font-size: 11.5px;
  color: #9ca3af;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.req { color: #ef4444; font-weight: 700; }

/* Two-column grid */
.uf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Remember + forgot row */
.uf-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── CHECKBOX ───────────────────────────────────────── */
.uf-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.custom-control-input { display: none; }

.uf-checkmark {
  width: 18px; height: 18px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.2s;
}

.custom-control-input:checked + .uf-checkmark {
  background: #0b1120;
  border-color: #0b1120;
}

.custom-control-input:checked + .uf-checkmark::after {
  content: '\2713';
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

/* ── PASSWORD ICON ──────────────────────────────────── */
.uf-input-wrap {
  position: relative;
}

.uf-input-wrap .form-control {
  padding-right: 44px;
}

.form-icon {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  font-size: 15px;
  line-height: 1;
}

.form-icon:hover { color: #374151; }

/* ── LINKS ──────────────────────────────────────────── */
.uf-forgot {
  font-size: 12.5px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}
.uf-forgot:hover { color: #0b1120; text-decoration: underline; }

.uf-switch-line {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin: 20px 0 28px;
}
.uf-switch-line a {
  color: #0b1120;
  font-weight: 700;
  text-decoration: none;
}
.uf-switch-line a:hover { text-decoration: underline; }

/* ── ALERT MESSAGES ─────────────────────────────────── */
.uf-alert-zone { margin-bottom: 14px; }

.uf-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.uf-alert.uf-danger, .uf-alert.alert-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.uf-alert.uf-success, .uf-alert.alert-success {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.uf-alert i { font-size: 15px; margin-top: 1px; flex-shrink: 0; }

/* Bootstrap compat */
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin: 8px 0; }
.alert-danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ── BUTTONS ────────────────────────────────────────── */
.uf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}

.uf-btn.uf-btn-primary {
  background: #0b1120;
  color: #fff;
  border-color: #0b1120;
  width: 100%;
}
.uf-btn.uf-btn-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11,17,32,0.2);
}
.uf-btn.uf-btn-primary:disabled {
  background: #9ca3af;
  border-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.uf-btn.uf-btn-outline {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}
.uf-btn.uf-btn-outline:hover {
  border-color: #0b1120;
  color: #0b1120;
  background: #f8fafc;
}

/* ── INFO CARD (RCCM/DFE) ───────────────────────────── */
.uf-info-card {
  display: flex;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 12px;
  color: #166534;
  line-height: 1.6;
}
.uf-info-card i {
  color: #16a34a;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── WIZARD STEPS ───────────────────────────────────── */
.uf-wizard-steps {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
}

.uf-wstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.uf-wline {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin: 18px 6px 0;
}

.wizard-step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #9ca3af;
  border: 2px solid #e5e7eb;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.wizard-step-circle.active {
  background: #0b1120;
  color: #fff;
  border-color: #0b1120;
  box-shadow: 0 2px 10px rgba(11,17,32,0.25);
}

.wizard-step-circle.completed {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
}

.wizard-step-circle i { font-size: 14px; }

.wizard-step-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
}

/* ── WIZARD CONTENT STEPS ───────────────────────────── */
.wizard-content { display: none; }
.wizard-content.active {
  display: block;
  animation: ufFade 0.2s ease;
}

@keyframes ufFade {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── STEP SECTION HEADING ───────────────────────────── */
.uf-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0b1120;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}
.uf-step-head i { font-size: 18px; }

/* ── WIZARD BUTTONS (sticky bottom) ─────────────────── */
.wizard-buttons {
  display: flex;
  gap: 10px;
  padding: 14px 0 10px;
  margin-top: 14px;
  border-top: 1px solid #e5e7eb;
  position: sticky;
  bottom: 0;
  background: #f5f7fa;
  z-index: 15;
}

#wizard-prev-btn { display: none; flex: 1; }
#wizard-next-btn,
#wizard-submit-btn { flex: 1; }

/* ── FORM ALERT (signup) ────────────────────────────── */
#company-signup-alert {
  margin-top: 8px;
}

/* ── FORM ALERT HELPER ──────────────────────────────── */
.form-alert {
  display: none;
  font-size: 11.5px;
  color: #9ca3af;
  margin-top: 4px;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .uf-left { width: 38%; padding: 40px 30px; }
}

@media (max-width: 900px) {
  .uf-left { width: 35%; padding: 36px 24px; }
  .uf-left-inner h2 { font-size: 24px; }
  .uf-left-inner > p { font-size: 13px; }
}

@media (max-width: 767px) {
  .uf-layout { flex-direction: column; }
  .uf-left { display: none; }
  .uf-right { width: 100%; height: auto; min-height: 100vh; }
  .uf-mobile-head { display: flex; }
  .uf-tabs-nav {
    padding: 0 16px;
    position: sticky;
    top: 57px;
  }
  .uf-pane-body { padding: 24px 16px 20px; }
  #register-tab .uf-pane-body { padding-bottom: 0; }
  .uf-row-2 { grid-template-columns: 1fr; gap: 0; }
  .wizard-buttons { flex-direction: column; }
  #wizard-prev-btn,
  #wizard-next-btn,
  #wizard-submit-btn { flex: none; width: 100%; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .uf-tabs-nav { padding: 0 28px; }
  .uf-pane-body { padding: 28px 28px 20px; }
}
