/* ==========================================================
   Auth — premium split-screen AI screening experience
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

.auth-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #0a1628 !important;
}

[data-theme="light"] .auth-page {
  background: #f4f7fb !important;
}

/* ---- Shell layout ---- */
.auth-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.auth-hero {
  position: relative;
  flex: 1 1 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 80% at 15% 20%, rgba(2, 99, 142, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 80%, rgba(230, 81, 0, 0.28) 0%, transparent 50%),
    linear-gradient(155deg, #071525 0%, #0c2840 45%, #0a1f33 100%);
}

[data-theme="light"] .auth-hero {
  background:
    radial-gradient(ellipse 90% 80% at 15% 20%, rgba(2, 99, 142, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 80%, rgba(230, 81, 0, 0.12) 0%, transparent 50%),
    linear-gradient(155deg, #e8f2f8 0%, #dceaf4 45%, #eef3fa 100%);
}

.auth-neural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.65;
}

/* ---- HR + AI orchestration background ---- */
.auth-hr-bg {
  position: absolute;
  inset: 0;
  z-index: 0.5;
  pointer-events: none;
  overflow: hidden;
}

/* Central AI hub — orchestrates all HR data flows */
.auth-ai-hub {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  z-index: 2;
}

.auth-ai-hub__core {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  background: radial-gradient(circle at 35% 30%, rgba(126, 200, 227, 0.95), rgba(2, 99, 142, 0.92) 55%, rgba(4, 40, 62, 0.95));
  color: #fff;
  box-shadow:
    0 0 32px rgba(2, 99, 142, 0.55),
    0 0 64px rgba(126, 200, 227, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: auth-ai-core-pulse 3s ease-in-out infinite;
  z-index: 2;
}

.auth-ai-hub__core i {
  font-size: 1.35rem;
}

.auth-ai-hub__core span {
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

[data-theme="light"] .auth-ai-hub__core {
  background: radial-gradient(circle at 35% 30%, #7ec8e3, #02638e 55%, #034d6e);
  box-shadow:
    0 0 28px rgba(2, 99, 142, 0.35),
    0 0 48px rgba(126, 200, 227, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.auth-ai-hub__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(126, 200, 227, 0.35);
  animation: auth-ai-ring 4s ease-out infinite;
}

.auth-ai-hub__ring--2 {
  animation-delay: 1.3s;
}

.auth-ai-hub__ring--3 {
  animation-delay: 2.6s;
}

[data-theme="light"] .auth-ai-hub__ring {
  border-color: rgba(2, 99, 142, 0.22);
}

.auth-hr-bg__float {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.16);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: auth-hr-float 14s ease-in-out infinite;
  z-index: 1;
}

.auth-hr-bg__node {
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
}

.auth-hr-bg__node--out {
  border-color: rgba(40, 170, 110, 0.15);
  color: rgba(94, 232, 154, 0.35);
}

.auth-hr-bg__node--out i {
  color: rgba(94, 232, 154, 0.5) !important;
}

[data-theme="light"] .auth-hr-bg__float {
  color: rgba(2, 99, 142, 0.2);
}

[data-theme="light"] .auth-hr-bg__node {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(2, 99, 142, 0.1);
}

[data-theme="light"] .auth-hr-bg__float i {
  color: rgba(2, 99, 142, 0.28);
}

[data-theme="light"] .auth-hr-bg__node--out {
  border-color: rgba(30, 138, 85, 0.2);
  color: rgba(30, 138, 85, 0.45);
}

[data-theme="light"] .auth-hr-bg__node--out i {
  color: rgba(30, 138, 85, 0.55) !important;
}

.auth-hr-bg__float i {
  font-size: 1.65rem;
  opacity: 0.85;
}

.auth-hr-bg__float--cv1 { top: 6%; left: 8%; animation-delay: 0s; }
.auth-hr-bg__float--cv2 { top: 8%; right: 8%; animation-delay: -3s; font-size: 0.52rem; }
.auth-hr-bg__float--cv2 i { font-size: 1.35rem; }
.auth-hr-bg__float--stack { bottom: 14%; left: 3%; animation-delay: -5s; }
.auth-hr-bg__float--stack i { font-size: 1.5rem; }
.auth-hr-bg__float--interview { top: 38%; left: 2%; animation-delay: -2s; }
.auth-hr-bg__float--interview i { font-size: 1.45rem; }
.auth-hr-bg__float--hr { bottom: 10%; right: 10%; animation-delay: -8s; }
.auth-hr-bg__float--hr i { font-size: 1.35rem; }
.auth-hr-bg__float--people { bottom: 38%; left: 10%; animation-delay: -6s; }
.auth-hr-bg__float--people i { font-size: 1.55rem; }
.auth-hr-bg__float--clip { bottom: 12%; right: 6%; animation-delay: -4s; }
.auth-hr-bg__float--clip i { font-size: 1.35rem; }
.auth-hr-bg__float--badge { top: 58%; right: 8%; animation-delay: -9s; font-size: 0.5rem; }
.auth-hr-bg__float--badge i { font-size: 1.25rem; }

.auth-hr-bg__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.auth-hr-bg__path {
  fill: none;
  stroke: url(#authFlowGrad);
  stroke-width: 1.5;
  opacity: 0.55;
}

.auth-hr-bg__path--out {
  stroke: rgba(40, 170, 110, 0.28);
  stroke-dasharray: 5 7;
}

[data-theme="light"] .auth-hr-bg__path {
  stroke: rgba(2, 99, 142, 0.18);
  opacity: 0.75;
}

[data-theme="light"] .auth-hr-bg__path--out {
  stroke: rgba(30, 138, 85, 0.22);
}

.auth-hr-bg__pulse {
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(126, 200, 227, 0.8));
}

.auth-hr-bg__pulse--out {
  filter: drop-shadow(0 0 4px rgba(40, 170, 110, 0.8));
}

[data-theme="light"] .auth-hr-bg__pulse {
  fill: rgba(2, 99, 142, 0.65);
}

[data-theme="light"] .auth-hr-bg__pulse--out {
  fill: rgba(30, 138, 85, 0.75);
}

/* Volume funnel — many CVs in, few matches out */
.auth-volume-funnel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
}

.auth-volume-funnel__shape {
  fill: url(#authFlowGrad);
  opacity: 0.35;
}

.auth-volume-funnel__label {
  fill: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.auth-volume-funnel__label--out {
  fill: rgba(94, 232, 154, 0.45);
}

[data-theme="light"] .auth-volume-funnel {
  opacity: 0.18;
}

[data-theme="light"] .auth-volume-funnel__label {
  fill: rgba(2, 99, 142, 0.35);
}

[data-theme="light"] .auth-volume-funnel__label--out {
  fill: rgba(30, 138, 85, 0.5);
}

/* Streaming CV icons into the AI hub */
.auth-cv-stream {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.auth-cv-stream__item {
  position: absolute;
  left: var(--x, 8%);
  top: -24px;
  width: 22px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(126, 200, 227, 0.55);
  font-size: 0.75rem;
  opacity: 0;
  animation: auth-cv-stream 9s linear infinite;
  animation-delay: calc(var(--i, 0) * -0.85s);
}

.auth-cv-stream__item:nth-child(1)  { --x: 6%; }
.auth-cv-stream__item:nth-child(2)  { --x: 14%; }
.auth-cv-stream__item:nth-child(3)  { --x: 22%; }
.auth-cv-stream__item:nth-child(4)  { --x: 30%; }
.auth-cv-stream__item:nth-child(5)  { --x: 38%; }
.auth-cv-stream__item:nth-child(6)  { --x: 46%; }
.auth-cv-stream__item:nth-child(7)  { --x: 54%; }
.auth-cv-stream__item:nth-child(8)  { --x: 62%; }
.auth-cv-stream__item:nth-child(9)  { --x: 70%; }
.auth-cv-stream__item:nth-child(10) { --x: 78%; }

[data-theme="light"] .auth-cv-stream__item {
  border-color: rgba(2, 99, 142, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(2, 99, 142, 0.35);
}

/* Floating volume / shortlist badges */
.auth-hr-bg__volume-tag,
.auth-hr-bg__shortlist-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  z-index: 3;
  animation: auth-hr-float 16s ease-in-out infinite;
}

.auth-hr-bg__volume-tag {
  top: 18%;
  left: 6%;
  animation-delay: -2s;
}

.auth-hr-bg__volume-tag i {
  color: rgba(126, 200, 227, 0.7);
  font-size: 0.9rem;
}

.auth-hr-bg__shortlist-tag {
  top: 18%;
  right: 6%;
  color: rgba(94, 232, 154, 0.65);
  border-color: rgba(40, 170, 110, 0.2);
  background: rgba(40, 170, 110, 0.08);
  animation-delay: -7s;
}

.auth-hr-bg__shortlist-tag i {
  color: rgba(94, 232, 154, 0.85);
  font-size: 0.9rem;
}

.auth-hr-bg__volume-tag strong,
.auth-hr-bg__shortlist-tag strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
}

.auth-hr-bg__shortlist-tag strong {
  color: rgba(94, 232, 154, 0.95);
}

[data-theme="light"] .auth-hr-bg__volume-tag {
  color: rgba(2, 99, 142, 0.65);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(2, 99, 142, 0.12);
}

[data-theme="light"] .auth-hr-bg__volume-tag strong {
  color: #02638e;
}

[data-theme="light"] .auth-hr-bg__shortlist-tag {
  color: rgba(30, 138, 85, 0.75);
  background: rgba(30, 138, 85, 0.08);
  border-color: rgba(30, 138, 85, 0.18);
}

[data-theme="light"] .auth-hr-bg__shortlist-tag strong {
  color: #1e8a55;
}

.auth-hr-bg__doc {
  position: absolute;
  width: 64px;
  height: 82px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  transform: rotate(-12deg);
  animation: auth-hr-doc-float 18s ease-in-out infinite;
}

.auth-hr-bg__doc::before,
.auth-hr-bg__doc::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-hr-bg__doc::before { top: 14px; width: 70%; }
.auth-hr-bg__doc::after { top: 24px; width: 50%; }

[data-theme="light"] .auth-hr-bg__doc {
  border-color: rgba(2, 99, 142, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, rgba(232, 242, 248, 0.35) 100%);
}

[data-theme="light"] .auth-hr-bg__doc::before,
[data-theme="light"] .auth-hr-bg__doc::after {
  background: rgba(2, 99, 142, 0.12);
}

.auth-hr-bg__doc--a { top: 6%; left: 38%; animation-delay: -1s; }
.auth-hr-bg__doc--b { bottom: 12%; left: 22%; width: 52px; height: 68px; transform: rotate(8deg); animation-delay: -7s; }
.auth-hr-bg__doc--c { top: 68%; left: 8%; width: 48px; height: 62px; transform: rotate(-6deg); opacity: 0.7; animation-delay: -11s; }

@keyframes auth-hr-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-10px) translateX(4px); }
}

@keyframes auth-hr-doc-float {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-10deg) translateY(-8px); }
}

@keyframes auth-ai-core-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 32px rgba(2, 99, 142, 0.55), 0 0 64px rgba(126, 200, 227, 0.25); }
  50% { transform: scale(1.04); box-shadow: 0 0 42px rgba(2, 99, 142, 0.7), 0 0 80px rgba(126, 200, 227, 0.35); }
}

@keyframes auth-ai-ring {
  0% { transform: scale(0.85); opacity: 0.55; }
  100% { transform: scale(1.45); opacity: 0; }
}

.auth-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.auth-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: auth-orb-drift 20s ease-in-out infinite;
}

.auth-ambient__orb--1 {
  width: 380px; height: 380px;
  top: -10%; left: -5%;
  background: rgba(2, 99, 142, 0.5);
}

.auth-ambient__orb--2 {
  width: 300px; height: 300px;
  bottom: -5%; right: 0;
  background: rgba(230, 81, 0, 0.35);
  animation-delay: -7s;
}

.auth-ambient__orb--3 {
  width: 220px; height: 220px;
  top: 50%; left: 40%;
  background: rgba(99, 130, 216, 0.3);
  animation-delay: -12s;
}

.auth-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="light"] .auth-grain { opacity: 0.03; }

.auth-hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: 100%;
  animation: auth-hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---- Hero typography ---- */
.auth-hero__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.auth-hero__logo {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e65100, #02638e);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 8px 28px rgba(2, 99, 142, 0.45);
}

.auth-hero__logo-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1px solid rgba(126, 200, 227, 0.5);
  animation: auth-logo-pulse 2.5s ease-out infinite;
}

.auth-hero__name {
  font-family: "Plus Jakarta Sans", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f0f6fc;
  line-height: 1.15;
}

[data-theme="light"] .auth-hero__name { color: #0a1628; }

.auth-hero__tag {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

[data-theme="light"] .auth-hero__tag { color: #5a6b7d; }

.auth-hero__headline {
  font-family: "Plus Jakarta Sans", "Nunito", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1rem;
}

[data-theme="light"] .auth-hero__headline { color: #0a1628; }

.auth-hero__headline-accent {
  background: linear-gradient(90deg, #7ec8e3, #28aa6e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .auth-hero__headline-accent {
  background: linear-gradient(90deg, #02638e, #1e8a55);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-hero__lead {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.75rem;
  max-width: 440px;
}

[data-theme="light"] .auth-hero__lead { color: #4a5d6e; }

/* ---- Scale bar: 50 CVs → shortlist ---- */
.auth-scale-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .auth-scale-bar {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(2, 99, 142, 0.12);
  box-shadow: 0 8px 24px rgba(2, 99, 142, 0.08);
}

.auth-scale-bar__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.auth-scale-bar__step--mid {
  flex: 1;
  min-width: 0;
}

.auth-scale-bar__num {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(126, 200, 227, 0.95);
  font-variant-numeric: tabular-nums;
}

.auth-scale-bar__num--green {
  color: rgba(94, 232, 154, 0.95);
}

[data-theme="light"] .auth-scale-bar__num {
  color: #02638e;
}

[data-theme="light"] .auth-scale-bar__num--green {
  color: #1e8a55;
}

.auth-scale-bar__label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

[data-theme="light"] .auth-scale-bar__label {
  color: #6c7d8e;
}

.auth-scale-bar__mid-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  white-space: nowrap;
}

[data-theme="light"] .auth-scale-bar__mid-label {
  color: #4a5d6e;
}

.auth-scale-bar__connector {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 2rem;
  position: relative;
}

.auth-scale-bar__dots {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.auth-scale-bar__dots i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(126, 200, 227, 0.45);
  animation: auth-scale-dot 1.4s ease-in-out infinite;
}

.auth-scale-bar__dots i:nth-child(2) { animation-delay: 0.15s; }
.auth-scale-bar__dots i:nth-child(3) { animation-delay: 0.3s; }
.auth-scale-bar__dots i:nth-child(4) { animation-delay: 0.45s; }
.auth-scale-bar__dots i:nth-child(5) { animation-delay: 0.6s; }

.auth-scale-bar__dots--green i {
  background: rgba(94, 232, 154, 0.55);
}

.auth-scale-bar__ai-icon,
.auth-scale-bar__arrow-icon {
  font-size: 0.85rem;
  color: rgba(126, 200, 227, 0.75);
  flex-shrink: 0;
}

.auth-scale-bar__connector--out .auth-scale-bar__arrow-icon {
  color: rgba(94, 232, 154, 0.8);
}

[data-theme="light"] .auth-scale-bar__dots i {
  background: rgba(2, 99, 142, 0.35);
}

[data-theme="light"] .auth-scale-bar__dots--green i {
  background: rgba(30, 138, 85, 0.45);
}

/* ---- Live console ---- */
.auth-console {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

[data-theme="light"] .auth-console {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(2, 99, 142, 0.12);
  box-shadow: 0 20px 50px rgba(2, 99, 142, 0.12);
}

.auth-console__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .auth-console__bar {
  background: rgba(2, 99, 142, 0.06);
  border-bottom-color: rgba(2, 99, 142, 0.08);
}

.auth-console__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}

.auth-console__dot--r { background: #ff5f57; }
.auth-console__dot--y { background: #febc2e; }
.auth-console__dot--g { background: #28c840; }

.auth-console__bar-title {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="light"] .auth-console__bar-title { color: #6c7d8e; }

.auth-console__live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #28aa6e;
  letter-spacing: 0.08em;
}

.auth-console__live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #28aa6e;
  box-shadow: 0 0 8px #28aa6e;
  animation: auth-live-blink 1.4s ease-in-out infinite;
}

.auth-console__body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1rem;
  padding: 1.1rem;
}

/* ---- Resume stack ---- */
.auth-stack {
  position: relative;
  height: 200px;
  perspective: 800px;
}

.auth-stack__card {
  position: absolute;
  left: 50%;
  width: 88%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(2, 99, 142, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform-origin: center bottom;
}

[data-theme="light"] .auth-stack__card {
  background: #fff;
}

.auth-stack__card--3 {
  bottom: 0;
  transform: translateX(-50%) translateY(0) scale(0.88) rotateX(8deg);
  opacity: 0.45;
  z-index: 1;
  animation: auth-stack-3 6s ease-in-out infinite;
}

.auth-stack__card--2 {
  bottom: 12px;
  transform: translateX(-50%) translateY(0) scale(0.94) rotateX(4deg);
  opacity: 0.7;
  z-index: 2;
  animation: auth-stack-2 6s ease-in-out infinite;
}

.auth-stack__card--1 {
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  overflow: hidden;
  animation: auth-stack-1 6s ease-in-out infinite;
}

.auth-stack__header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.auth-stack__avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e65100, #02638e);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-stack__avatar--lg { width: 30px; height: 30px; font-size: 0.55rem; }

.auth-stack__name {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0a1628;
  line-height: 1.2;
}

.auth-stack__role {
  font-size: 0.55rem;
  color: #6c7d8e;
}

.auth-stack__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.auth-stack__lines span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(2, 99, 142, 0.12);
}

.auth-stack__lines span:nth-child(1) { width: 80%; }
.auth-stack__lines span:nth-child(2) { width: 55%; }
.auth-stack__lines span:nth-child(3) { width: 65%; }

.auth-stack__skills {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-stack__skill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.5rem;
  font-weight: 600;
  color: #4a5d6e;
}

.auth-stack__skill span { width: 52px; flex-shrink: 0; }

.auth-stack__bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(2, 99, 142, 0.1);
  overflow: hidden;
}

.auth-stack__bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: 2px;
  background: linear-gradient(90deg, #02638e, #28aa6e);
  animation: auth-bar-grow 2s ease-out 0.6s both;
}

.auth-stack__scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7ec8e3, #28aa6e, transparent);
  box-shadow: 0 0 16px rgba(126, 200, 227, 0.7);
  animation: auth-scan 2.4s ease-in-out infinite;
}

.auth-stack__badge {
  position: absolute;
  top: 6px; right: 6px;
  font-size: 0.48rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 5px;
}

.auth-stack__badge--muted { background: rgba(2, 99, 142, 0.1); color: #02638e; }
.auth-stack__badge--warn { background: rgba(230, 81, 0, 0.12); color: #c45a00; }

.auth-stack__gauge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 52px;
  height: 52px;
}

.auth-stack__gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.auth-stack__gauge-bg {
  fill: none;
  stroke: rgba(2, 99, 142, 0.12);
  stroke-width: 5;
}

.auth-stack__gauge-fill {
  fill: none;
  stroke: url(#authGaugeGrad);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  animation: auth-gauge-fill 2s ease-out 0.4s forwards;
}

.auth-stack__gauge-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #02638e;
  padding-top: 2px;
}

.auth-stack__gauge-label {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.4rem;
  font-weight: 600;
  color: #6c7d8e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Terminal ---- */
.auth-terminal {
  font-family: "Consolas", "SF Mono", "Fira Code", monospace;
  font-size: 0.62rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
  min-height: 88px;
}

.auth-terminal__line {
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
}

[data-theme="light"] .auth-terminal__line { color: #2d3e50; }

.auth-terminal__line--dim { color: rgba(255, 255, 255, 0.35); }
[data-theme="light"] .auth-terminal__line--dim { color: #8a9bab; }

.auth-terminal__line--success { color: #5ee89a; font-weight: 600; }
[data-theme="light"] .auth-terminal__line--success { color: #1e8a55; }

.auth-terminal__line--typing::after {
  content: "▋";
  animation: auth-cursor 0.8s step-end infinite;
  color: #7ec8e3;
  margin-left: 1px;
}

/* ---- Flow steps ---- */
.auth-flow {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.auth-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}

[data-theme="light"] .auth-flow__step {
  color: #8a9bab;
  border-color: rgba(2, 99, 142, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

.auth-flow__step i { font-size: 0.9rem; }

.auth-flow__step--done {
  color: #5ee89a;
  border-color: rgba(40, 170, 110, 0.3);
}

.auth-flow__step--active {
  color: #7ec8e3;
  border-color: rgba(126, 200, 227, 0.4);
  background: rgba(2, 99, 142, 0.2);
  box-shadow: 0 0 20px rgba(2, 99, 142, 0.25);
  animation: auth-step-pulse 2s ease-in-out infinite;
}

[data-theme="light"] .auth-flow__step--active {
  color: #02638e;
  background: rgba(2, 99, 142, 0.08);
}

.auth-flow__connector {
  flex: 1;
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: visible;
}

[data-theme="light"] .auth-flow__connector { background: rgba(2, 99, 142, 0.12); }

.auth-flow__connector i {
  position: absolute;
  top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #7ec8e3;
  box-shadow: 0 0 6px #7ec8e3;
  opacity: 0;
  animation: auth-flow-dot 1.8s ease-in-out infinite;
}

.auth-flow__connector i:nth-child(1) { animation-delay: 0s; }
.auth-flow__connector i:nth-child(2) { animation-delay: 0.35s; }
.auth-flow__connector i:nth-child(3) { animation-delay: 0.7s; }

/* ---- Stats ---- */
.auth-stats {
  display: flex;
  gap: 2rem;
}

.auth-stat__value {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

[data-theme="light"] .auth-stat__value { color: #02638e; }

.auth-stat__label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.25rem;
}

[data-theme="light"] .auth-stat__label { color: #6c7d8e; }

/* ---- Right panel (form) — spacious premium layout ---- */
.auth-panel {
  flex: 0 0 46%;
  min-width: 400px;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2.75rem;
  position: relative;
  z-index: 5;
  overflow: hidden;
  border-left: 1px solid rgba(2, 99, 142, 0.08);
  background: #ffffff;
}

[data-theme="dark"] .auth-panel {
  border-left-color: #2a2c2e;
  background: #141618;
}

.auth-panel__bg {
  display: none;
}

.auth-panel__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(2, 99, 142, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 99, 142, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
}

[data-theme="dark"] .auth-panel__grid {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(126, 200, 227, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 200, 227, 0.06) 1px, transparent 1px);
}

.auth-panel__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  animation: auth-panel-orb 14s ease-in-out infinite;
}

.auth-panel__orb--1 {
  width: 220px;
  height: 220px;
  top: -40px;
  right: -30px;
  background: rgba(2, 99, 142, 0.22);
}

.auth-panel__orb--2 {
  width: 180px;
  height: 180px;
  bottom: 8%;
  left: -40px;
  background: rgba(126, 200, 227, 0.2);
  animation-delay: -5s;
}

.auth-panel__orb--3 {
  width: 140px;
  height: 140px;
  top: 42%;
  right: 12%;
  background: rgba(40, 170, 110, 0.14);
  animation-delay: -9s;
}

.auth-panel__inner {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  animation: auth-panel-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.auth-panel__footnote {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-600);
  letter-spacing: 0.01em;
}

.auth-card {
  width: 100%;
}

.auth-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.auth-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #fff;
  background: linear-gradient(145deg, #0284b8 0%, #02638e 55%, #034d6e 100%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.25) inset,
    0 12px 28px rgba(2, 99, 142, 0.35);
}

.auth-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.auth-card__title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-900);
  margin: 0;
  line-height: 1.1;
}

.auth-card__sub {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-600);
  margin: 0 0 1.65rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(2, 99, 142, 0.1);
}

.auth-card__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(2, 99, 142, 0.08);
}

.auth-card__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-700);
  background: rgba(2, 99, 142, 0.06);
  border: 1px solid rgba(2, 99, 142, 0.1);
}

.auth-card__trust-item i {
  color: var(--secondary-color);
  font-size: 0.75rem;
}

[data-theme="dark"] .auth-card__trust-item {
  background: rgba(126, 200, 227, 0.08);
  border-color: rgba(126, 200, 227, 0.12);
}

.auth-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
}

.auth-link:hover {
  color: #024d6e;
  text-decoration: underline;
}

.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: none;
}

.auth-brand-title,
.auth-brand-sub { display: none; }

/* Form fields — lift above auth-card 3D surface so inputs receive clicks */
.auth-card form,
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: relative;
  z-index: 3;
  transform: translateZ(44px);
  transform-style: flat;
}

.auth-field {
  position: relative;
  margin-bottom: 1rem;
}

.auth-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-700);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.auth-field__wrap {
  position: relative;
  z-index: 1;
}

.auth-field__icon {
  position: absolute;
  left: 0.72rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--color-600);
  font-size: 0.88rem;
  pointer-events: none;
  transition: color 0.2s;
}

.auth-field .form-control {
  position: relative;
  z-index: 1;
  width: 100%;
  pointer-events: auto;
  padding: 0.52rem 0.75rem 0.52rem 2.35rem;
  min-height: 42px;
  border-radius: 7px;
  border: 1.5px solid rgba(2, 99, 142, 0.14);
  background: rgba(2, 99, 142, 0.045);
  font-size: 0.88rem;
  line-height: 1.35;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

[data-theme="dark"] .auth-field .form-control {
  background: #1d1f20;
}

.auth-field .form-control:focus {
  border-color: var(--secondary-color);
  background: var(--card-color);
  box-shadow: 0 0 0 4px rgba(2, 99, 142, 0.1) !important;
}

.auth-field .form-control:-webkit-autofill,
.auth-field .form-control:-webkit-autofill:hover,
.auth-field .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-900);
  caret-color: var(--color-900);
  box-shadow: 0 0 0 1000px rgba(232, 244, 250, 0.98) inset !important;
  transition: background-color 99999s ease-out 0s;
}

.auth-field:focus-within .auth-field__icon {
  color: var(--secondary-color);
}

/* Password reveal — Seer's Lens (nazar + aurora decrypt) */
.auth-field__wrap--peek {
  margin-bottom: 0;
  overflow: hidden;
}

.auth-field__wrap--peek .form-control {
  padding-right: 2.95rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.55s ease,
    background 0.25s ease,
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-field__wrap--peek::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 42%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(126, 200, 227, 0.08) 35%,
    rgba(2, 132, 184, 0.28) 50%,
    rgba(126, 200, 227, 0.08) 65%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.auth-field__wrap--peek.auth-peek-field--glow::after {
  animation: auth-peek-aurora-sweep 0.85s ease-out forwards;
}

.auth-field__wrap--peek.auth-peek-field--glow .form-control {
  border-color: rgba(2, 132, 184, 0.5);
  box-shadow:
    0 0 0 3px rgba(2, 132, 184, 0.12),
    0 0 18px rgba(2, 132, 184, 0.24);
}

.auth-field__wrap--peek.auth-peek-field--revealed .form-control {
  border-color: rgba(2, 132, 184, 0.28);
  box-shadow: 0 0 12px rgba(2, 132, 184, 0.1);
}

.auth-field__wrap--peek.auth-peek-field--decrypt .form-control {
  filter: blur(5px);
  letter-spacing: 0.06em;
}

.auth-field__wrap--peek.auth-peek-field--decrypt.auth-peek-field--decrypt-go .form-control {
  filter: blur(0);
  letter-spacing: normal;
}

.auth-field__wrap--peek.auth-peek-field--cloak .form-control {
  filter: blur(4px);
  opacity: 0.65;
}

.auth-peek {
  position: absolute;
  right: 0.28rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #02638e;
  background: transparent;
  transition: transform 0.22s ease, background 0.22s ease;
}

.auth-peek:hover {
  background: rgba(2, 99, 142, 0.08);
  transform: translateY(-50%) scale(1.07);
}

.auth-peek:active {
  transform: translateY(-50%) scale(0.94);
}

.auth-peek__aura {
  position: absolute;
  inset: -0.15rem;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(2, 132, 184, 0.5) 0%, rgba(2, 99, 142, 0.15) 48%, transparent 72%);
  pointer-events: none;
  transform: scale(0.7);
}

.auth-peek__ripple {
  position: absolute;
  inset: 0.1rem;
  border-radius: 50%;
  border: 1.5px solid rgba(2, 132, 184, 0.45);
  opacity: 0;
  pointer-events: none;
}

.auth-peek__lens {
  position: relative;
  z-index: 1;
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  filter: saturate(0.92);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.auth-peek__orbit {
  transform-origin: 18px 18px;
  animation: auth-peek-orbit-idle 18s linear infinite;
}

.auth-peek__iris,
.auth-peek__pupil {
  transform-origin: 18px 18px;
  transition: transform 0.45s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.auth-peek__beam {
  transition: opacity 0.45s ease;
}

.auth-peek--visible {
  color: #0284b8;
}

.auth-peek--visible .auth-peek__lens {
  filter: saturate(1.15) drop-shadow(0 0 4px rgba(2, 132, 184, 0.45));
  transform: scale(1.05);
}

.auth-peek--visible .auth-peek__aura {
  opacity: 0.45;
  transform: scale(1);
  animation: auth-peek-aura-breathe 2.4s ease-in-out infinite alternate;
}

.auth-peek--visible .auth-peek__pupil {
  transform: scale(0.82);
}

.auth-peek--visible .auth-peek__beam {
  opacity: 1;
}

.auth-peek--visible .auth-peek__orbit {
  animation: auth-peek-orbit-active 6s linear infinite;
  opacity: 0.55;
}

.auth-peek--pulse .auth-peek__aura {
  animation: auth-peek-aura-burst 0.75s ease-out forwards;
}

.auth-peek--pulse .auth-peek__ripple {
  animation: auth-peek-ripple-out 0.8s ease-out forwards;
}

.auth-peek--pulse .auth-peek__ripple--delay {
  animation: auth-peek-ripple-out 0.8s ease-out 0.14s forwards;
}

.auth-peek--pulse .auth-peek__lens {
  animation: auth-peek-lens-awaken 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}

[data-theme="dark"] .auth-peek {
  color: #7ec8e3;
}

[data-theme="dark"] .auth-peek:hover {
  background: rgba(126, 200, 227, 0.1);
}

[data-theme="dark"] .auth-field__wrap--peek.auth-peek-field--glow .form-control {
  border-color: rgba(126, 200, 227, 0.45);
  box-shadow:
    0 0 0 3px rgba(126, 200, 227, 0.1),
    0 0 20px rgba(126, 200, 227, 0.22);
}

[data-theme="dark"] .auth-peek__aura {
  background: radial-gradient(circle, rgba(126, 200, 227, 0.45) 0%, rgba(2, 99, 142, 0.12) 48%, transparent 72%);
}

@keyframes auth-peek-orbit-idle {
  to { transform: rotate(360deg); }
}

@keyframes auth-peek-orbit-active {
  to { transform: rotate(360deg); }
}

@keyframes auth-peek-aura-burst {
  0%   { opacity: 0; transform: scale(0.5); }
  40%  { opacity: 1; transform: scale(1.55); }
  100% { opacity: 0.45; transform: scale(1); }
}

@keyframes auth-peek-aura-breathe {
  0%   { opacity: 0.32; transform: scale(0.94); }
  100% { opacity: 0.52; transform: scale(1.1); }
}

@keyframes auth-peek-ripple-out {
  0%   { opacity: 0.75; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(2.2); }
}

@keyframes auth-peek-lens-awaken {
  0%   { transform: scale(1) rotate(0deg); }
  35%  { transform: scale(1.18) rotate(-8deg); }
  100% { transform: scale(1.05) rotate(0deg); }
}

@keyframes auth-peek-aurora-sweep {
  0%   { left: -45%; opacity: 0; }
  20%  { opacity: 1; }
  100% { left: 108%; opacity: 0; }
}

.auth-field__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.auth-field__row label { margin-bottom: 0; }

.auth-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1rem;
  min-height: 42px;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(135deg, #0284b8 0%, #02638e 45%, #034d6e 100%);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.75rem;
}

.auth-btn__arrow {
  font-size: 1.1rem;
  opacity: 0.85;
  transition: transform 0.2s;
}

.auth-btn:hover .auth-btn__arrow {
  transform: translateX(4px);
}

.auth-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: auth-btn-shine 4s ease-in-out infinite;
  pointer-events: none;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(2, 99, 142, 0.45);
  color: #fff;
}

.auth-btn:active { transform: translateY(0); }

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-600);
}

.auth-footer a {
  color: var(--secondary-color);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer a:hover { color: #024d6e; }

.auth-mobile-brand {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.auth-mobile-brand__logo {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #e65100, #02638e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.auth-mobile-brand__title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-900);
}

/* SVG gradient defs injected via pseudo - use stroke color fallback */
.auth-stack__gauge-fill {
  stroke: #28aa6e;
}

/* ---- Realistic 3D scene (CSS vars driven by auth-scene.js) ---- */
.auth-hero {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --light-x: 42%;
  --light-y: 28%;
  --bg-shift-x: 0px;
  --bg-shift-y: 0px;
  perspective: 1100px;
  perspective-origin: 50% 42%;
}

.auth-panel {
  --panel-tilt-x: 0deg;
  --panel-tilt-y: 0deg;
  perspective: 900px;
  perspective-origin: 50% 40%;
}

.auth-hero__content {
  position: relative;
  transform-style: preserve-3d;
}

.auth-hero__light {
  position: absolute;
  inset: -10%;
  z-index: 6;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at var(--light-x) var(--light-y),
      rgba(126, 200, 227, 0.22) 0%,
      rgba(126, 200, 227, 0.06) 35%,
      transparent 68%);
  mix-blend-mode: screen;
  transition: opacity 0.3s;
}

.auth-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 75% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
}

[data-theme="light"] .auth-hero__vignette {
  background:
    radial-gradient(ellipse 85% 75% at 50% 45%, transparent 45%, rgba(10, 22, 40, 0.08) 100%);
}

.auth-hero__stage {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-origin: 50% 45%;
}

.auth-hr-bg {
  transform: translate3d(var(--bg-shift-x), var(--bg-shift-y), -80px) scale(1.04);
  transition: transform 0.08s linear;
}

.auth-hero__brand { transform: translateZ(72px); }
.auth-hero__headline { transform: translateZ(64px); }
.auth-hero__lead { transform: translateZ(58px); }
.auth-scale-bar { transform: translateZ(82px); }
.auth-console-wrap { transform: translateZ(110px); }
.auth-stats { transform: translateZ(68px); }

.auth-hero__logo {
  transform: translateZ(12px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.4) inset,
    0 -3px 8px rgba(0, 0, 0, 0.25) inset,
    0 18px 40px rgba(2, 99, 142, 0.5),
    0 6px 14px rgba(0, 0, 0, 0.28);
}

.auth-scale-bar {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.14) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 22px 50px rgba(0, 0, 0, 0.32),
    0 8px 20px rgba(2, 99, 142, 0.18);
}

[data-theme="light"] .auth-scale-bar {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.98) inset,
    0 20px 48px rgba(2, 99, 142, 0.16),
    0 8px 18px rgba(10, 22, 40, 0.1);
}

.auth-console-wrap {
  position: relative;
  margin-bottom: 1.75rem;
  transform-style: preserve-3d;
}

.auth-console__shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.45) 0%, transparent 72%);
  filter: blur(10px);
  transform: rotateX(78deg) translateZ(-24px);
  pointer-events: none;
  opacity: 0.85;
}

[data-theme="light"] .auth-console__shadow {
  background: radial-gradient(ellipse, rgba(2, 99, 142, 0.28) 0%, transparent 72%);
}

.auth-console {
  position: relative;
  transform-style: preserve-3d;
  margin-bottom: 0;
  overflow: hidden;
  box-shadow:
    0 3px 0 rgba(255, 255, 255, 0.1) inset,
    0 -6px 16px rgba(0, 0, 0, 0.22) inset,
    0 35px 80px rgba(0, 0, 0, 0.48),
    0 14px 32px rgba(2, 99, 142, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .auth-console {
  box-shadow:
    0 3px 0 rgba(255, 255, 255, 0.95) inset,
    0 -4px 12px rgba(2, 99, 142, 0.06) inset,
    0 32px 64px rgba(2, 99, 142, 0.18),
    0 12px 28px rgba(10, 22, 40, 0.1),
    0 0 0 1px rgba(2, 99, 142, 0.1);
}

.auth-stack {
  perspective: 720px;
  perspective-origin: 50% 80%;
}

.auth-stack__card {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 -2px 6px rgba(0, 0, 0, 0.08) inset,
    0 20px 40px rgba(0, 0, 0, 0.22),
    0 8px 16px rgba(2, 99, 142, 0.1);
}

.auth-stack__card--3 {
  transform: translateX(-50%) translateY(0) scale(0.86) rotateX(16deg) translateZ(-48px);
}

.auth-stack__card--2 {
  transform: translateX(-50%) translateY(0) scale(0.92) rotateX(9deg) translateZ(-22px);
}

.auth-stack__card--1 {
  transform: translateX(-50%) translateZ(28px) rotateX(2deg);
  box-shadow:
    0 3px 0 rgba(255, 255, 255, 0.98) inset,
    0 -4px 10px rgba(0, 0, 0, 0.1) inset,
    0 28px 56px rgba(0, 0, 0, 0.32),
    0 12px 24px rgba(2, 99, 142, 0.16);
}

.auth-ai-hub {
  transform-style: preserve-3d;
  will-change: transform;
}

.auth-ai-hub__core {
  box-shadow:
    0 4px 12px rgba(255, 255, 255, 0.35) inset,
    0 -12px 24px rgba(0, 0, 0, 0.4) inset,
    0 0 36px rgba(2, 99, 142, 0.55),
    0 0 72px rgba(126, 200, 227, 0.28),
    0 22px 44px rgba(0, 0, 0, 0.35);
}

.auth-hr-bg__node {
  transform: translateZ(16px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-stat {
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateZ(12px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 12px 28px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .auth-stat {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(2, 99, 142, 0.1);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.95) inset,
    0 12px 26px rgba(2, 99, 142, 0.12);
}

.auth-panel__inner {
  transform-style: preserve-3d;
  position: relative;
  z-index: 2;
}

.auth-card {
  position: relative;
  padding: 1.85rem 1.75rem 1.65rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(2, 99, 142, 0.1);
  transform-style: preserve-3d;
  transform:
    rotateX(var(--panel-tilt-x))
    rotateY(var(--panel-tilt-y))
    translateZ(36px);
  transform-origin: 50% 50%;
  box-shadow:
    0 4px 0 rgba(255, 255, 255, 1) inset,
    0 24px 56px rgba(2, 99, 142, 0.1),
    0 8px 24px rgba(10, 22, 40, 0.06);
}

.auth-card::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -20px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(2, 99, 142, 0.2) 0%, transparent 70%);
  filter: blur(8px);
  transform: translateZ(-20px) rotateX(80deg);
  pointer-events: none;
}

[data-theme="dark"] .auth-card {
  background: rgba(24, 26, 28, 0.88);
  border-color: rgba(126, 200, 227, 0.14);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 -10px 24px rgba(0, 0, 0, 0.35) inset,
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 12px 28px rgba(0, 0, 0, 0.32);
}

.auth-field .form-control {
  box-shadow:
    inset 0 3px 7px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .auth-field .form-control {
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.4);
}

.auth-btn {
  box-shadow: 0 4px 14px rgba(2, 99, 142, 0.28);
}

.auth-btn:hover {
  box-shadow: 0 6px 20px rgba(2, 99, 142, 0.38);
}

.auth-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(2, 99, 142, 0.25);
}

/* ---- Keyframes ---- */
@keyframes auth-hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes auth-panel-in {
  from { opacity: 0; transform: translateX(24px) translateZ(0); }
  to   { opacity: 1; transform: translateX(0) translateZ(0); }
}

@keyframes auth-panel-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-12px, 16px) scale(1.08); }
}

@keyframes auth-orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(30px, -20px); }
}

@keyframes auth-logo-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes auth-live-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@keyframes auth-stack-1 {
  0%, 100% { transform: translateX(-50%) translateY(0) translateZ(28px) rotateX(2deg); }
  50%      { transform: translateX(-50%) translateY(-8px) translateZ(38px) rotateX(1deg); }
}

@keyframes auth-stack-2 {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(0.92) rotateX(9deg) translateZ(-22px); }
  50%      { transform: translateX(-50%) translateY(-4px) scale(0.92) rotateX(9deg) translateZ(-14px); }
}

@keyframes auth-stack-3 {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(0.86) rotateX(16deg) translateZ(-48px); }
  50%      { transform: translateX(-50%) translateY(-2px) scale(0.86) rotateX(16deg) translateZ(-40px); }
}

@keyframes auth-scan {
  0%   { top: 0; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: calc(100% - 2px); opacity: 0; }
}

@keyframes auth-bar-grow {
  from { width: 0; }
  to   { width: var(--w); }
}

@keyframes auth-gauge-fill {
  to { stroke-dashoffset: 11.3; }
}

@keyframes auth-cursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@keyframes auth-step-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(2, 99, 142, 0.25); }
  50%      { box-shadow: 0 0 32px rgba(2, 99, 142, 0.45); }
}

@keyframes auth-flow-dot {
  0%   { left: 0; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: calc(100% - 4px); opacity: 0; }
}

@keyframes auth-btn-shine {
  0%, 70%, 100% { left: -100%; }
  85%           { left: 150%; }
}

@keyframes auth-cv-stream {
  0% {
    top: -24px;
    opacity: 0;
    transform: translateX(0) scale(0.85);
  }
  8% {
    opacity: 0.85;
  }
  45% {
    top: 46%;
    opacity: 0.7;
    transform: translateX(calc((50% - var(--x, 8%)) * 0.35)) scale(0.95);
  }
  70% {
    top: 48%;
    opacity: 0.15;
    transform: translateX(calc((50% - var(--x, 8%)) * 0.5)) scale(0.5);
  }
  100% {
    top: 50%;
    opacity: 0;
    transform: translateX(calc((50% - var(--x, 8%)) * 0.55)) scale(0.2);
  }
}

@keyframes auth-scale-dot {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1.15); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .auth-hr-bg__volume-tag,
  .auth-hr-bg__shortlist-tag,
  .auth-volume-funnel,
  .auth-cv-stream {
    display: none;
  }

  .auth-scale-bar {
    gap: 0.35rem;
    padding: 0.65rem 0.85rem;
  }

  .auth-scale-bar__connector {
    min-width: 1.5rem;
  }

  .auth-scale-bar__mid-label {
    font-size: 0.6rem;
  }

  .auth-ai-hub {
    left: 50%;
    top: 55%;
    width: 80px;
    height: 80px;
  }

  .auth-ai-hub__core i { font-size: 1.1rem; }

  .auth-hr-bg__float {
    opacity: 0.85;
  }

  .auth-shell { flex-direction: column; }

  .auth-hero {
    flex: none;
    min-height: auto;
    padding: 2rem 1.5rem 1.5rem;
  }

  .auth-hero__headline { font-size: 1.75rem; }
  .auth-hero__lead { font-size: 0.9rem; margin-bottom: 1.25rem; }
  .auth-console__body { grid-template-columns: 1fr; }
  .auth-stack { height: 170px; }
  .auth-stats { gap: 1.25rem; }
  .auth-stat__value { font-size: 1.35rem; }

  .auth-panel {
    flex: 1;
    min-width: 0;
    max-width: none;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem 2.5rem;
  }

  .auth-panel__inner {
    max-width: 480px;
  }

  .auth-card {
    padding: 2rem 1.65rem 1.75rem;
  }

  .auth-card__title {
    font-size: 1.75rem;
  }

  .auth-panel__footnote {
    display: none;
  }

  .auth-mobile-brand { display: flex; }
}

@media (max-width: 480px) {
  .auth-stats { flex-wrap: wrap; gap: 1rem; }
  .auth-stat { flex: 1 1 40%; }
  .auth-console { margin-bottom: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-panel__orb,
  .auth-panel__grid,
  .auth-panel__inner,
  .auth-ambient__orb,
  .auth-cv-stream__item,
  .auth-volume-funnel,
  .auth-hr-bg__volume-tag,
  .auth-hr-bg__shortlist-tag,
  .auth-scale-bar__dots i,
  .auth-stack__card,
  .auth-stack__scan,
  .auth-flow__step--active,
  .auth-flow__connector i,
  .auth-console__live-dot,
  .auth-hero__logo-pulse,
  .auth-btn::after,
  .auth-stack__bar i,
  .auth-peek__aura,
  .auth-peek__ripple,
  .auth-peek__orbit,
  .auth-peek__lens {
    animation: none !important;
  }

  .auth-stack__gauge-fill {
    stroke-dashoffset: 11.3;
  }

  .auth-hero__stage,
  .auth-hr-bg,
  .auth-ai-hub,
  .auth-card {
    transform: none !important;
  }

  .auth-hero {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --bg-shift-x: 0px;
    --bg-shift-y: 0px;
  }

  .auth-panel {
    --panel-tilt-x: 0deg;
    --panel-tilt-y: 0deg;
  }
}

/* Legacy class aliases for other auth templates */
.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card .form-control {
  border-radius: 7px;
}

.auth-card .btn-primary {
  background: linear-gradient(135deg, #02638e, #034d6e);
  border: none;
  border-radius: 7px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(2, 99, 142, 0.3);
}

.auth-card .btn-primary:hover {
  background: linear-gradient(135deg, #024d6e, #023a52);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 99, 142, 0.4);
}

.auth-card a:not(.btn) {
  color: var(--secondary-color);
  font-weight: 600;
}
