/* static/landing/auth-fx.css — stilurile lui auth-fx.js: căsuțele codului 2FA
   (CodeSlots) și butonul cu reflexie (SpecularButton). Mutat din login.html (04.10). */
.code-slots {
  /* Fiecare căsuță se umple cu mov când primește cifra (04.10), cifra albă pe ea. */
  --cs-accent: var(--accent, #4e54c8);
  --cs-ink: #f5f5f5;
  --cs-slot: #27272a;
  --cs-digit: #ffffff;
  --cs-danger: #ff3b30;
  --cs-size: 44px;
  --cs-height: 52px;
  --cs-gap: 8px;
  --cs-radius: 12px;
  --cs-font: 22px;

  position: relative;
  display: inline-block;
}

.code-slots__row {
  position: relative;
  display: inline-flex;
  gap: var(--cs-gap);
  cursor: text;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 200ms ease;
}

.code-slots__row[data-disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.code-slots__input {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  opacity: 0;
  cursor: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.code-slots__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: var(--cs-radius);
  background: var(--cs-accent);
  color: var(--cs-digit);
  pointer-events: none;
}

.code-slots__check {
  display: grid;
  place-items: center;
}

.code-slots__slot {
  position: relative;
  width: var(--cs-size);
  height: var(--cs-height);
  border-radius: var(--cs-radius);
  overflow: hidden;
  background: var(--cs-slot);
  transition: background-color 200ms ease;
  user-select: none;
  -webkit-user-select: none;
}

.code-slots__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--cs-accent);
  transform-origin: center;
  transition: background-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .code-slots__row[data-status='idle']:not([data-disabled]):hover .code-slots__slot:not([data-active]) {
    background: color-mix(in srgb, var(--cs-ink) 4%, var(--cs-slot));
  }
}

.code-slots__slot[data-active] {
  background: color-mix(in srgb, var(--cs-ink) 8%, var(--cs-slot));
}

.code-slots__row[data-status='error'] .code-slots__slot {
  background: color-mix(in srgb, var(--cs-danger) 20%, var(--cs-slot));
}

.code-slots__row[data-status='error'] .code-slots__fill {
  background: var(--cs-danger);
}

.code-slots__digit {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--cs-digit);
  font-family: inherit;
  font-size: var(--cs-font);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.code-slots__caret {
  position: absolute;
  z-index: 3;
  top: 25%;
  left: calc(var(--cs-size) / 2 - 0.75px);
  width: 1.5px;
  height: 50%;
  opacity: 0;
  pointer-events: none;
}

.code-slots__caret[data-show] {
  opacity: 1;
}

.code-slots__caret-line {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cs-ink);
  animation: code-slots-blink 1s linear infinite;
}

@keyframes code-slots-blink {
  0%,
  49.9% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.code-slots__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .code-slots__digit,
  .code-slots__check {
    transform: none !important;
    transition: opacity 150ms ease;
  }

  .code-slots__caret-line {
    animation: none;
  }

  .code-slots__wash {
    opacity: 0;
    transition: opacity 200ms ease;
  }

  .code-slots__row[data-status='success'] .code-slots__wash {
    opacity: 1;
  }
}

/* ═══ Cod 2FA (CodeSlots) + buton cu reflexie (SpecularButton) — React Bits, portate în JS simplu ═══ */
.code-slots-host { display: flex; justify-content: center; margin: 4px 0 18px; }
[data-specular] { position: relative; }
.sb-fx { position: absolute; inset: -20px; pointer-events: none; z-index: 1; }
.sb-fx canvas { display: block; width: 100%; height: 100%; }

