/* Prihlasovacie okno (partials/header/signin-signup-modal.php), prefix .lm-* */
.lm { --lm-navy: #1e2348; --lm-navy-hover: #2c3366; --lm-ink: #0f172a; --lm-muted: #64748b; --lm-border: #d5dce6; --lm-err: #b42318; }
.lm .lm-dialog { max-width: 820px; }
/* klik vedla okna nic nerobi - bez "poskocenia" Bootstrapu */
.lm.modal-static .lm-dialog { transform: none; }

.lm .lm-content {
    position: relative; display: flex; flex-direction: row; overflow: hidden;
    border: 0; border-radius: 24px; background: #fff; color: var(--lm-ink);
    box-shadow: 0 24px 64px rgba(15, 23, 42, .28);
}

.lm-side {
    flex: 0 0 320px; display: flex; flex-direction: column; padding: 40px 32px; color: #fff;
    background: radial-gradient(120% 80% at 100% 0, #3b4684 0, rgba(59, 70, 132, 0) 60%), linear-gradient(160deg, #1e2348, #141833);
}
.lm-logo { width: 180px; height: auto; mix-blend-mode: screen; }
.lm-side-title { margin: auto 0 20px; padding-top: 40px; font-size: 1.375rem; font-weight: 600; line-height: 1.3; color: #fff; }
.lm-list { margin: 0; padding: 0; list-style: none; }
.lm-list li { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .9375rem; color: #dbe1f1; }
.lm-list svg { flex: none; padding: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; }

.lm-main { flex: 1 1 auto; min-width: 0; padding: 44px 40px 36px; }
.lm-view { display: none; }
.lm-view.is-active { display: block; animation: lm-in .2s ease-out; }
@keyframes lm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lm-title { margin: 0 40px 6px 0; font-size: 1.625rem; font-weight: 700; line-height: 1.2; color: var(--lm-ink); }
.lm-sub { margin: 0 0 24px; font-size: .9375rem; color: var(--lm-muted); }

.lm-close {
    position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f1f5f9; color: #475569; transition: background-color .15s;
}
.lm-close:hover { background: #e2e8f0; color: var(--lm-ink); }

.lm-field { margin-bottom: 16px; }
.lm-label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 600; color: #334155; }
.lm-input {
    display: block; width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--lm-border); border-radius: 12px;
    background: #fff; color: var(--lm-ink); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.lm-input::placeholder { color: #94a3b8; }
.lm-input:hover { border-color: #b6c1d0; }
.lm-input:focus { outline: 0; border-color: var(--lm-navy); box-shadow: 0 0 0 4px rgba(30, 35, 72, .12); }
/* automaticke vyplnenie v Chrome bez modreho pozadia */
.lm-input:-webkit-autofill, .lm-input:-webkit-autofill:hover, .lm-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--lm-ink); -webkit-box-shadow: 0 0 0 1000px #fff inset;
}
.lm-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(30, 35, 72, .12); }

.lm-password { position: relative; }
.lm-password .lm-input { padding-right: 52px; }
.lm-eye {
    position: absolute; top: 5px; right: 5px; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--lm-muted);
}
.lm-eye:hover { background: #f1f5f9; color: var(--lm-ink); }
.lm-eye-off, .lm-eye[aria-pressed="true"] .lm-eye-on { display: none; }
.lm-eye[aria-pressed="true"] .lm-eye-off { display: block; }

.lm-error { display: none; margin-top: 6px; font-size: .8125rem; color: var(--lm-err); }
.lm-field.is-invalid .lm-input { border-color: var(--lm-err); }
.lm-field.is-invalid .lm-error { display: block; }

.lm-link { padding: 0; border: 0; background: none; color: var(--lm-navy); font-size: .875rem; font-weight: 600; }
.lm-link:hover, .lm-register a:hover { text-decoration: underline; }
.lm-forgot { display: block; margin: -4px 0 20px auto; }

.lm-submit {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; padding: 0 20px;
    border: 0; border-radius: 12px; background: var(--lm-navy); color: #fff; font-size: 1rem; font-weight: 600; transition: background-color .15s;
}
.lm-submit:hover { background: var(--lm-navy-hover); }
.lm-submit:disabled { opacity: .75; cursor: default; }
.lm-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: lm-spin .7s linear infinite; }
.lm-submit.is-loading .lm-spinner { display: block; }
@keyframes lm-spin { to { transform: rotate(360deg); } }

.lm-register { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #e8ecf2; text-align: center; font-size: .9375rem; color: var(--lm-muted); }
.lm-register a { font-weight: 600; color: var(--lm-navy); }

.lm-close:focus-visible, .lm-eye:focus-visible, .lm-link:focus-visible, .lm-submit:focus-visible, .lm-register a:focus-visible { outline: 2px solid #4f5fb8; outline-offset: 2px; }

@media (max-width: 767.98px) {
    .lm .lm-dialog { max-width: 460px; margin-left: auto; margin-right: auto; padding: 0 12px; }
    .lm-side { display: none; }
    .lm-main { padding: 32px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .lm-view.is-active { animation: none; }
}
