/* Shared camera + capture card styles for signup and scan pages */

.page-shell {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(199, 210, 254, 0.35), transparent 45%),
    radial-gradient(circle at bottom, rgba(191, 219, 254, 0.25), transparent 40%),
    #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.capture-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 28px;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
}

/* ─── Camera widget ─────────────────────────────────────────── */

.cam-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #111827;
}

.cam-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.cam-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid #cbd5e1;
  pointer-events: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cam-ring.detecting {
  border-color: #2563eb;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.35);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.35); }
  50% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0.15); }
  100% { box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.35); }
}

.cam-ring.capturing {
  border-color: #2563eb;
  animation: pulse-ring 1s ease-in-out infinite;
}

.cam-ring.captured {
  border-color: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.25);
}

.cam-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 50%;
}

.countdown-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: #6366f1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  transform: rotate(-90deg);
}

.countdown-ring.active {
  opacity: 1;
}

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

.countdown-ring.active {
  animation: spin 1.5s linear forwards;
}

.status-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.5);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}
