/* ============================================================
   Prihlasovacia stranka — layouts/login.php + site/login.php
   (redizajn 2026-10-05, vzor "01 Prihlasenie v2"). Nacitava sa LEN v login
   layoute; vsetky selektory maju prefix .tc-login, aby sa nedotkli zvysku appky.
   ============================================================ */
.tc-login { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #222; background: #EFEFEF; -webkit-text-size-adjust: 100%; }
.tc-login-page {
  min-height: 100vh; min-height: 100dvh; box-sizing: border-box; border-top: 3px solid #7FB4D4;
  display: flex; padding: 24px 16px;
}
/* auto margin namiesto align-items:center — pri nizkom viewporte (landscape mobil)
   sa karta neoreze zhora, stranka sa normalne scrolluje */
.tc-login-wrap { width: 100%; max-width: 380px; margin: auto; }

/* karta */
.tc-login-card { background: #fff; border: 1px solid #C9E0ED; border-radius: 4px; box-shadow: 0 2px 10px rgba(16,34,46,.07); }
.tc-login-head { display: flex; align-items: center; justify-content: center; padding: 18px 28px; border-bottom: 1px solid #E6EEF4; }
.tc-login-logo { display: block; height: 52px; width: auto; max-width: 100%; object-fit: contain; }
.tc-login-body { padding: 22px 28px 26px; }
.tc-login-title { margin: 0 0 4px; font-size: 20px; line-height: 1.2; font-weight: bold; color: #222; }
.tc-login-hint { margin: 0 0 14px; font-size: 12px; color: #78868F; }
.tc-login-req { color: #C00; }

/* chyby: jeden riadok nad formularom + cerveny ram poli */
.tc-login-error {
  margin: 0 0 14px; padding: 8px 10px; background: #FDF0F0; border: 1px solid #E3B3B3;
  border-radius: 3px; color: #9A1C1C; font-size: 12px; line-height: 1.4;
}
.tc-login .has-error .tc-login-input { border-color: #D9A0A0; }

/* polia */
.tc-login-row { margin: 0 0 14px; }
.tc-login-label { display: block; margin: 0 0 5px; font-size: 12px; font-weight: bold; color: #3E4A54; }
.tc-login-input {
  box-sizing: border-box; display: block; width: 100%; height: 40px; padding: 0 10px;
  font: 13px Arial, Helvetica, sans-serif; color: #222; background: #fff;
  border: 1px solid #BFD0DB; border-radius: 3px; outline: 0;
}
.tc-login-input:focus { border-color: #0A6BA8; box-shadow: 0 0 0 3px rgba(10,107,168,.15); }

/* heslo: Zobrazit / Skryt vpravo v poli */
.tc-login-pw { position: relative; }
.tc-login-pw .tc-login-input { padding-right: 76px; }
.tc-login-pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: #0A6BA8; text-decoration: none; white-space: nowrap;
}
.tc-login-pw-toggle:hover { text-decoration: underline; }

/* captcha: obrazok 130x40 (generovany 260x80, 2x) + input v jednom riadku, pod tym "Novy kod" */
.tc-login-captcha { display: flex; align-items: center; gap: 10px; }
.tc-login-captcha-img {
  flex: 0 0 130px; width: 130px; height: 40px; object-fit: contain; display: block;
  background: #fff; border: 1px solid #BFD0DB; border-radius: 3px; cursor: pointer;
}
.tc-login-captcha .tc-login-input { flex: 1 1 auto; width: auto; min-width: 0; }
.tc-login-captcha-refresh { display: inline-block; margin-top: 6px; font-size: 12px; color: #0A6BA8; text-decoration: none; }
.tc-login-captcha-refresh:hover { text-decoration: underline; }

/* tlacidlo */
.tc-login-btn {
  display: block; width: 100%; height: 42px; margin: 0; border: 0; border-radius: 3px;
  background: #0A6BA8; color: #fff; font: bold 13px Arial, Helvetica, sans-serif; cursor: pointer;
}
.tc-login-btn:hover { background: #08578A; }
.tc-login-btn:focus-visible { outline: 2px solid #0A6BA8; outline-offset: 2px; }

/* pod kartou */
.tc-login-copy { margin-top: 14px; text-align: center; font-size: 11px; line-height: 1.5; color: #8A97A0; }
.tc-login-copy .sep { white-space: nowrap; }

/* globalne flash spravy (layouts/_flash.php), ak nejaka pride na login */
.tc-login .tc-flash { margin: 0 0 12px; padding: 8px 10px; border: 1px solid #BFD0DB; border-radius: 3px; background: #fff; font-size: 12px; color: #222; }
.tc-login .tc-flash.error, .tc-login .tc-flash.warning { background: #FDF0F0; border-color: #E3B3B3; color: #9A1C1C; }
.tc-login .tc-flash.success { background: #EEF8EE; border-color: #B7DBB7; color: #1E6B1E; }

/* ---------- responzivita ---------- */
/* mobil: 16px v poliach = iOS Safari pri fokuse nezoomuje; mensie odsadenia karty */
@media (max-width: 480px) {
  .tc-login-page { padding: 16px 12px; }
  .tc-login-head { padding: 14px 20px; }
  .tc-login-logo { height: 44px; }
  .tc-login-body { padding: 18px 20px 22px; }
  .tc-login-input { font-size: 16px; }
  .tc-login-pw-toggle, .tc-login-captcha-refresh, .tc-login-error { font-size: 13px; }
}
/* velmi uzke (<=360): captcha pod sebou — obrazok na celu sirku riadku, input pod nim */
@media (max-width: 360px) {
  .tc-login-captcha { flex-wrap: wrap; }
  .tc-login-captcha-img { flex: 1 1 100%; width: 100%; }
  .tc-login-captcha .tc-login-input { flex: 1 1 100%; width: 100%; }
  .tc-login-body { padding: 16px 16px 20px; }
}
/* nizky viewport (landscape mobil): tesnejsie, aby sa karta zmestila bez zbytocneho scrollu */
@media (max-height: 560px) {
  .tc-login-page { padding: 12px 16px; }
  .tc-login-head { padding: 10px 20px; }
  .tc-login-logo { height: 40px; }
  .tc-login-body { padding: 14px 24px 18px; }
  .tc-login-row { margin-bottom: 10px; }
  .tc-login-hint { margin-bottom: 10px; }
  .tc-login-copy { margin-top: 10px; }
}

/* krok 2 (site/hash): odkaz pod tlacidlom */
.tc-login-foot { margin: 14px 0 0; text-align: center; font-size: 12px; }
.tc-login-foot a { color: #0A6BA8; text-decoration: none; }
.tc-login-foot a:hover { text-decoration: underline; }
