/* ═══════════════════════════════════════════
   Register Page – Auto-Capture Enrollment
   ═══════════════════════════════════════════ */

/* Enrollment card top accent */
.enroll-card { position: relative; }
.enroll-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 12px 12px 0 0;
}

/* Step label */
.enroll-step-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Name input wrapper */
.name-input-wrap {
  position: relative;
}
.name-icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}
.name-field {
  padding-left: 2.75rem !important;
  font-size: 1rem !important;
  height: 52px;
}

/* ── Capture stage ── */
.capture-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4/3;
  max-height: 340px;
}
.capture-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Corner marks */
.corner {
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--accent-light);
  border-style: solid;
  z-index: 2;
}
.corner.tl { top: 12px;  left: 12px;  border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.corner.tr { top: 12px;  right: 12px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.corner.bl { bottom: 12px; left: 12px;  border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.corner.br { bottom: 12px; right: 12px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

/* Scanning line */
.scan-line {
  position: absolute;
  left: 5%; right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  z-index: 2;
  animation: scanDown 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent);
}
@keyframes scanDown {
  0%   { top: 10%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

/* ── Progress ring ── */
.progress-ring-wrap {
  position: absolute;
  bottom: 12px; right: 12px;
  z-index: 3;
  width: 72px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  border-radius: 50%;
  backdrop-filter: blur(6px);
}
.progress-ring {
  position: absolute;
  width: 72px; height: 72px;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,.15);
  stroke-width: 8;
}
.ring-fill {
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset .35s ease;
}
.ring-count {
  position: relative;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-align: center;
}
.ring-count span {
  font-size: .65rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
}

/* ── Thumbnail row ── */
.thumb-row {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin-top: 1rem;
}
.thumb-slot {
  width: 64px; height: 64px;
  border-radius: 10px;
  border: 2px dashed var(--border);
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 1.3rem;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  flex-shrink: 0;
}
.thumb-slot.filled {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 12px rgba(99,102,241,.3);
}
.thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

