@charset "utf-8";
/*
 * Logged-out pages. Login = Edithor 306 split layout on desktop (photo slideshow + stepped form),
 * the simple centred card on mobile. Error / invitation pages use only the card.
 */

/* ---------- Simple card (mobile login, other auth pages) ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--panel-2); }
.auth-panel { width: 100%; display: grid; place-items: center; }
.auth-karta { width: min(400px, 100%); }
.auth-logo { display: block; width: 150px; height: auto; margin: 0 auto 28px; }
.auth-logo-tmave { display: none; }
@media (prefers-color-scheme: dark) {
  html.motiv-system .auth-logo-svetle { display: none; }
  html.motiv-system .auth-logo-tmave { display: block; }
}
html.motiv-tmavy .auth-logo-svetle { display: none; }
html.motiv-tmavy .auth-logo-tmave { display: block; }
.auth-pata { margin-top: 24px; text-align: center; font-size: var(--fs-xs); color: var(--text-3); }

.auth-box { padding: 28px; }
.auth-box h1 { font-size: 18px; margin-bottom: 4px; }
.auth-box .hlava-popis { margin-bottom: 20px; }

/* ---------- Login form (shared) ---------- */
.auth-form {
  padding: 28px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.auth-sekce { animation: auth-sekce .35s var(--easing); }
@keyframes auth-sekce { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.auth-hlavicka { margin-bottom: 20px; }
.auth-hlavicka h1 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.auth-hlavicka p { margin: 0; color: var(--text-3); }

.auth-pole { margin-bottom: 16px; }
.auth-pole label { display: block; margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.auth-vstup:where(input) { min-height: 40px; }
.auth-heslo { position: relative; }
.auth-heslo .auth-vstup { padding-right: 46px; }
.auth-oko {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-sm); background: none; color: var(--text-3); cursor: pointer;
}
.auth-oko:hover { color: var(--text); background: var(--hover); }
.auth-oko .ikona { font-size: 19px; }

.auth-tlacitko {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 40px; padding: 8px 18px; border: 0; border-radius: var(--r);
  background: var(--accent); color: var(--na-accentu); font: 500 14px/1.2 var(--font);
  cursor: pointer; transition: background .15s, opacity .15s, transform .1s;
}
.auth-tlacitko:hover { background: var(--accent-2); }
.auth-tlacitko:active { transform: scale(.99); }
.auth-tlacitko:focus-visible { outline: 0; box-shadow: var(--focus); }
.auth-tlacitko.svetle { background: var(--field); color: var(--text-2); }
.auth-tlacitko.svetle:hover { background: var(--active); color: var(--text); }
.auth-tlacitko.cervene { background: var(--danger-soft); color: var(--danger-text); }
.auth-tlacitko.cervene:hover { background: color-mix(in srgb, var(--danger-soft), var(--danger) 8%); }
.auth-tlacitko .auth-prace { display: none; align-items: center; gap: 8px; }
.auth-tlacitko.pracuje { pointer-events: none; }
.auth-tlacitko.pracuje .auth-popis { display: none; }
.auth-tlacitko.pracuje .auth-prace { display: inline-flex; }
.auth-tocitko { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: auth-toc .7s linear infinite; }
@keyframes auth-toc { to { transform: rotate(360deg); } }
.auth-tlacitka { display: grid; gap: 10px; }

.auth-odkaz { display: block; margin: 14px auto 0; padding: 4px 8px; border: 0; background: none; color: var(--text-3); font: inherit; cursor: pointer; }
.auth-odkaz:hover { color: var(--accent-text); }

.auth-zprava {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 12px 14px;
  border-radius: var(--r); background: var(--danger-soft); color: var(--danger-text); font-weight: 500;
  animation: auth-sekce .25s var(--easing);
}
.auth-zprava .ikona { font-size: 19px; }

/* Remembered user */
.auth-ucet {
  display: grid; gap: 16px; width: 100%; margin-bottom: 12px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.auth-ucet:hover, .auth-ucet:focus-visible { border-color: var(--accent); box-shadow: 0 8px 24px light-dark(rgba(204, 24, 44, .1), rgba(0, 0, 0, .3)); outline: none; }
.auth-ucet-radek { display: flex; align-items: center; gap: 16px; min-width: 0; }
.auth-avatar {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 18px; font-weight: 600;
}
.auth-avatar.male { width: 40px; height: 40px; border-radius: 10px; font-size: 14px; }
.auth-ucet-info { display: block; min-width: 0; }
.auth-ucet-jmeno, .auth-ucet-email { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.auth-ucet-jmeno { font-size: 16px; font-weight: 600; color: var(--text); }
.auth-ucet-email { color: var(--text-3); }
.auth-ucet-akce {
  display: block; padding: 8px 12px; border-radius: var(--r-sm); background: var(--accent-soft);
  color: var(--accent-text); font-weight: 500; text-align: center; transition: background .15s, color .15s;
}
.auth-ucet:hover .auth-ucet-akce { background: var(--accent); color: var(--na-accentu); }

.auth-vybrany { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); }
.auth-vybrany .auth-ucet-info { flex: 1; }
.auth-vybrany .auth-ucet-jmeno { font-size: 14px; }
.auth-mini {
  flex: none; padding: 6px 12px; border: 0; border-radius: var(--r-sm); background: var(--panel);
  color: var(--text-2); font: 500 var(--fs-sm) var(--font); cursor: pointer;
}
.auth-mini:hover { color: var(--text); box-shadow: var(--shadow-1); }

.auth-kroky, .auth-vizual { display: none; }

/* Mobile / no split: both fields together, no steps (the current simple card). */
@media (max-width: 991.98px) {
  .auth-form .jen-kroky, .auth-ulozeny { display: none !important; }
  .auth-form .auth-novy { display: block !important; }
  .auth-form .krok-heslo .auth-hlavicka { display: none; }
  .auth-form .auth-sekce { animation: none; }
}
@media (max-width: 480px) {
  .auth { place-items: start center; padding-top: 10vh; background: var(--panel); }
  .auth-form { padding: 4px; border: 0; box-shadow: none; }
}

/* ---------- Desktop split (Edithor 306) ---------- */
@media (min-width: 992px) {
  html.auth-split body { background: var(--bg); }
  .auth-split .auth {
    grid-template-columns: 1fr 1fr; gap: 12px; place-items: stretch;
    height: 100vh; height: 100dvh; padding: 12px; background: var(--bg);
  }

  .auth-split .auth-vizual { display: block; position: relative; border-radius: 18px; overflow: hidden; background: #111; isolation: isolate; }
  .auth-slidy { position: absolute; inset: 0; }
  .auth-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 6s linear; }
  .auth-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .auth-slide.aktivni { opacity: 1; transform: scale(1); }
  .auth-vizual::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .2) 40%, rgba(0, 0, 0, 0) 70%);
  }
  .auth-popisek { position: absolute; left: 28px; right: 28px; bottom: 74px; z-index: 3; color: #fff; }
  .auth-popisek h2 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: #fff; animation: auth-vyjed .7s ease both; }
  .auth-popisek p { margin: 0; max-width: 520px; font-size: 14px; color: rgba(255, 255, 255, .82); animation: auth-vyjed .7s ease .1s both; }
  @keyframes auth-vyjed { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  .auth-zalozky { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 3; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 20px; }
  .auth-zalozka { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
  .auth-zalozka-stitek { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); transition: color .3s; }
  .auth-zalozka.aktivni .auth-zalozka-stitek { color: #fff; }
  .auth-zalozka-drazka { position: relative; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
  .auth-zalozka-vypln { position: absolute; inset: 0; width: 0; border-radius: 2px; background: #fff; }
  .auth-zalozka.aktivni .auth-zalozka-vypln { animation: auth-vypln 6s linear forwards; }
  .auth-zalozka.hotovo .auth-zalozka-vypln { width: 100%; }
  @keyframes auth-vypln { from { width: 0; } to { width: 100%; } }

  .auth-split .auth-panel { overflow-y: auto; padding: 24px; }
  .auth-split .auth-karta { width: 100%; max-width: 520px; }
  .auth-split .auth-logo { margin-bottom: 32px; }
  .auth-split .auth-form { padding: 0; border: 0; background: none; box-shadow: none; }
  .auth-split .auth-form[data-krok="ucet"] .krok-heslo,
  .auth-split .auth-form[data-krok="heslo"] .krok-ucet { display: none; }

  .auth-split .auth-kroky { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 40px; padding: 0; list-style: none; }
  .auth-krok { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
  .auth-krok-cislo {
    position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px;
    border-radius: 50%; background: var(--field); color: var(--text-3); font-size: 14px; font-weight: 700;
    transition: background .25s, color .25s, box-shadow .25s;
  }
  .auth-krok-fajfka { display: none; font-size: 18px; }
  .auth-krok.aktivni .auth-krok-cislo, .auth-krok.hotovo .auth-krok-cislo { background: var(--accent); color: var(--na-accentu); }
  .auth-krok.aktivni .auth-krok-cislo { box-shadow: 0 0 0 5px var(--accent-soft); }
  .auth-krok.hotovo .auth-krok-cislo-text { display: none; }
  .auth-krok.hotovo .auth-krok-fajfka { display: block; }
  .auth-krok:not(:last-child)::after {
    content: ""; position: absolute; top: 17px; left: calc(50% + 22px); width: calc(100% - 44px); height: 2px;
    background: var(--line); transition: background .25s;
  }
  .auth-krok.hotovo:not(:last-child)::after { background: var(--accent); }
  .auth-krok-titulek { font-size: 13px; font-weight: 700; line-height: 1.2; }
  .auth-krok-podtitulek { margin-top: 2px; font-size: 11px; color: var(--text-3); }
  .auth-krok.aktivni .auth-krok-titulek { color: var(--accent-text); }

  .auth-split .auth-hlavicka { margin-bottom: 32px; text-align: center; }
  .auth-split .auth-hlavicka h1 { font-size: 17.5px; margin-bottom: 6px; }
  .auth-split .auth-hlavicka p { font-size: 14px; }
  .auth-split .auth-pole { margin-bottom: 24px; }
  .auth-split .auth-pole label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
  .auth-split .auth-vstup {
    height: 46px; padding: 0 18px; border-color: transparent; background: var(--field);
    font-size: 15px; font-weight: 500;
  }
  .auth-split .auth-vstup:focus { background: var(--panel); border-color: var(--accent); }
  .auth-split .auth-heslo .auth-vstup { padding-right: 52px; }
  .auth-split .auth-tlacitko { min-height: 44px; }
  .auth-split .auth-tlacitko:not(.svetle, .cervene) { background: light-dark(#000, #f2f2f3); color: light-dark(#fff, #111); }
  .auth-split .auth-tlacitko:not(.svetle, .cervene):hover { background: light-dark(#22252f, #fff); }
  .auth-split .auth-zprava { margin-bottom: 24px; }
  .auth-split .auth-pata { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-slide, .auth-sekce, .auth-popisek h2, .auth-popisek p { transition: none; animation: none; }
}
