/* ─────────────────────────────────────────────────────────────────────
   Prihlásenie, registrácia, obnova hesla, zmazaný účet (balansica, ADR-0017).
   Farby len z tokenov — stránka musí fungovať v motíve Mäta, Kešu aj Les.
   ───────────────────────────────────────────────────────────────────── */

.auth{ padding-top:24px; padding-bottom:48px; }

/* ── Formulár v strede ───────────────────────────────────────────────── */
.auth__main{ display:flex; align-items:center; justify-content:center; }
/* Prihlásenie a registrácia bez panelu (Alex 8. 11., plátno Prihlásenie zjednodušené, návrh B): jeden stĺpec
   v strede stránky, úvod na stred a nad nadpisom minca. Výška drží formulár približne v strede okna, pätička
   ostane pod ním. */
.auth__main--solo{ min-height:min(640px, calc(100svh - 200px)); }
.auth__intro--center{ align-items:center; text-align:center; }
.auth__mark .c-logo__mark{ display:block; width:64px; height:64px; margin-bottom:6px; }
.auth__col{ width:100%; max-width:440px; display:flex; flex-direction:column; gap:28px; }
.auth__intro{ display:flex; flex-direction:column; gap:10px; }
.auth__title{
  margin:0; font-family:var(--font-display); font-weight:800;
  font-size:clamp(36px,4.4vw,52px); line-height:1.05; letter-spacing:-.03em; color:var(--ink);
}
.auth__lead{ margin:0; font-size:17px; line-height:1.5; color:var(--muted); }
.auth__switch{ margin:0; font-size:var(--t-md); color:var(--muted); }
.auth__switch a, .auth__link{ font-weight:700; color:var(--brand-dark); }
.auth__switch a:hover, .auth__link:hover{ text-decoration:underline; text-underline-offset:3px; }

/* ── Formulár ────────────────────────────────────────────────────────── */
.auth__form{ display:flex; flex-direction:column; margin:0; }
.auth__label-row{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; }
.auth__label-row label{ font-size:14px; font-weight:700; color:var(--ink); }
.auth__label-row a{ font-size:14px; }
.auth__pwd{ position:relative; }
.auth__pwd .c-input{ padding-right:56px; }
.auth__eye{
  position:absolute; right:4px; top:4px; width:44px; height:44px; border:0; border-radius:var(--r-md);
  background:transparent; color:var(--muted); display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.auth__eye:hover{ color:var(--ink); }
.auth__eye .ti{ font-size:var(--t-lg); }
.auth__submit{ width:100%; margin-top:6px; }
.auth__note{ margin:14px 0 0; font-size:14px; line-height:1.5; color:var(--muted); text-align:center; }
.auth__note a{ font-weight:600; color:var(--brand-dark); }

/* chyba formulára — blok nad poľami */
.auth__alert{
  display:flex; align-items:flex-start; gap:10px; padding:14px 16px; border-radius:var(--r-xl);
  background:var(--danger-soft); border:1px solid var(--danger-line); font-size:var(--t-md); line-height:1.45;
}
.auth__alert .ti{ font-size:var(--t-lg); flex-shrink:0; }
.auth__alert p{ margin:0; }
.auth__errs{ display:flex; flex-direction:column; gap:2px; }

/* sila hesla — pásiky nastavuje register.js */
.auth__strength{ margin-top:4px; display:flex; align-items:center; gap:12px; }
.auth__bars{ flex-grow:1; display:flex; gap:6px; }
.auth__bars > div{ flex-grow:1; height:6px; border-radius:var(--r-pill); background:var(--line); transition:background .2s; }
.auth__strength-label{ font-size:var(--t-sm); color:var(--muted); }

/* ── Vodoznak mince v kartách (zmazaný účet, pozvánka) ───────────────── */
.auth__watermark{ position:absolute !important; right:-90px; bottom:-120px; opacity:.08; pointer-events:none; }
.auth__watermark .c-logo__mark{ width:380px; height:380px; }

.auth__tile-1{ background:var(--tile-1); color:var(--tile-1-ink); }
.auth__tile-2{ background:var(--tile-2); color:var(--tile-2-ink); }
.auth__tile-3{ background:var(--tile-3); color:var(--tile-3-ink); }
.auth__tile-4{ background:var(--tile-4); color:var(--tile-4-ink); }
.auth__tile-5{ background:var(--tile-5); color:var(--tile-5-ink); }

/* ── Jedna karta v strede (obnova hesla, zmazaný účet) ──────────────── */
.auth__center{ display:flex; justify-content:center; }
.auth__card{
  position:relative; overflow:hidden; width:100%; max-width:520px; padding:40px 44px; border-radius:32px;
  display:flex; flex-direction:column; gap:22px;
}
.auth__card > *{ position:relative; }
.auth__card--center{ align-items:center; text-align:center; }
.auth__card .auth__form{ width:100%; text-align:left; }
.auth__badge{ width:64px; height:64px; flex-shrink:0; border-radius:var(--r-2xl); display:flex; align-items:center; justify-content:center; }
.auth__badge .ti{ font-size:30px; }
.auth__badge--round{ width:76px; height:76px; border-radius:50%; border:1px solid var(--ok-line); background:var(--ok-soft); color:var(--ok-ink); }
.auth__badge--warn{ background:var(--amber-soft); color:var(--amber-ink); }
.auth__card-title{
  margin:0; font-family:var(--font-display); font-weight:800;
  font-size:clamp(var(--t-xl),3.4vw,36px); line-height:1.1; letter-spacing:-.02em; color:var(--ink);
}
.auth__card-text{ margin:6px 0 0; font-size:16px; line-height:1.6; color:var(--muted); }
.auth__card-text strong{ color:var(--ink); }
.auth__card--center .auth__card-text{ max-width:440px; }
.auth__steps{ margin:0; padding:18px 20px; list-style:none; display:flex; flex-direction:column; gap:12px; border-radius:var(--r-2xl); background:var(--bg2); }
.auth__steps li{ display:flex; align-items:center; gap:12px; font-size:var(--t-md); font-weight:600; color:var(--ink); }
.auth__step-num{
  width:28px; height:28px; flex-shrink:0; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--brand); color:var(--on-brand); font-size:var(--t-sm); font-weight:800;
}
.auth__back{ align-self:flex-start; min-height:44px; display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--brand-dark); }
.auth__back .ti{ font-size:18px; }
.auth__small{ margin:0; font-size:14px; line-height:1.6; color:var(--muted); }
/* Ochrana proti botom (ADR-0035): pasca a widget ALTCHA sú v components.css (okno Napíš nám ich má na každej stránke),
   tu zostala tichá rada pod prihlásením. */
.auth__hint{ margin:16px 0 0; font-size:14px; line-height:1.5; color:var(--muted); text-align:center; }
.auth__hint a{ font-weight:600; color:var(--brand-dark); }

/* ── Dvojstupňové overenie (ADR-0028) ────────────────────────────────── */
/* QR kód je čierny na bielej už v SVG (zabezpecenie.qr_svg) — inverzný kód
   v tmavom motíve by niektoré aplikácie neprečítali. Okolo neho rámik z tokenov. */
.auth__qr{ align-self:center; padding:10px; border:1px solid var(--line); border-radius:var(--r-2xl); background:var(--bg); }
.auth__qr-img{ display:block; width:200px; height:200px; }
.auth__key{
  margin:0; padding:12px 14px; border-radius:var(--r-lg); background:var(--bg2);
  font-family:ui-monospace, monospace; font-size:var(--t-md); letter-spacing:.06em;
  color:var(--ink); overflow-wrap:anywhere; user-select:all;
}
.auth__codes{
  margin:0; padding:16px 18px; list-style:none; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px 20px;
  border-radius:var(--r-2xl); background:var(--bg2);
  font-family:ui-monospace, monospace; font-size:17px; letter-spacing:.08em; color:var(--ink);
}

/* ── Mobil ───────────────────────────────────────────────────────────── */
@media (max-width:959px){
  .auth__watermark{ display:none; }
}
@media (max-width:767px){
  .auth{ padding-top:8px; padding-bottom:32px; }
  .auth__card{ padding:28px 20px; border-radius:var(--r-3xl); }
}
