/* Přihlašovací stránka brány. Barvy sem doplní server z BRANDING (env) — stránka
   musí fungovat DŘÍV, než se kdokoli dostane k tokens.css, takže si tokeny brandkitu
   natáhnout nemůže. Jedna image obslouží víc kitů; liší se jen .env. */
:root {
  --page-bg: #252525;
  --card-bg: #1E54AA;
  --ink: #FFFFFF;
  --accent: #48BDFF;
  --button-bg: #E71D36;
  --button-bg-hover: #D10023;
  --button-ink: #FFFFFF;
  --focus: #D10023;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--page-bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
.card {
  width: 100%;
  max-width: 26rem;
  background: var(--card-bg);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}
.brand { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 2rem; }
.brand__name { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.14em; color: #fff; }
.brand__kit { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; color: var(--accent); }

h1 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.5rem; }
.lead { color: color-mix(in srgb, var(--ink) 75%, transparent); margin-bottom: 1.75rem; }

.btn {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: var(--button-ink);
  background: var(--button-bg);
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
}
.btn:hover { background: var(--button-bg-hover); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn--ghost {
  margin-top: 0.75rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid rgb(255 255 255 / 0.25);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.06); }

.msg { min-height: 1.5rem; margin-top: 1rem; font-size: 0.9rem; }
.msg--err { color: #F0A08C; }
.msg--ok { color: #A9C6A0; }

.note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
