/* public/css/login.css — prihlasovaci stranka (stavi na design-system.css) */
.lg-body { display: grid; place-items: center; padding: 28px 16px; overflow-x: hidden; }
.lg-orb { position: fixed; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .38; pointer-events: none; z-index: 0; }
.lg-orb--a { background: #6c3fc8; top: -160px; left: -140px; animation: lg-float 16s ease-in-out infinite; }
.lg-orb--b { background: #00d2d8; bottom: -200px; right: -160px; opacity: .26; animation: lg-float 19s ease-in-out infinite reverse; }
@keyframes lg-float { 50% { transform: translate(60px, 40px) scale(1.08); } }

.lg-wrap { position: relative; z-index: 1; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.lg-brand { display: flex; justify-content: center; min-height: 20px; }
.lg-logo { height: 58px; width: auto; filter: drop-shadow(0 10px 28px rgba(108, 63, 200, .45)); animation: lg-in .6s ease both; }

.lg-card {
  position: relative; width: 100%; padding: 30px 28px 26px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.085), rgba(255,255,255,.025));
  border: 1px solid var(--color-border-strong);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-lifted), inset 0 1px 0 rgba(255,255,255,.08);
  animation: lg-in .5s ease both;
}
.lg-card::before { /* jemny barevny okraj */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(108,63,200,.7), rgba(0,210,216,.35), rgba(224,86,160,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes lg-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.lg-step { display: none; flex-direction: column; gap: 18px; }
.lg-step.is-active { display: flex; animation: lg-step .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lg-step { from { opacity: 0; transform: translateX(18px); } }

.lg-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.lg-head h1 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
.lg-head p { margin: 2px 0 0; color: var(--text-secondary); font-size: var(--font-size-sm); }
.lg-head .gdh-help { margin-left: auto; }
.lg-badge { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: var(--grad-primary); box-shadow: var(--shadow-glow-primary); }
.lg-badge svg { width: 26px; height: 26px; }
.lg-badge--cyan { background: linear-gradient(135deg, #3a7bd5, #00d2d8); box-shadow: 0 10px 30px rgba(0,210,216,.3); }
.lg-badge--pink { background: linear-gradient(135deg, #e056a0, #ff00aa); box-shadow: 0 10px 30px rgba(224,86,160,.35); }
.lg-badge--green { background: var(--grad-success); box-shadow: var(--shadow-glow-success); }

.lg-field { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: var(--font-size-sm); color: var(--text-secondary); }
.lg-input { position: relative; display: flex; align-items: center; }
.lg-input > svg { position: absolute; left: 15px; width: 20px; height: 20px; color: var(--text-muted); pointer-events: none; transition: color .2s; }
.lg-input input { width: 100%; min-height: 52px; padding: 0 48px; border-radius: var(--radius-md); font: inherit; font-size: 17px; font-weight: 500;
  color: var(--text-primary); background: rgba(255,255,255,.04); border: 1px solid var(--color-border); transition: border-color .2s, background .2s, box-shadow .2s; }
.lg-input input:focus { outline: none; border-color: var(--color-primary); background: rgba(108,63,200,.08); box-shadow: 0 0 0 4px rgba(108,63,200,.18); }
.lg-input:focus-within > svg { color: var(--color-brand-cyan); }
.lg-eye { position: absolute; right: 8px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.lg-eye:hover { background: rgba(255,255,255,.07); color: var(--text-primary); }
.lg-eye svg { width: 20px; height: 20px; }

.lg-submit { width: 100%; min-height: 54px; font-size: 18px; margin-top: 4px; transition: transform .15s ease, box-shadow .2s, filter .2s; }
.lg-submit:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.lg-submit:active:not(:disabled) { transform: translateY(0) scale(.99); }
.lg-submit:disabled { opacity: .45; cursor: not-allowed; }
.lg-submit.is-busy span::after { content: ""; display: inline-block; width: 16px; height: 16px; margin-left: 10px; vertical-align: -2px;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: lg-spin .7s linear infinite; }
@keyframes lg-spin { to { transform: rotate(360deg); } }

/* sila hesla */
.lg-meter { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 4px; }
.lg-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--color-danger); transition: width .3s ease, background .3s ease; }
.lg-meter-label { font-weight: 500; color: var(--text-muted); font-size: 13px; }

/* 6 policek na kod */
.lg-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.lg-otp input { width: 100%; aspect-ratio: 1 / 1.18; min-width: 0; text-align: center; font: 700 26px/1 var(--font-family); color: var(--text-primary);
  border-radius: 14px; border: 1px solid var(--color-border-strong); background: rgba(255,255,255,.05);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.25); transition: border-color .15s, transform .15s, box-shadow .2s, background .2s; caret-color: var(--color-brand-cyan); }
.lg-otp input:focus { outline: none; border-color: var(--color-brand-cyan); background: rgba(0,210,216,.08); transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(0,210,216,.16); }
.lg-otp input.is-filled { border-color: rgba(108,63,200,.7); }
.lg-otp.is-error { animation: lg-shake .42s ease; }
.lg-otp.is-error input { border-color: var(--color-danger); }
@keyframes lg-shake { 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }

.lg-check { display: flex; align-items: center; gap: 10px; font-size: var(--font-size-sm); color: var(--text-secondary); cursor: pointer; user-select: none; }
.lg-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lg-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 2px; color: var(--color-brand-cyan);
  font: 600 14px var(--font-family); cursor: pointer; border-radius: 8px; transition: color .2s, opacity .2s; }
.lg-link:hover { color: #7ff5f8; }
.lg-link svg { width: 16px; height: 16px; }

.lg-steps { margin: 0; padding-left: 22px; color: var(--text-secondary); font-size: var(--font-size-sm); display: grid; gap: 4px; }
.lg-qr { align-self: center; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 6px rgba(255,255,255,.06); }
.lg-qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.lg-secret { display: flex; flex-direction: column; gap: 6px; }
.lg-secret-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.lg-secret-row { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px dashed var(--color-border-strong); }
.lg-secret-row code { flex: 1; font: 600 15px/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .06em; color: #cfd3ff; word-break: break-all; }
.lg-icon-btn { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--color-border); background: rgba(255,255,255,.05); color: var(--text-secondary); cursor: pointer; display: grid; place-items: center; transition: all .2s; }
.lg-icon-btn:hover { color: #fff; background: rgba(108,63,200,.35); border-color: transparent; transform: translateY(-1px); }
.lg-icon-btn svg { width: 18px; height: 18px; }

.lg-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lg-codes span { padding: 10px 0; text-align: center; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid var(--color-border);
  font: 700 17px ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .08em; color: #e9ebff; animation: lg-in .4s ease both; }
.lg-row { display: flex; gap: 10px; } .lg-row .gdh-btn { flex: 1; }

.lg-msg { min-height: 0; margin-top: 0; border-radius: 12px; font-size: var(--font-size-sm); font-weight: 600; transition: all .25s; overflow: hidden; max-height: 0; padding: 0 14px; }
.lg-msg.is-on { max-height: 120px; margin-top: 16px; padding: 12px 14px; }
.lg-msg--error { background: rgba(255,71,87,.14); color: #ff9aa4; border: 1px solid rgba(255,71,87,.35); }
.lg-msg--ok { background: rgba(22,217,122,.12); color: #72f0b4; border: 1px solid rgba(22,217,122,.3); }

.lg-foot { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; color: var(--text-muted); }
.lg-foot svg { width: 15px; height: 15px; color: var(--color-success); }

@media (max-width: 420px) {
  .lg-card { padding: 24px 18px 20px; }
  .lg-otp { gap: 6px; } .lg-otp input { font-size: 22px; border-radius: 11px; }
  .lg-qr img { width: 180px; height: 180px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
