/* ==========================================================================
   Vizora — premium animated auth-page background.
   Dedicated stylesheet (linked only on login.html) so this large,
   self-contained feature doesn't bloat the shared styles.css. All motion
   here is driven by JS setting `transform` in a single rAF loop (see
   auth-background.js); this file only sets the static per-element look
   (size/color/shape are inline styles set once at creation).
   prefers-reduced-motion: JS never starts the rAF loop or schedules the
   SMIL line-travel animation, so everything below simply renders static.
   ========================================================================== */

.auth-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #FAFAF8;
  /* --doc-blur / --glow-blur are set by JS per responsive tier. */
  --doc-blur: 10px;
  --glow-blur: 200px;
}

.auth-background::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: linear-gradient(135deg, #FAFAF8 0%, #F5F3F0 40%, #F0EEEA 80%);
  animation: authGradientShift 28s ease-in-out infinite alternate;
}
@keyframes authGradientShift {
  0% { opacity: 0.55; }
  50% { opacity: 1; }
  100% { opacity: 0.55; }
}

/* ---------- Ambient corner glow (blue, very low opacity) ---------- */
.auth-bg-glow {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  background: #2563EB;
  opacity: 0.03;
  filter: blur(var(--glow-blur));
  will-change: transform;
  pointer-events: none;
}
.auth-bg-glow--tr { top: -12%; right: -12%; }
.auth-bg-glow--bl { bottom: -12%; left: -12%; }

/* ---------- Connecting lines (SVG) ---------- */
.auth-bg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.auth-bg-path {
  fill: none;
  stroke: #2563EB;
  stroke-width: 1;
  opacity: 0.04;
}
.auth-bg-travel {
  fill: #2563EB;
  opacity: 0;
}

/* ---------- Particles ---------- */
.auth-bg-particle {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}
.auth-bg-particle--dot,
.auth-bg-particle--circle {
  border-radius: 50%;
}
.auth-bg-particle--circle {
  background: transparent;
  border: 1px solid currentColor;
}
.auth-bg-particle--line {
  border-radius: 1px;
}

/* ---------- Floating document cards ---------- */
.doc-card {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(37, 99, 235, 0.07);
  box-shadow: 0 20px 50px -20px rgba(17, 17, 17, 0.10), 0 4px 14px rgba(17, 17, 17, 0.04);
  backdrop-filter: blur(var(--doc-blur));
  -webkit-backdrop-filter: blur(var(--doc-blur));
  padding: 14px 16px 16px;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
}
/* Paper-curl corner fold. */
.doc-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, transparent 50%, rgba(17, 17, 17, 0.06) 50%);
  border-radius: 0 0 16px 0;
}
.doc-card--accent {
  border-color: rgba(37, 99, 235, 0.16);
}

.doc-title {
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-subtitle {
  font-size: 10px;
  color: #6B7280;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-lines { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.doc-lines span { display: block; height: 4px; border-radius: 2px; background: #E5E7EB; }

.doc-mid { display: flex; align-items: flex-end; gap: 10px; margin-top: 12px; height: 38px; }
.doc-chart { display: flex; align-items: flex-end; gap: 3px; height: 100%; flex: 1 1 auto; }
.doc-chart i { display: block; width: 6px; border-radius: 2px 2px 0 0; background: #2563EB; opacity: 0.5; }
.doc-pie { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }

.doc-table { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.doc-row { display: flex; gap: 4px; }
.doc-row i { flex: 1 1 auto; height: 5px; border-radius: 2px; background: #F0EEEA; border: 1px solid #E5E7EB; }

.doc-bullets { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.doc-bullet { display: flex; align-items: center; gap: 6px; }
.doc-check { width: 8px; height: 8px; border-radius: 2px; border: 1px solid #2563EB; flex-shrink: 0; }
.doc-bullet i { display: block; flex: 1 1 auto; height: 4px; border-radius: 2px; background: #E5E7EB; }

.doc-image { margin-top: 12px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #F0EEEA, #E5E7EB); }
