/* DSK – přihlašovací obrazovka intranetu. CSS převzato 1:1 z vieweru cen (styles.css, sekce Přihlášení + tokeny).
   Načítá se jen na samostatně renderované přihlašovací stránce (bez stylů šablony). */

/* ═══════════ Design tokens — Stavebniny DSK ═══════════ */
:root {
  --brand: #009fe2;          /* barva loga */
  --brand-strong: #0071a6;   /* tlačítka a odkazy (bílý text 5:1) */
  --brand-deep: #00507a;
  --brand-tint: #e5f5fc;
  --brand-tint-2: #cdeaf8;
  --navy: #0d2231;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --border: #e1e6eb;
  --border-strong: #c9d1d9;
  --text: #132330;
  --muted: #566573;
  --faint: #8a97a3;
  --green: #0b7a4b;
  --green-bg: #e3f4eb;
  --red: #b42318;
  --red-bg: #fdecea;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 48, 0.06);
  --shadow-lg: 0 20px 50px rgba(13, 34, 49, 0.18);
  --font: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--brand-strong); }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
[hidden] { display: none !important; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .1s;
}
.btn:hover { border-color: #9aa6b1; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 0; border-radius: 8px; background: transparent; color: var(--faint); cursor: pointer;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg); color: var(--text); }

/* Pole */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text); }
.input {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint-2); }
.input input { border: 0; outline: none; background: transparent; flex: 1; min-width: 0; font-size: 15px; }
.input svg { color: var(--faint); flex: none; }

/* ═══════════ Přihlášení ═══════════ */
.login {
  position: relative; min-height: 100%; overflow: hidden;
  display: grid; place-items: center; padding: 32px 16px;
  background: radial-gradient(1200px 600px at 85% -10%, #dff2fb 0%, transparent 60%), var(--bg);
}
/* šikmé plochy v pozadí opakují tvar loga */
.login .plane { position: absolute; background: var(--brand); transform-origin: center; pointer-events: none; }
.login .plane.p1 { width: 980px; height: 620px; right: -360px; bottom: -330px; transform: rotate(-9deg) skewX(-6deg); opacity: .95; }
.login .plane.p2 { width: 760px; height: 480px; right: -180px; bottom: -380px; transform: rotate(-9deg) skewX(-6deg); background: var(--brand-strong); opacity: .9; }
.login .plane.p3 { width: 520px; height: 330px; left: -260px; top: -200px; transform: rotate(-9deg) skewX(-6deg); opacity: .12; }
.login .plane.p4 { width: 260px; height: 160px; left: 9%; bottom: 8%; transform: rotate(-9deg) skewX(-6deg); opacity: .07; }
.login-wrap { position: relative; z-index: 1; width: 100%; max-width: 980px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.login-brand { display: flex; flex-direction: column; gap: 22px; }
.login-brand img { width: min(320px, 70vw); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 113, 166, .25)); }
.login-brand h1 { margin: 0; font-size: 38px; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; color: var(--navy); }
.login-brand p { margin: 0; font-size: 17px; color: var(--muted); max-width: 420px; }
.login-points { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.login-points li { display: flex; gap: 10px; align-items: center; color: #34434f; font-size: 15px; }
.login-points svg { color: var(--brand-strong); flex: none; }
.login-card {
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 34px 32px; display: flex; flex-direction: column; gap: 18px;
}
.login-card h2 { margin: 0; font-size: 22px; }
.login-card .sub { margin: -10px 0 4px; color: var(--muted); font-size: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-strong); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.alert.error { background: var(--red-bg); color: #8a1a12; }
.alert.info { background: var(--brand-tint); color: var(--brand-deep); }
.alert.ok { background: var(--green-bg); color: #0a6640; }
.alert svg { flex: none; margin-top: 1px; }
.login-foot { font-size: 12.5px; color: var(--faint); text-align: center; }
.login-forgot { align-self: center; font-size: 14px; margin-top: -6px; }
@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; gap: 28px; max-width: 440px; }
  .login-brand { align-items: center; text-align: center; }
  .login-brand h1 { font-size: 28px; }
  .login-points { display: none; }
  .login .plane.p1 { right: -520px; bottom: -420px; }
}
