/* prvi.dodir — prijava (prijava.html, js/prijava.js). Crna strana u stilu coming soon (pocetak/): dizajn D2 iz canvasa
   „prvi.dodir — prijava“ (24. 11. 2026): stakleni znak sa krugovima, oznaka, forma, sitna slova na dnu.

   Animacije (24. 11. 2026, „dodaj još animacija da sve bude smooth“):
   - znak lebdi, dugin rub kruži, iza njega diše svetlo, krugovi se šire; lukovi znaka „šalju signal“;
   - svaka promena dela: znak se „dodirne“ (stisne i pusti talasić), ikonica se zameni (kvačica se iscrta, katanac
     se zaključa); dok se kuca, iz znaka idu talasići; dok server radi, rub se brzo vrti u svim bojama;
   - oznake se „dešifruju“ kao na početnoj, naslovi ulaze slovo po slovo, odsjaj povremeno pređe preko dugmeta;
   - kad se visina sadržaja promeni (drugi deo, forma za novu lozinku), znak i polja klize na novo mesto (js: glide);
   - greška ne menja visinu strane: ide na mesto napomene ispod (.pj-slot), a napomena se za to vreme skloni;
   - na računaru znak i krugovi blago prate miš (js), svetlo na staklu ide za kursorom.

   Brzina na slabijim telefonima:
   - Sve što traje menja samo transform i opacity (crta ih grafički čip, bez ponovnog iscrtavanja strane).
   - Dugin rub na znaku i dugmetu je poseban sloj koji se okreće (rotate), a ne prelaz koji se preračunava u svakom kadru.
   - Bez zamućenja (backdrop-filter) i bez senki koje se animiraju.
   - Laki režim (html.pd-slow, js/lagano.js: malo memorije, ušteda podataka ili spora strana) i „smanji pokrete“
     gase sve što se vrti, pulsira ili lebdi (krugovi stoje); ostaju samo kratki ulasci i klizanje. */

.pj {
  --pj-bg: #0B0B0B;
  --pj-ink: #F3F2ED;
  --pj-sivo: #8E8D87;
  --pj-svetlo: #B5B4AE;
  --pj-grafit: #6E6D68;
  --pj-polje: #161615;
  --pj-rub: #262624;
  --pj-rub-fokus: #4A4946;
  --pj-greska: #E08A75;
  --pj-greska-rub: #B4553F;
  --pj-ease: cubic-bezier(.16, 1, .3, 1);
  --pj-spring: cubic-bezier(.3, 1.6, .5, 1);
  --pj-duga: conic-gradient(rgba(255,255,255,0) 0deg, rgba(255,255,255,0) 150deg, rgba(255,255,255,.5) 185deg, #7FD0FF 215deg, #B48BFF 232deg, #FF8FB8 248deg, #FFD47A 262deg, rgba(255,255,255,.75) 282deg, rgba(255,255,255,0) 320deg);
  color-scheme: dark;
}
html:has(body.pj) { background: #0B0B0B; }
body.pj {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--pj-bg); color: var(--pj-ink);
  overflow-x: hidden;
}
.pj :focus-visible { outline: 2px solid var(--pj-ink); outline-offset: 3px; border-radius: 999px; }
.pj .skip { background: var(--pj-ink); color: var(--pj-bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Zaglavlje i dno ---------- */
.pj-hdr, .pj-foot { position: relative; z-index: 3; }
.pj-hdr__in {
  max-width: 1280px; margin: 0 auto; height: 80px; box-sizing: border-box;
  padding: env(safe-area-inset-top) clamp(20px, 4vw, 48px) 0;
  display: flex; align-items: center; justify-content: space-between;
}
.pj-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--pj-ink); }
.pj-logo svg { width: 32px; height: 32px; }
.pj-logo b { font-size: 25px; font-weight: 600; letter-spacing: -0.05em; }
.pj-logo b span { color: var(--pj-grafit); }
.pj-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; color: var(--pj-sivo); transition: color .2s; }
.pj-back:hover { color: var(--pj-ink); }
.pj-back svg { width: 18px; height: 18px; transition: transform .35s var(--pj-ease); }
.pj-back:hover svg { transform: translateX(-3px); }

.pj-foot__in {
  max-width: 1280px; margin: 0 auto; box-sizing: border-box;
  padding: 24px clamp(20px, 4vw, 48px) max(28px, calc(env(safe-area-inset-bottom) + 16px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pj-grafit);
}
.pj-foot a { color: var(--pj-grafit); transition: color .2s; }
.pj-foot a:hover, .pj-foot .pj-foot__cta { color: var(--pj-ink); }
.pj-foot__cta span { display: inline-block; transition: transform .35s var(--pj-ease); }
.pj-foot__cta:hover span { transform: translateX(4px); }
.pj-foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 640px) {
  .pj-hdr__in { height: 64px; }
  .pj-logo svg { width: 26px; height: 26px; }
  .pj-logo b { font-size: 21px; }
  .pj-foot__in { flex-direction: column; justify-content: center; text-align: center; padding-top: 14px; font-size: 11px; }
  .pj-foot__mail { display: none; }
}

/* ---------- Sredina ---------- */
.pj-main {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 20px 40px; text-align: center;
}
.pj-offline { position: relative; z-index: 1; max-width: 440px; margin-top: 28px; font-size: 14px; line-height: 1.5; color: var(--pj-greska); }

/* Stakleni znak: udubljen okvir, tamno staklo, dugin rub koji kruži; za „gotovo“ se upali svetlo staklo sa kvačicom.
   Slojevi: .pj-mark (klizi kad se visina promeni) > svetlo, krugovi, talasići, .pj-mark__float (ulazak i lebdenje)
   > .pj-mark__track (prati miš) > .pj-mark__ring („dodir“). Svaki sloj ima samo jedan pokret, pa se ne gaze. */
.pj-mark { position: relative; z-index: 0; isolation: isolate; flex: none; width: 136px; height: 136px; }
.pj-mark__float { position: relative; width: 100%; height: 100%; }
.pj-mark__track {
  position: relative; width: 100%; height: 100%; box-sizing: border-box; padding: 9px; border-radius: 50%;
  background: linear-gradient(180deg, #1B1B1A 0%, #262624 100%);
  box-shadow: inset 0 3px 8px rgba(0,0,0,.6), inset 0 -1px 0 rgba(243,242,237,.1), 0 1px 0 rgba(243,242,237,.06);
}
.pj-mark__ring {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black);   /* Safari: zaobljeno sečenje sloja koji se okreće */
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.95);
}
.pj-mark__edge, .pj-mark__busy, .pj-mark__glass, .pj-mark__light, .pj-mark__spec { position: absolute; border-radius: 50%; }
.pj-mark__edge { inset: 0; background: var(--pj-duga); animation: pj-spin 6s linear infinite; will-change: transform; }
/* Dok server radi (prijava, slanje linka): rub u svim bojama, brzo; inače stoji i ne troši ništa */
.pj-mark__busy {
  inset: 0; background: conic-gradient(#7FD0FF, #B48BFF, #FF8FB8, #FFD47A, #7FD0FF);
  opacity: 0; transition: opacity .35s ease; animation: pj-spin 1.1s linear infinite paused;
}
.pj-main.is-busy .pj-mark__busy { opacity: 1; animation-play-state: running; }
.pj-mark__glass {
  inset: 2px; background: linear-gradient(180deg, #3B3B38 0%, #171716 46%, #060606 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -5px 10px rgba(0,0,0,.6);
}
.pj-mark__light {
  inset: 2px; background: linear-gradient(180deg, #FFFFFF 0%, #F9F8F5 42%, #E8E7E2 100%);
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -5px 9px rgba(11,11,11,.08);
  opacity: 0; transition: opacity .55s var(--pj-ease);
}
/* Odsjaj na staklu (na računaru ide za mišem) */
.pj-mark__spec { inset: 2px; background: radial-gradient(circle at 50% 14%, rgba(255,255,255,.13), rgba(255,255,255,0) 50%); transition: opacity .4s; }
.pj-main[data-icon="check"] .pj-mark__spec { opacity: 0; }

.pj-ic {
  position: absolute; left: 50%; top: 50%; display: block; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  color: var(--pj-ink); opacity: 0; transform: scale(.6);
  transition: opacity .3s ease, transform .55s var(--pj-ease);
}
.pj-ic--mail, .pj-ic--lock, .pj-ic--key, .pj-ic--user { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
.pj-ic--check { color: var(--pj-bg); }
.pj-main[data-icon="znak"] .pj-ic--znak,
.pj-main[data-icon="mail"] .pj-ic--mail,
.pj-main[data-icon="lock"] .pj-ic--lock,
.pj-main[data-icon="key"] .pj-ic--key,
.pj-main[data-icon="user"] .pj-ic--user,
.pj-main[data-icon="check"] .pj-ic--check { opacity: 1; transform: none; transition-delay: .12s; }
.pj-main[data-icon="check"] .pj-mark__light { opacity: 1; }
/* Znak: tačka i dva luka; lukovi se povremeno ugase i upale jedan za drugim, kao signal */
.pj-ic--znak svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pj-main[data-icon="znak"] .pj-ic--znak svg + svg { animation: pj-sig 4.2s ease-in-out 1.6s infinite; }
.pj-main[data-icon="znak"] .pj-ic--znak svg:last-child { animation-delay: 1.78s; }
@keyframes pj-sig { 0%, 34%, 100% { opacity: 1; } 9% { opacity: .12; } }
/* Kvačica se iscrta, katanac se zaključa (malo poskoči) */
.pj-ic--check path { stroke-dasharray: 21; stroke-dashoffset: 21; transition: stroke-dashoffset .55s var(--pj-ease) .28s; }
.pj-main[data-icon="check"] .pj-ic--check path { stroke-dashoffset: 0; }
.pj-shackle { transform: translateY(-3px); transition: transform .5s var(--pj-spring) .34s; }
.pj-main[data-icon="lock"] .pj-shackle { transform: none; }

/* Svetlo iza znaka: diše (samo transform i opacity), jače kad se upali kvačica */
.pj-glow {
  position: absolute; left: 50%; top: 50%; z-index: -2; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  pointer-events: none; opacity: .6; transition: opacity .8s var(--pj-ease);
}
.pj-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243,242,237,.09), rgba(243,242,237,.035) 45%, rgba(243,242,237,0));
}
.anim .pj-glow::before { animation: pj-fade 1.6s ease .2s both, pj-breathe 8s ease-in-out 1.8s infinite; }
.pj-main[data-icon="check"] .pj-glow { opacity: 1; }
@keyframes pj-breathe { 50% { opacity: .5; transform: scale(.9); } }

/* Krugovi oko znaka: šire se i nestaju, kao na coming soon (samo transform i opacity) */
.pj-rings, .pj-pings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: -1; pointer-events: none; }
.pj-rings i {
  position: absolute; left: 0; top: 0; width: min(900px, 170vw); aspect-ratio: 1; box-sizing: border-box;
  border-radius: 50%; border: 1px solid #34342F;
  transform: translate(-50%, -50%) scale(.16); opacity: 0;
  animation: pj-ring 7s cubic-bezier(.2, .6, .2, 1) infinite; will-change: transform, opacity;
}
.pj-rings i:nth-child(2) { animation-delay: 1.75s; }
.pj-rings i:nth-child(3) { animation-delay: 3.5s; }
.pj-rings i:nth-child(4) { animation-delay: 5.25s; }
.pj-rings.is-burst i { border-color: #6E6D68; }
@keyframes pj-ring {
  0% { transform: translate(-50%, -50%) scale(.16); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
/* Talasići: kratak krug iz znaka (kucanje, promena dela, prijava); pokreće ih js (Web Animations) */
.pj-pings i {
  position: absolute; left: 0; top: 0; width: 300px; height: 300px; box-sizing: border-box;
  border-radius: 50%; border: 1.5px solid rgba(243,242,237,.6);
  transform: translate(-50%, -50%) scale(.45); opacity: 0;
}
@keyframes pj-spin { to { transform: rotate(360deg); } }

/* ---------- Delovi (prijava, zaboravljena, poslato, nova lozinka, istekao, prijavljen) ---------- */
.pj-view { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; }
.pj-view[hidden] { display: none; }
.pj-label {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 44px;
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--pj-sivo);
}
.pj-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--pj-ink); animation: pj-blink 2.4s ease-in-out infinite; }
@keyframes pj-blink { 50% { opacity: .25; } }
.pj-h { margin-top: 18px; font-size: clamp(40px, 4.6vw, 56px); line-height: .95; font-weight: 600; letter-spacing: -0.05em; outline: none; }
/* Naslov slovo po slovo (js: letters) */
.pj-w { display: inline-block; white-space: nowrap; }
.pj-l { display: inline-block; }
/* Prijava sa kartice dok sajt nije potvrđen (prijava?dovrsi): naslov u dve boje, objašnjenje, manji znak */
.pj-h--login { margin-top: 14px; font-size: clamp(34px, 3.6vw, 46px); }
.pj-h--login span { display: block; color: var(--pj-sivo); }
.pj-main.is-finish .pj-mark { width: 104px; height: 104px; }
.pj-main.is-finish .pj-mark__track { padding: 7px; }
.pj-main.is-finish .pj-ic { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.pj-main.is-finish .pj-label { margin-top: 30px; }
.pj-main.is-finish .pj-text { margin-top: 12px; max-width: 40ch; }
.pj-text { max-width: 36ch; margin-top: 18px; font-size: 17px; line-height: 1.5; color: var(--pj-svetlo); }
.pj-text b { font-weight: 400; color: var(--pj-ink); word-break: break-word; }
.pj-mono { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pj-grafit); }
.pj-view > .pj-mono { margin-top: 18px; }
.pj-help { max-width: 40ch; margin-top: 40px; font-size: 14px; line-height: 1.55; color: var(--pj-sivo); }
.pj-help a { color: var(--pj-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(243,242,237,.35); }

.pj-form { width: 100%; max-width: 440px; margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.pj-form--row { max-width: 470px; align-items: center; gap: 12px; margin-top: 28px; }
.pj-field { position: relative; }
.pj-input {
  display: block; width: 100%; height: 58px; box-sizing: border-box; margin: 0; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--pj-polje); color: var(--pj-ink);
  box-shadow: inset 0 0 0 1px var(--pj-rub), inset 0 2px 6px rgba(0,0,0,.6);
  font: inherit; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none;
  transition: box-shadow .35s var(--pj-ease);
}
.pj-input::placeholder, .pj-row__in::placeholder { color: var(--pj-grafit); opacity: 1; transition: opacity .25s; }
.pj-input:focus::placeholder, .pj-row__in:focus::placeholder { opacity: .55; }
.pj-input:focus { box-shadow: inset 0 0 0 1px var(--pj-rub-fokus), inset 0 2px 6px rgba(0,0,0,.6), 0 0 0 6px rgba(243,242,237,.05); }
.pj-field.is-bad .pj-input { box-shadow: inset 0 0 0 1px var(--pj-greska-rub), inset 0 2px 6px rgba(0,0,0,.6); }
/* Automatsko popunjavanje (Chrome, Safari) inače boji polje svetlo */
.pj-input:-webkit-autofill, .pj-row__in:-webkit-autofill {
  -webkit-text-fill-color: var(--pj-ink); caret-color: var(--pj-ink);
  box-shadow: inset 0 0 0 1px var(--pj-rub), inset 0 0 0 100px var(--pj-polje);
  transition: background-color 9999s;
}
.pj-row__in:-webkit-autofill { box-shadow: inset 0 0 0 100px var(--pj-polje); }
.pj-pw .pj-input { padding-right: 104px; }
.pj-pw__t {
  position: absolute; right: 8px; top: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #222220; color: var(--pj-svetlo); font: inherit; font-size: 14px; cursor: pointer;
  transition: background-color .2s, color .2s, transform .18s var(--pj-ease); -webkit-tap-highlight-color: transparent;
}
.pj-pw__t:hover { background: #2C2C29; color: var(--pj-ink); }
.pj-pw__t:active { transform: scale(.95); }
.pj-err { margin: 0; font-size: 14px; line-height: 1.45; color: var(--pj-greska); }
.pj-err[hidden] { display: none; }
/* Mesto za poruku: napomena i greška stoje jedna preko druge. Visina je uvek jedan red greške, pa se strana
   ne izdužuje kad se pogreši lozinka (duža poruka se spusti u prazan prostor ispod, ništa ne gura). */
.pj-slot { position: relative; align-self: stretch; min-height: 20px; }
.pj-slot > :not(.pj-err) { margin: 0 auto; transition: opacity .25s ease, transform .4s var(--pj-ease); }
.pj-slot.is-err > :not(.pj-err) { opacity: 0; transform: translateY(-4px); }
.pj-slot > .pj-err { position: absolute; left: 0; right: 0; top: 0; }
.pj-slot > .pj-err:not([hidden]) { animation: pj-err-in .45s var(--pj-ease) both; }
.pj-slot--help { margin-top: 18px; }
@keyframes pj-err-in { from { opacity: 0; transform: translateY(5px); } }
.pj-rule { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; color: var(--pj-grafit); transition: color .3s; }
.pj-rule svg { width: 13px; height: 13px; opacity: .35; transform: scale(.55); transition: opacity .3s, transform .45s var(--pj-spring); }
.pj-rule.is-ok { color: var(--pj-sivo); }
.pj-rule.is-ok svg { opacity: 1; transform: none; }

/* Polje i dugme u jednoj traci (zaboravljena lozinka), kao „Javi mi“ na coming soon */
.pj-row {
  width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 8px;
  border-radius: 999px; background: var(--pj-polje); box-shadow: inset 0 0 0 1px var(--pj-rub), inset 0 2px 6px rgba(0,0,0,.6);
  transition: box-shadow .35s var(--pj-ease);
}
.pj-row:focus-within { box-shadow: inset 0 0 0 1px var(--pj-rub-fokus), inset 0 2px 6px rgba(0,0,0,.6), 0 0 0 6px rgba(243,242,237,.05); }
.pj-row.is-bad { box-shadow: inset 0 0 0 1px var(--pj-greska-rub), inset 0 2px 6px rgba(0,0,0,.6); }
.pj-row__in {
  flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 14px; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 16px; color: var(--pj-ink); -webkit-appearance: none; appearance: none;
}
.pj-row__in:focus-visible { outline: none; }

/* Stakleno dugme: udubljen okvir, svetlo staklo, dugin rub (sloj koji se okreće iza svetlog dela),
   a preko svetlog dela povremeno pređe blag dugin odsjaj (isto samo transform) */
.pj-btn {
  position: relative; display: block; width: 100%; margin-top: 8px; padding: 4px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #1B1B1A 0%, #262624 100%);
  box-shadow: inset 0 3px 7px rgba(0,0,0,.55), inset 0 -1px 0 rgba(243,242,237,.1);
  font: inherit; color: #2A2A28; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pj-btn__rim {
  position: relative; display: block; padding: 1.6px; border-radius: 999px; overflow: hidden;
  isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black);
  transition: transform .35s var(--pj-ease);
}
.pj-btn__rim::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 150%; aspect-ratio: 1;
  background: var(--pj-duga); transform: translate(-50%, -50%) rotate(110deg);
  animation: pj-spin-c 5s linear infinite; will-change: transform;
}
@keyframes pj-spin-c { from { transform: translate(-50%, -50%) rotate(110deg); } to { transform: translate(-50%, -50%) rotate(470deg); } }
.pj-btn__in {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; height: 52px;
  border-radius: 999px; background: linear-gradient(180deg, #FFFFFF 0%, #F9F8F5 42%, #E8E7E2 100%);
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -4px 8px rgba(11,11,11,.08);
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  overflow: hidden; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.pj-btn__in::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 36%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(127,208,255,.26) 36%, rgba(255,143,184,.26) 64%, rgba(255,255,255,0) 100%);
  transform: translateX(-120%);
  animation: pj-sheen 6.5s cubic-bezier(.45, 0, .2, 1) 1.4s infinite;
}
@keyframes pj-sheen { 0% { transform: translateX(-120%); } 22%, 100% { transform: translateX(340%); } }
.pj-btn__in svg { width: 20px; height: 20px; transition: transform .35s var(--pj-ease); }
@media (hover: hover) {
  .pj-btn:hover .pj-btn__rim { transform: translateY(-1.5px); }
  .pj-btn:hover .pj-btn__in svg { transform: translateX(4px); }
}
.pj-btn:active .pj-btn__rim { transform: translateY(1px) scale(.985); transition-duration: .1s; }
.pj-btn:disabled { cursor: progress; }
.pj-btn[aria-busy="true"] .pj-btn__in { color: transparent; }
.pj-btn[aria-busy="true"] .pj-btn__in::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -12px 0 0 -12px;
  border: 2px solid rgba(42,42,40,.2); border-top-color: #2A2A28; border-radius: 50%; animation: pj-spin .7s linear infinite;
}
.pj-btn--sm { flex: none; width: auto; margin: 0; padding: 0; background: none; box-shadow: none; }
.pj-btn--sm .pj-btn__in { height: 44px; padding: 0 22px; font-size: 16px; }

.pj-below { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ---------- Privremena šifra (api/sifra.php, 25. 11. 2026) ---------- */
/* „ili“ između lozinke i šifre na mejl, pa tamno dugme sa ikonicom koverte */
.pj-or { display: flex; align-items: center; gap: 14px; margin: 8px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pj-grafit); }
.pj-or::before, .pj-or::after { content: ""; flex: 1; height: 1px; background: var(--pj-rub); }
.pj-alt {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; margin-top: 8px;
  border: 0; border-radius: 999px; background: var(--pj-polje); box-shadow: inset 0 0 0 1px var(--pj-rub);
  color: var(--pj-ink); font: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .25s, background-color .25s, transform .15s var(--pj-ease);
}
.pj-alt:hover { background: #1B1B1A; box-shadow: inset 0 0 0 1px var(--pj-rub-fokus); }
.pj-alt:active { transform: scale(.98); }
.pj-alt svg { width: 18px; height: 18px; }
/* Šest kućica za šifru: preko njih je jedno pravo polje (providno), pa radi lepljenje i šifra iz mejla na telefonu */
.pj-code { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pj-code span {
  display: flex; align-items: center; justify-content: center; height: 62px; border-radius: 16px;
  background: var(--pj-polje); box-shadow: inset 0 0 0 1px var(--pj-rub), inset 0 2px 6px rgba(0,0,0,.6);
  font-size: 26px; font-weight: 600; color: var(--pj-ink); transition: box-shadow .25s var(--pj-ease);
}
.pj-code span.is-cur { box-shadow: inset 0 0 0 1.5px var(--pj-ink), 0 0 0 5px rgba(243,242,237,.06); }
.pj-code span.is-on { animation: pj-digit .32s var(--pj-spring); }
.pj-code.is-bad span { box-shadow: inset 0 0 0 1.5px var(--pj-greska-rub), inset 0 2px 6px rgba(0,0,0,.6); color: var(--pj-greska); }
.pj-code__in {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; outline: none;
  background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent;
  font-size: 16px; letter-spacing: 2em; opacity: .01; cursor: text;
}
@keyframes pj-digit { from { transform: scale(.82); } }
.pj-btn:disabled .pj-btn__in { opacity: .45; }
.pj-btn:disabled .pj-btn__rim::before { animation-play-state: paused; }
.pj-btn:disabled .pj-btn__in::before { display: none; }   /* bez odsjaja dok dugme ne radi */
.pj-resend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 10px; line-height: 1.6; }
.pj-resend button { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--pj-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pj-resend button[hidden] { display: none; }
.pj-resend__spam { color: var(--pj-grafit); }
/* Izbor naloga (više kartica na istom mejlu) */
.pj-accs { display: grid; gap: 10px; width: 100%; max-width: 440px; margin-top: 28px; }
.pj-acc {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 18px 12px 12px; border: 0; border-radius: 20px;
  background: var(--pj-polje); box-shadow: inset 0 0 0 1px var(--pj-rub); color: var(--pj-ink); font: inherit; text-align: left;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: box-shadow .25s, background-color .25s, transform .15s var(--pj-ease);
}
.pj-acc:hover { background: #1B1B1A; box-shadow: inset 0 0 0 1px var(--pj-rub-fokus); }
.pj-acc:active { transform: scale(.985); }
.pj-acc[aria-busy="true"] { opacity: .6; cursor: progress; }
.pj-acc__av { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #262624; font-size: 17px; font-weight: 600; }
.pj-acc__t { min-width: 0; }
.pj-acc b { display: block; overflow: hidden; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; text-overflow: ellipsis; }
.pj-acc small { display: block; overflow: hidden; margin-top: 3px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--pj-sivo); white-space: nowrap; text-overflow: ellipsis; }
.pj-acc > svg { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--pj-sivo); transition: transform .3s var(--pj-ease); }
.pj-acc:hover > svg { transform: translateX(3px); color: var(--pj-ink); }
.pj-slot--pick { width: 100%; max-width: 440px; margin-top: 16px; }
.pj-link {
  display: inline-block; padding: 6px; font-size: 14.5px; color: var(--pj-svetlo);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(181,180,174,.35);
  transition: color .25s, text-decoration-color .25s;
}
.pj-link:hover { color: var(--pj-ink); text-decoration-color: rgba(243,242,237,.7); }
.pj-link.is-hint { color: var(--pj-ink); text-decoration-color: rgba(243,242,237,.7); }
.pj-link--c { align-self: center; margin-top: 10px; }
.pj-ghost {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; margin-top: 30px; padding: 0 20px;
  border-radius: 999px; background: var(--pj-polje); box-shadow: inset 0 0 0 1px var(--pj-rub);
  font-size: 15px; color: var(--pj-ink); transition: box-shadow .2s, transform .18s var(--pj-ease);
}
.pj-ghost:hover { box-shadow: inset 0 0 0 1px var(--pj-rub-fokus); }
.pj-ghost:active { transform: scale(.97); }
.pj-ghost svg { width: 16px; height: 16px; transition: transform .35s var(--pj-ease); }
.pj-ghost:hover svg { transform: translateX(-3px); }

@media (max-width: 640px) {
  .pj-main { padding: 8px 20px 16px; }
  .pj-mark { width: 112px; height: 112px; }
  .pj-mark__track { padding: 7px; }
  .pj-ic { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .pj-ic--mail, .pj-ic--lock, .pj-ic--key, .pj-ic--user { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .pj-code span { height: 56px; border-radius: 14px; font-size: 24px; }
  .pj-alt { height: 50px; font-size: 15px; }
  .pj-pings i { width: 250px; height: 250px; }
  .pj-glow { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
  .anim .pj-glow::before { animation: pj-fade 1.6s ease .2s both; }   /* telefon: svetlo stoji (jedan sloj manje u svakom kadru) */
  .pj-label { margin-top: 36px; font-size: 11px; gap: 9px; }
  .pj-label i { width: 6px; height: 6px; }
  .pj-form { margin-top: 26px; }
  .pj-input { height: 54px; padding: 0 22px; }
  .pj-pw__t { top: 7px; right: 7px; height: 40px; padding: 0 14px; font-size: 13.5px; }
  .pj-btn__in { height: 50px; font-size: 16px; }
  .pj-btn--sm .pj-btn__in { height: 42px; padding: 0 16px; font-size: 15px; }
  .pj-text { font-size: 15px; }
  .pj-help { margin-top: 28px; font-size: 13.5px; }
}
/* Niži ekran računara (npr. prozor ~740 px): manji znak i razmaci, da prijava sa „ili“ i šifrom na mejl stane bez skrola */
@media (min-width: 641px) and (max-height: 860px) {
  .pj-hdr__in { height: 68px; }
  .pj-main { padding: 8px 20px 20px; }
  .pj-mark { width: 104px; height: 104px; }
  .pj-mark__track { padding: 7px; }
  .pj-ic { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .pj-ic--mail, .pj-ic--lock, .pj-ic--key, .pj-ic--user { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
  .pj-pings i { width: 232px; height: 232px; }
  .pj-label { margin-top: 30px; }
  .pj-form { margin-top: 22px; }
  .pj-input { height: 54px; }
  .pj-pw__t { top: 7px; height: 40px; }
  .pj-btn__in { height: 50px; }
  .pj-alt { height: 50px; }
  .pj-foot__in { padding-top: 14px; padding-bottom: 20px; }
}
@media (max-height: 700px) and (max-width: 640px) {
  .pj-mark { width: 96px; height: 96px; }
  .pj-label { margin-top: 26px; }
}

/* ---------- Telefon: prijava uvek staje na jedan ekran (26. 11. 2026) ----------
   js/prijava.js (fit) meri stranu posle svake promene dela; ako je viša od ekrana, dodaje stepenice na <html>.
   Znak ostaje u punoj veličini (112 px); zbijaju se razmaci (korisnik, 26. 11.): pj-fit1 manji razmaci, pj-fit2 još
   manji, niža polja i dugmad, bez sitnih napomena i linkova u dnu; pj-fit3 (samo vrlo mali telefoni) i malo manji znak. */
@media (max-width: 640px) {
  .pj-main.is-finish .pj-mark { width: 112px; height: 112px; }   /* i prijava sa kartice: pun znak */
  .pj-main.is-finish .pj-mark__track { padding: 7px; }
  .pj-main.is-finish .pj-ic { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  html.pj-fit1 body.pj .pj-hdr__in { height: 54px; }
  html.pj-fit1 body.pj .pj-main { padding-top: 0; padding-bottom: 4px; }
  html.pj-fit1 body.pj .pj-label { margin-top: 22px; }
  html.pj-fit1 body.pj .pj-h { margin-top: 10px; }
  html.pj-fit1 body.pj .pj-text { margin-top: 10px; }
  html.pj-fit1 body.pj .pj-form { margin-top: 16px; gap: 8px; }
  html.pj-fit1 body.pj .pj-btn { margin-top: 4px; }
  html.pj-fit1 body.pj .pj-or { margin-top: 2px; }
  html.pj-fit1 body.pj .pj-alt { margin-top: 2px; }
  html.pj-fit1 body.pj .pj-below { margin-top: 8px; gap: 4px; }
  html.pj-fit1 body.pj .pj-help { margin-top: 14px; }
  html.pj-fit1 body.pj .pj-accs { margin-top: 18px; gap: 8px; }
  html.pj-fit1 body.pj .pj-ghost { margin-top: 18px; }
  html.pj-fit1 body.pj .pj-resend { margin-top: 4px; }
  html.pj-fit1 body.pj .pj-foot__in { gap: 6px; padding-top: 8px; padding-bottom: max(12px, calc(env(safe-area-inset-bottom) + 6px)); }
  html.pj-fit2 body.pj .pj-hdr__in { height: 50px; }
  html.pj-fit2 body.pj .pj-label { margin-top: 16px; }
  html.pj-fit2 body.pj .pj-h { margin-top: 8px; font-size: 32px; }
  html.pj-fit2 body.pj .pj-text { margin-top: 8px; font-size: 14px; line-height: 1.42; }
  html.pj-fit2 body.pj .pj-form { margin-top: 12px; gap: 6px; }
  html.pj-fit2 body.pj .pj-input, html.pj-fit2 body.pj .pj-row__in { height: 48px; }
  html.pj-fit2 body.pj .pj-pw__t { top: 4px; right: 4px; height: 40px; }
  html.pj-fit2 body.pj .pj-btn__in, html.pj-fit2 body.pj .pj-alt { height: 46px; }
  html.pj-fit2 body.pj .pj-code span { height: 50px; }
  html.pj-fit2 body.pj .pj-acc { padding: 8px 14px 8px 8px; }
  html.pj-fit2 body.pj .pj-help { margin-top: 10px; font-size: 13px; }
  html.pj-fit2 body.pj .pj-slot > .pj-mono, html.pj-fit2 body.pj .pj-view > .pj-mono:not(#ok-sub), html.pj-fit2 body.pj .pj-resend__spam { display: none; }
  html.pj-fit2 body.pj .pj-foot__links { display: none; }
  html.pj-fit3 body.pj.is-finish-page .pj-foot { display: none; }   /* prijava sa kartice: dno ne treba vlasniku */
  html.pj-fit3 body.pj.is-finish-page .pj-main .pj-mark { width: 112px; height: 112px; }
  html.pj-fit3 body.pj.is-finish-page .pj-main .pj-mark__track { padding: 7px; }
  html.pj-fit3 body.pj.is-finish-page .pj-main .pj-ic { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  html.pj-fit3 body.pj .pj-mark { width: 92px; height: 92px; }
  html.pj-fit3 body.pj .pj-mark__track { padding: 6px; }
  html.pj-fit3 body.pj .pj-ic { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
  html.pj-fit3 body.pj .pj-ic--mail, html.pj-fit3 body.pj .pj-ic--lock, html.pj-fit3 body.pj .pj-ic--key, html.pj-fit3 body.pj .pj-ic--user { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  html.pj-fit3 body.pj .pj-hdr__in { height: 46px; }
  html.pj-fit3 body.pj .pj-label { margin-top: 12px; }
  html.pj-fit3 body.pj .pj-h { font-size: 28px; }
  html.pj-fit3 body.pj .pj-text { font-size: 13px; }
  html.pj-fit3 body.pj .pj-help { display: none; }
  html.pj-fit3 body.pj .pj-input, html.pj-fit3 body.pj .pj-row__in { height: 44px; }
  html.pj-fit3 body.pj .pj-pw__t { height: 36px; }
  html.pj-fit3 body.pj .pj-btn__in, html.pj-fit3 body.pj .pj-alt { height: 44px; }
  html.pj-fit3 body.pj .pj-code span { height: 44px; font-size: 22px; }
  html.pj-fit3 body.pj .pj-below .pj-link { padding: 2px 6px; }
}

/* ---------- Ulasci (jednom, kratko; samo transform i opacity) ---------- */
.anim .pj-mark__float { animation: pj-pop .9s var(--pj-ease) both, pj-float 7s ease-in-out 1s infinite; }
.anim .pj-hdr, .anim .pj-foot { animation: pj-fade .8s ease .15s both; }
.pj-view.is-in > *, .pj-view.is-in .pj-form > * { animation: pj-up .65s var(--pj-ease) both; }
.pj-view.is-in > :nth-child(2), .pj-view.is-in .pj-form > :nth-child(1) { animation-delay: .06s; }
.pj-view.is-in > :nth-child(3), .pj-view.is-in .pj-form > :nth-child(2) { animation-delay: .12s; }
.pj-view.is-in > :nth-child(4), .pj-view.is-in .pj-form > :nth-child(3) { animation-delay: .18s; }
.pj-view.is-in > :nth-child(5), .pj-view.is-in .pj-form > :nth-child(4) { animation-delay: .24s; }
.pj-view.is-in > :nth-child(n+6), .pj-view.is-in .pj-form > :nth-child(n+5) { animation-delay: .3s; }
.pj-view.is-in .pj-form { animation: none; }
.pj-view.is-in > .pj-h { animation: none; }                    /* naslov ulazi slovo po slovo */
.pj-view.is-in > .pj-h--login { animation: pj-up .65s var(--pj-ease) .06s both; }   /* „Prijavi se. Potvrdi svoj sajt.“: ceo
.pj-view.is-in .pj-l { animation: pj-letter .8s var(--pj-ease) both; animation-delay: calc(.1s + var(--i, 0) * 28ms); }
.pj-view.is-out { animation: pj-out .2s ease both; }
.pj.is-leaving .pj-main > :not(.pj-mark), .pj.is-leaving .pj-hdr, .pj.is-leaving .pj-foot { animation: pj-out .3s ease both; }
.pj.is-leaving .pj-mark { animation: pj-away .34s cubic-bezier(.5, 0, .75, 0) both; }
@keyframes pj-pop { from { opacity: 0; transform: scale(.82); } }
@keyframes pj-float { 50% { transform: translateY(-5px); } }
@keyframes pj-fade { from { opacity: 0; } }
@keyframes pj-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes pj-letter { from { opacity: 0; transform: translateY(.45em); } }
@keyframes pj-out { to { opacity: 0; transform: translateY(-8px) scale(.985); } }
@keyframes pj-away { to { opacity: 0; transform: scale(1.14); } }

/* ---------- Laki režim i „smanji pokrete“: ništa se ne vrti, ne pulsira i ne lebdi; krugovi stoje ---------- */
html.pd-slow .pj-mark__edge, html.pd-slow .pj-btn__rim::before, html.pd-slow .pj-label i,
html.pd-slow .pj-ic--znak svg, html.pd-slow .pj-glow::before { animation: none !important; will-change: auto; }
html.pd-slow .anim .pj-mark__float { animation: pj-pop .9s var(--pj-ease) both; }
html.pd-slow .pj-mark__busy, html.pd-slow .pj-btn__in::before, html.pd-slow .pj-pings { display: none; }
html.pd-slow .pj-rings i { animation: none; will-change: auto; opacity: 1; transform: translate(-50%, -50%); }
html.pd-slow .pj-rings i:nth-child(1) { width: 260px; border-color: #34342F; }
html.pd-slow .pj-rings i:nth-child(2) { width: 460px; border-color: #2A2A27; }
html.pd-slow .pj-rings i:nth-child(3) { width: 720px; border-color: #222220; }
html.pd-slow .pj-rings i:nth-child(4) { width: 1040px; border-color: #1B1B19; }
@media (prefers-reduced-motion: reduce) {
  .pj *, .pj *::before, .pj *::after { animation: none !important; transition-duration: .01ms !important; }
  .pj-mark__busy, .pj-btn__in::before, .pj-pings { display: none; }
  .pj-rings i { opacity: 1; transform: translate(-50%, -50%); }
  .pj-rings i:nth-child(1) { width: 260px; }
  .pj-rings i:nth-child(2) { width: 460px; border-color: #2A2A27; }
  .pj-rings i:nth-child(3) { width: 720px; border-color: #222220; }
  .pj-rings i:nth-child(4) { width: 1040px; border-color: #1B1B19; }
}
