/* Claude Monitor — sdilene styly prihlasovacich stranek (aipowereddevelopment-498) */
:root {
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #0d1117;
  color: #c9d1d9;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid #58a6ff; outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.is-hidden { display: none !important; }

/* ---------- Shell ---------- */
.auth-shell { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card {
  background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 28px 24px;
  width: 100%; max-width: 420px; box-shadow: 0 16px 48px rgba(1, 4, 9, 0.5);
}
.auth-card.is-wide { max-width: 460px; }
.auth-brand { font-size: 20px; font-weight: 600; color: #58a6ff; margin: 0; }
.auth-sub { font-size: 13px; color: #8b949e; margin-top: 4px; line-height: 1.5; }
.auth-ident { font-size: 12px; color: #8b949e; font-family: var(--mono); margin-top: 4px; word-break: break-all; }
.auth-foot { text-align: center; font-size: 11px; color: #484f58; margin-top: 16px; }
.auth-h2 { font-size: 16px; font-weight: 600; color: #c9d1d9; margin: 18px 0 0; }

/* ---------- Kroky ---------- */
.auth-steps {
  display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.5px; color: #484f58;
}
.auth-step.is-active { color: #c9d1d9; }
.auth-step.is-done { color: #2dd4bf; }
.auth-step-line { flex: 1 1 auto; height: 1px; background: #30363d; }

/* ---------- Pole ---------- */
.field { margin-top: 14px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 8px; }
.field-label { font-size: 12px; color: #8b949e; }
.input-dark {
  width: 100%; background: #0d1117; color: #c9d1d9; border: 1px solid #30363d; border-radius: 6px;
  padding: 10px 12px; font-family: inherit; font-size: 14px; min-height: 42px;
}
.input-dark:focus { border-color: #58a6ff; outline: none; box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.25); }
.input-dark.is-invalid { border-color: #f85149; }
.input-dark.is-readonly { background: #161b22; color: #8b949e; cursor: default; }
.input-dark[disabled] { opacity: 0.6; cursor: not-allowed; }
.pw-toggle {
  background: none; border: none; color: #58a6ff; font-size: 12px; cursor: pointer;
  font-family: inherit; padding: 2px 4px;
}
.field-error { color: #f87171; font-size: 12px; margin-top: 6px; }
.hint { color: #8b949e; font-size: 12px; margin-top: 6px; line-height: 1.45; }
.hint.is-warn { color: #fbbf24; }

/* ---------- OTP ---------- */
.otp-input {
  width: 100%; text-align: center; font-family: var(--mono); font-size: 22px; letter-spacing: 8px;
  padding: 12px; min-height: 52px;
}

/* ---------- Sila hesla ---------- */
.pw-meter { display: flex; gap: 4px; margin-top: 8px; }
.pw-seg { flex: 1; height: 4px; border-radius: 2px; background: #21262d; transition: background 0.15s ease; }
.pw-label { font-size: 12px; margin-top: 6px; min-height: 18px; }
.pw-rules { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; color: #8b949e; }
.pw-rules li { padding: 1px 0; }
.pw-rules li.ok::before { content: '\2713 '; color: #2dd4bf; }
.pw-rules li.off::before { content: '\2717 '; color: #484f58; }

/* ---------- 2FA ---------- */
.qr-box { background: #ffffff; border-radius: 8px; padding: 12px; width: 224px; margin: 16px auto 8px; }
.qr-box img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.auth-howto { margin: 8px 0 0 18px; padding: 0; font-size: 12px; color: #8b949e; line-height: 1.6; }
.secret-box {
  display: flex; align-items: center; gap: 8px; background: #0d1117; border: 1px solid #21262d;
  border-radius: 6px; padding: 10px 12px; margin-top: 8px;
}
.secret-value {
  flex: 1 1 auto; font-family: var(--mono); font-size: 14px; letter-spacing: 1px;
  color: #c9d1d9; word-break: break-all;
}
details > summary { color: #58a6ff; cursor: pointer; font-size: 13px; margin-top: 14px; }

/* ---------- Hlasky ---------- */
.auth-alert {
  border-radius: 6px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin-top: 14px;
  border-left: 3px solid;
}
.auth-alert.is-err { background: #3b1219; border-color: #f85149; color: #f87171; }
.auth-alert.is-warn { background: #3b3510; border-color: #fbbf24; color: #fbbf24; }
.auth-alert.is-info { background: #0c2d48; border-color: #58a6ff; color: #79c0ff; }
.auth-alert.is-ok { background: #132f26; border-color: #2dd4bf; color: #2dd4bf; }

/* ---------- Tlacitka a odkazy ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; border: 1px solid #30363d;
  background: #21262d; color: #c9d1d9; font-family: inherit; font-size: 13px; padding: 8px 14px;
  cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover:not([disabled]) { background: #30363d; }
.btn-primary { background: #238636; border-color: #2ea043; color: #ffffff; }
.btn-primary:hover:not([disabled]) { background: #2ea043; }
.btn-ghost { background: none; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-block { width: 100%; min-height: 42px; font-size: 14px; margin-top: 18px; justify-content: center; }
.auth-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 13px; }
.link-btn {
  background: none; border: none; color: #58a6ff; font-family: inherit; font-size: 13px;
  padding: 0; cursor: pointer; text-align: left;
}
.link-btn:hover { text-decoration: underline; }
.auth-back { display: inline-block; margin-top: 14px; font-size: 13px; color: #58a6ff; }
.auth-icon {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin: 4px auto 12px;
}
.auth-icon.is-ok { background: #1b4332; color: #2dd4bf; }
.auth-icon.is-warn { background: #3b3510; color: #fbbf24; }
.auth-icon.is-info { background: #0c2d48; color: #58a6ff; }
.center { text-align: center; }

.spinner {
  width: 12px; height: 12px; border: 2px solid rgba(201, 209, 217, 0.3); border-top-color: #c9d1d9;
  border-radius: 50%; display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .spinner { animation: authSpin 0.7s linear infinite; }
}
@keyframes authSpin { to { transform: rotate(360deg); } }

/* ---------- Mobil ---------- */
@media (max-width: 768px) {
  .auth-shell { align-items: flex-start; padding: 32px 12px 24px; }
  .auth-card { max-width: none; padding: 22px 18px; border-radius: 10px; }
  .btn-block, .input-dark, .otp-input { min-height: 44px; }
  .qr-box { width: min(224px, 100%); }
  .qr-box img { width: min(200px, calc(100vw - 92px)); height: auto; }
  .secret-box { flex-wrap: wrap; }
}
