/* Přihlašovací stránka: dvousloupcový rozvrh jako bedigit hero —
   vlevo velká typografie, vpravo samotný vstup. Na mobilu pod sebou. */

body { min-height: 100svh; display: flex; flex-direction: column; }

.gate {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 32px;
  position: relative;
  z-index: 1;
}

/* — levý sloupec — */
.gate__brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.gate__mark { width: 30px; height: 30px; color: var(--accent); }
.gate__wordmark { font-size: 13px; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; }

.gate__eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-45);
}
.gate__eyebrow b { color: var(--accent); font-weight: 400; }
.gate__eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 120px; }

.gate h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 500;
}
.gate h1 em { font-style: normal; color: var(--ink-35); }

.gate__lede {
  margin: 26px 0 0;
  max-width: 34ch;
  font-size: 15.5px; line-height: 1.6;
  color: var(--ink-70);
}

.gate__meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; }
.gate__meta span {
  padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-45);
}

/* — pravý sloupec — */
.gate__card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg-raise) 88%, transparent);
  box-shadow: var(--shadow);
}

.gate__join {
  display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: 20px; padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 12px;
  font-size: 12.5px; line-height: 1.45;
  color: var(--ink-70);
}
.gate__join svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.gate__join b { font-family: var(--mono); letter-spacing: .1em; color: var(--ink); }

.gate__tabs {
  display: flex; gap: 2px;
  padding: 3px;
  margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: 999px;
}
.gate__tab {
  flex: 1;
  appearance: none; cursor: pointer;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-45);
  padding: 9px 12px;
  font: inherit; font-size: 10.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.gate__tab:hover { color: var(--ink-70); }
.gate__tab.is-active { background: var(--ink); color: var(--bg); }

.gate__field { position: relative; display: block; margin-bottom: 14px; }
.gate__field > span {
  display: block; margin-bottom: 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-45);
}
.gate__field input {
  width: 100%;
  border: 1px solid var(--line); border-radius: 12px;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 16px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s;
}
.gate__field input#password { padding-right: 46px; letter-spacing: .14em; }
.gate__field input::placeholder { color: var(--ink-25); letter-spacing: normal; }
.gate__field input:focus { border-color: var(--accent); }

.gate__reveal {
  position: absolute; right: 6px; top: 30px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0; border-radius: 9px;
  background: transparent; color: var(--ink-35);
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.gate__reveal:hover { color: var(--ink); background: var(--line-soft); }
.gate__reveal svg { width: 18px; height: 18px; }
.gate__reveal .off { display: none; }
.gate__reveal[aria-pressed="true"] .on { display: none; }
.gate__reveal[aria-pressed="true"] .off { display: block; }

.gate__hint {
  display: block; margin-top: 7px;
  font-style: normal; font-size: 11.5px; color: var(--ink-35);
}

.gate__card .btn { width: 100%; justify-content: center; margin-top: 6px; padding: 13px 20px; }
.gate__card .btn[disabled] { opacity: .55; cursor: progress; }

.gate__err {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 0 0; padding: 10px 13px;
  border: 1px solid color-mix(in srgb, #c5533f 45%, transparent);
  border-radius: 10px;
  font-size: 12.5px; color: #c5533f;
}
.gate__err svg { width: 15px; height: 15px; flex: none; }

.gate__foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 14px;
  max-width: 1080px; width: 100%; margin: 0 auto;
  padding: 0 32px calc(28px + env(safe-area-inset-bottom, 0px));
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-25);
}

@media (max-width: 860px) {
  .gate {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
    align-content: center;
  }
  .gate__brand { margin-bottom: 20px; }
  /* Na mobilu jde o co nejkratší cestu k formuláři — popis i štítky
     jsou dekorace, které by jen tlačily vstup pod ohyb. */
  .gate__lede, .gate__meta { display: none; }
  .gate__eyebrow { margin-bottom: 16px; }
  .gate__card { padding: 24px 20px; }
  .gate__field { margin-bottom: 12px; }
  .gate__foot { padding-left: 20px; padding-right: 20px; }
}
