/* Přihlašovací stránka – jediný styl dostupný bez přihlášení (app.css se servíruje až po přihlášení). */
:root {
  --bg: #eceff4; --surface: #ffffff; --border: #dfe3ea; --border-2: #c9d0da;
  --text: #0f172a; --muted: #64748b;
  --side: #0f172a; --side-text: #e2e8f0; --side-muted: #94a3b8;
  --brand: #2563eb; --brand-hover: #1d4ed8; --brand-50: #eff5ff; --brand-100: #dbe7fe;
  --red: #dc2626; --red-50: #fef2f2; --red-200: #fbcaca;
  --shadow-md: 0 4px 6px -2px rgba(15, 23, 42, .06), 0 12px 24px -8px rgba(15, 23, 42, .14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2 { margin: 0; line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-100); }

.brand-mark { width: 40px; height: 40px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.brand-mark .ic { width: 19px; height: 19px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .15s, transform .1s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .7; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .35); }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > span { font-size: 13.5px; font-weight: 650; }
.field input { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; outline: none; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 84px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 5px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.pw-toggle:hover { background: var(--brand-50); }

.login-page { min-height: 100vh; }
.login-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.login-brand {
  display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 64px 72px;
  background: radial-gradient(900px 500px at 0% 0%, rgba(59, 130, 246, .25), transparent 60%), var(--side); color: var(--side-text);
}
.login-logo { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; color: #fff; }
.login-brand h1 { max-width: 520px; font-size: 34px; font-weight: 750; line-height: 1.2; color: #fff; letter-spacing: -.02em; }
.login-brand p { max-width: 480px; font-size: 16px; color: var(--side-muted); }
.login-points { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.login-points li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--side-text); }
.login-points li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, .2); }
.login-card-wrap { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: min(420px, 100%); padding: 34px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-md); }
.login-card h2 { font-size: 24px; font-weight: 750; }
.login-card > .muted { margin: 4px 0 22px; }
.login-submit { width: 100%; margin-top: 6px; }
.login-note { margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.login-error { margin-bottom: 14px; padding: 10px 12px; border-radius: 9px; background: var(--red-50); border: 1px solid var(--red-200); color: var(--red); font-size: 13.5px; font-weight: 500; }

@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { padding: 36px 24px; gap: 12px; }
  .login-brand h1 { font-size: 24px; }
  .login-points, .login-brand p { display: none; }
}
