/* Netzwerk Login-Schalter 1.1.0. All frontend selectors are plugin-prefixed. */
.nls-bar {
    --nls-bg: #2f6f73;
    --nls-fg: #ffffff;
    --nls-radius: 10px;
    --nls-offset: 20px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: min(94vw, 100%);
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
}
.nls-bar .nls-button,
.nls-bar .nls-button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: var(--nls-radius);
    background: var(--nls-bg);
    color: var(--nls-fg);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 9px rgb(0 0 0 / 0.15);
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
    white-space: nowrap;
}
.nls-bar .nls-button:hover {
    color: var(--nls-fg);
    filter: brightness(1.12);
    transform: translateY(-1px);
    text-decoration: none;
}
.nls-bar .nls-button:focus-visible {
    outline: 3px solid #d6a946;
    outline-offset: 3px;
}
.nls-bar .nls-secondary,
.nls-bar .nls-secondary:visited {
    background: #ffffff;
    color: #263238;
    border-color: #cbd5d5;
}
.nls-bar .nls-secondary:hover { color: #263238; }
.nls-bar .nls-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}
.nls-context-floating {
    position: fixed;
    z-index: 2147482000;
    padding: 2px;
    isolation: isolate;
}
.nls-top-right { top: var(--nls-offset); right: var(--nls-offset); }
.nls-top-left { top: var(--nls-offset); left: var(--nls-offset); }
.nls-bottom-right { bottom: var(--nls-offset); right: var(--nls-offset); }
.nls-bottom-left { bottom: var(--nls-offset); left: var(--nls-offset); }
.nls-context-shortcode { margin: 4px 0; }
.nls-context-menu { vertical-align: middle; }
.nls-menu-item { list-style: none; }
.nls-menu-item .nls-bar { font-size: 13px; }
.nls-menu-item .nls-button { min-height: 35px; padding: 7px 9px; }
@media (max-width: 782px) {
    .nls-context-floating.nls-hide-mobile { display: none; }
    .nls-context-floating { max-width: calc(100vw - 22px); }
    .nls-context-floating .nls-button { min-height: 44px; padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .nls-bar .nls-button { transition: none; }
    .nls-bar .nls-button:hover { transform: none; }
}

/* Version 1.1 – self-contained, keyboard-accessible login popup. */
.nls-modal-root[hidden],
.nls-popup-error[hidden] { display: none !important; }
html.nls-modal-is-open { overflow: hidden; }
.nls-modal-root {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgb(15 23 30 / .62);
    overflow: auto;
}
.nls-dialog {
    width: min(100%, 430px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    position: relative;
    border-radius: 14px;
    background: #fff;
    color: #263238;
    padding: 28px;
    box-shadow: 0 22px 65px rgb(0 0 0 / .34);
    box-sizing: border-box;
    font: normal 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.nls-dialog h2 {
    color: #263238;
    margin: 0 35px 6px 0;
    padding: 0;
    font-weight: 700;
    font-size: 23px;
    line-height: 1.25;
}
.nls-dialog p { margin: 0 0 18px; color: #526366; }
.nls-dialog label:not(.nls-popup-remember) { display: block; font-weight: 600; margin: 13px 0 5px; }
.nls-dialog input[type="text"], .nls-dialog input[type="password"] {
    display: block;
    width: 100%;
    min-height: 43px;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid #b4c3c3;
    border-radius: 8px;
    background: #fff;
    color: #263238;
    box-shadow: none;
    font-size: 16px;
}
.nls-dialog .nls-popup-remember { display: flex; gap: 9px; align-items: center; margin: 15px 0; cursor: pointer; }
.nls-dialog .nls-popup-remember input { margin: 0; }
.nls-dialog .nls-popup-submit {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    background: var(--nls-bg, #2f6f73);
    color: var(--nls-fg, #fff);
    border: 0;
    border-radius: var(--nls-radius, 10px);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.nls-dialog .nls-popup-submit:disabled { opacity: .65; cursor: wait; }
.nls-dialog .nls-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #263238;
    cursor: pointer;
    font-size: 29px;
    line-height: 1;
}
.nls-dialog .nls-popup-close:hover { background: #eff3f2; }
.nls-dialog .nls-popup-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; }
.nls-dialog a, .nls-dialog a:visited { color: #266b70; text-decoration: underline; }
.nls-dialog .nls-popup-fallback { text-align: center; margin: 19px 0 0; font-size: 13px; }
.nls-dialog .nls-popup-error {
    margin: 13px 0;
    color: #982828;
    background: #fff1f0;
    padding: 9px 11px;
    border-left: 3px solid #c53939;
    border-radius: 3px;
}
.nls-dialog :focus-visible { outline: 3px solid #b08530; outline-offset: 3px; }
@media (max-width: 480px) {
    .nls-modal-root { padding: 10px; }
    .nls-dialog { padding: 20px; max-height: calc(100dvh - 20px); }
}
