/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/* Label/tag denoting the user that shared a connection */
.jdbc-share-tag {

    background: #0095ff;
    padding: 0.25em;

    -moz-border-radius:    0.25em;
    -webkit-border-radius: 0.25em;
    -khtml-border-radius:  0.25em;
    border-radius:         0.25em;

    color: white;
    font-size: 0.75em;
    font-weight: bold;

}
/*
 * ============================================================================
 * Apache Guacamole — Custom Modern Light Style (Glassmorphism)
 * ============================================================================
 * Чистый CSS, без JavaScript. Светлая тема в стиле glassmorphism
 * с мягкими градиентами, тенями и полупрозрачностью.
 * ============================================================================
 */

/* ============================================================================
   0. CSS ПЕРЕМЕННЫЕ — Светлая тема
   ============================================================================ */
:root {
    --bg-page: linear-gradient(135deg, #e0e7ff 0%, #eef2ff 25%, #f8fafc 50%, #eef2ff 75%, #e0e7ff 100%);
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-solid: #ffffff;
    --bg-input: rgba(255, 255, 255, 0.7);
    --bg-input-hover: rgba(255, 255, 255, 0.85);
    --bg-input-focus: rgba(255, 255, 255, 0.95);
    --bg-hover: rgba(99, 102, 241, 0.06);
    --bg-active: rgba(99, 102, 241, 0.1);
    --bg-header: rgba(255, 255, 255, 0.88);
    --bg-sidebar: rgba(248, 250, 252, 0.95);
    --bg-table-header: rgba(99, 102, 241, 0.06);
    --bg-table-row-hover: rgba(99, 102, 241, 0.05);
    --bg-table-row-alt: rgba(0, 0, 0, 0.015);
    --bg-modal: rgba(255, 255, 255, 0.92);
    --bg-modal-overlay: rgba(15, 23, 42, 0.25);
    --bg-notification: rgba(255, 255, 255, 0.95);
    --bg-dropdown: rgba(255, 255, 255, 0.98);
    --bg-tab-active: rgba(99, 102, 241, 0.08);

    --text-primary: rgba(15, 23, 42, 0.9);
    --text-secondary: rgba(15, 23, 42, 0.6);
    --text-muted: rgba(15, 23, 42, 0.42);
    --text-placeholder: rgba(15, 23, 42, 0.35);
    --text-heading: #1e1b4b;
    --text-link: #4f46e5;
    --text-link-hover: #3730a3;

    --border-primary: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.3);
    --border-focus: rgba(99, 102, 241, 0.5);
    --border-card: rgba(99, 102, 241, 0.12);

    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #6366f1 100%);
    --accent-shadow: rgba(79, 70, 229, 0.2);
    --accent-shadow-hover: rgba(79, 70, 229, 0.35);
    --accent-glow: rgba(99, 102, 241, 0.12);

    --openid-glow: rgba(255, 152, 0, 0.1);
    --openid-border: rgba(255, 152, 0, 0.12);

    --shadow-card: 0 8px 32px rgba(99, 102, 241, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-modal: 0 16px 48px rgba(99, 102, 241, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);

    --divider-color: rgba(99, 102, 241, 0.15);
    --card-highlight: rgba(99, 102, 241, 0.25);
}

/* ============================================================================
   1. ФОН СТРАНИЦЫ
   ============================================================================ */
body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    background: var(--bg-page) !important;
    background-attachment: fixed !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
    color: var(--text-primary) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Декоративные фоновые круги (glassmorphism-стиль) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        radial-gradient(ellipse 600px 600px at 20% 30%, rgba(99, 102, 241, 0.08), transparent),
        radial-gradient(ellipse 500px 500px at 80% 70%, rgba(168, 85, 247, 0.06), transparent),
        radial-gradient(ellipse 400px 400px at 60% 20%, rgba(59, 130, 246, 0.05), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ============================================================================
   2. КОНТЕЙНЕР ЛОГИНА — Flex
   ============================================================================ */
.login-ui {
    position: absolute !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 20 !important;
    background: transparent !important;
    overflow: visible !important;
}

.login-ui .login-dialog-middle {
    display: block !important;
    text-align: center !important;
    width: auto !important;
    height: auto !important;
}

/* ============================================================================
   3. КАРТОЧКА ВХОДА — Glassmorphism (светлая)
   ============================================================================ */
.login-ui .login-dialog.notification {
    max-width: 420px !important;
    display: inline-block !important;
    padding: 2.5em 2.5em 2em !important;
    font-size: 1em !important;
    border: 1px solid var(--border-card) !important;
    border-radius: 24px !important;
    box-shadow: var(--shadow-card) !important;
    background: var(--bg-card) !important;
    backdrop-filter: blur(20px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
    position: relative !important;
    overflow: visible !important;
    animation: loginFadeIn 0.6s cubic-bezier(0.4,0,0.2,1) forwards;
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.login-ui .login-dialog.notification::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-highlight), transparent);
    border-radius: 50%;
}

.login-ui .login-dialog.notification:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

@keyframes loginFadeIn {
    0%   { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================================
   4. ЛОГОТИП — Full Docs
   Для замены логотипа: замените data:image/png;base64,... ниже на свой
   (конвертируйте PNG в base64: base64 -w0 logo.png)
   ============================================================================ */
.login-ui .login-dialog .logo {
    width: 6em !important;
    height: 6em !important;
    margin: 0 auto 0.6em !important;
    display: block !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-radius: 14px !important;
    background-image: url("https://help.fulldocs.ru/fulldocs-logo-128.png") !important;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.15));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.login-ui .login-dialog .logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(99, 102, 241, 0.25));
}

/* ============================================================================
   5. ЗАГОЛОВОК И ВЕРСИЯ — ЗАМЕНА НАЗВАНИЯ
   ============================================================================ */

/* ---------------------------------------------------------------
   КАК ПОМЕНЯТЬ НАЗВАНИЕ:
   Замените "Full Docs" в content: 'FULL DOCS' ниже на своё название.
   Также замените в html/title-patch.html тег <title>.
   --------------------------------------------------------------- */

.login-ui .login-dialog .version {
    padding: 0.2em 0 0.6em !important;
}

/* Скрываем оригинальный текст "APACHE GUACAMOLE" */
.login-ui .login-dialog .version .app-name {
    font-size: 0 !important;
    line-height: 1 !important;
    visibility: hidden !important;
    position: relative !important;
    display: block !important;
    text-align: center !important;
}

/* Показываем кастомное название */
.login-ui .login-dialog .version .app-name::after {
    content: 'FULL DOCS';
    visibility: visible !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    font-size: 1.15em !important;
    color: var(--text-heading) !important;
    letter-spacing: 3px !important;
    display: block !important;
}

.login-ui .login-dialog .version .version-number {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    color: var(--text-muted) !important;
    background: none !important;
    font-size: 0.55em !important;
    text-align: center !important;
    margin-top: 0.2em;
    letter-spacing: 1px;
}

/* ============================================================================
   5b. ЗАМЕНА НАЗВАНИЯ В ОСТАЛЬНОМ ИНТЕРФЕЙСЕ
   ============================================================================ */

/* Скрываем "Guacamole" в верхнем заголовке (header) */
.header .logo,
[class*="header"] [class*="logo"],
[class*="menu-bar"] [class*="logo"] {
    font-size: 0 !important;
    position: relative !important;
}

.header .logo::after,
[class*="header"] [class*="logo"]::after,
[class*="menu-bar"] [class*="logo"]::after {
    content: 'Full Docs';
    font-size: 1em !important;
    font-weight: 600 !important;
    color: var(--text-heading) !important;
    letter-spacing: 1px !important;
}

/* Заголовок страницы (после входа) — h1 в контенте */
.page h1, .content h1,
#content h1 {
    font-size: 0 !important;
    position: relative !important;
    line-height: 1.4 !important;
}

.page h1::after, .content h1::after,
#content h1::after {
    content: 'Full Docs';
    font-size: 1.5em !important;
    font-weight: 700 !important;
    color: var(--text-heading) !important;
}

/* Замена в sidebar/навигации */
[class*="sidebar"] h1,
[class*="sidebar"] h2,
[class*="sidebar"] .title {
    font-size: 0 !important;
    position: relative !important;
    line-height: 1.4 !important;
}

[class*="sidebar"] h1::after,
[class*="sidebar"] h2::after,
[class*="sidebar"] .title::after {
    content: 'Full Docs';
    font-size: 1em !important;
    font-weight: 700 !important;
    color: var(--text-heading) !important;
}

/* Замена текста "Guacamole" в других заголовках/подписях */
[class*="connection-group"] .header,
[class*="group-header"] {
    color: var(--text-heading) !important;
}

/* ============================================================================
   6. ПОЛЯ ВВОДА
   ============================================================================ */
.login-ui .login-dialog .login-fields {
    vertical-align: middle !important;
    margin-top: 0.4em;
}

.login-ui .login-dialog .login-fields input,
.login-ui .login-dialog .login-fields .labeled-field input {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.6em !important;
    padding: 0.75em 1em 0.75em 2.6em !important;
    border: 1px solid var(--border-primary) !important;
    border-radius: 12px !important;
    background: var(--bg-input) !important;
    color: var(--text-primary) !important;
    font-size: 0.9em !important;
    font-family: inherit !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    box-sizing: border-box !important;
}

.login-ui .login-dialog .login-fields input::placeholder {
    color: var(--text-placeholder) !important;
}

.login-ui .login-dialog .login-fields input:hover {
    border-color: var(--border-hover) !important;
    background: var(--bg-input-hover) !important;
}

.login-ui .login-dialog .login-fields input:focus {
    border-color: var(--border-focus) !important;
    background: var(--bg-input-focus) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

.login-ui .login-dialog .login-fields .labeled-field {
    position: relative;
}

.login-ui .login-dialog .login-fields .labeled-field::before {
    position: absolute;
    left: 0.9em; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95em;
    z-index: 1;
    pointer-events: none;
    transition: color 0.3s ease;
}

.login-ui .login-dialog .login-fields .labeled-field:nth-child(1)::before {
    content: '\1F464';
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
}

.login-ui .login-dialog .login-fields .labeled-field:nth-child(2)::before {
    content: '\1F512';
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
}

.login-ui .login-dialog .login-fields .labeled-field:focus-within::before {
    color: var(--text-link);
}

.login-ui .login-dialog .login-fields .labeled-field .field-header {
    color: var(--text-secondary) !important;
    font-size: 0.7em !important;
}

/* ============================================================================
   7. КНОПКА «ВХОД»
   ============================================================================ */
.login-ui .login-dialog .buttons {
    text-align: center !important;
    margin-top: 0.8em !important;
}

.login-ui .login-dialog .buttons input[type="submit"] {
    width: 100% !important;
    padding: 0.75em !important;
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.9em !important;
    font-family: inherit !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    box-shadow: 0 4px 15px var(--accent-shadow) !important;
    position: relative;
    overflow: hidden;
}

.login-ui .login-dialog .buttons input[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.login-ui .login-dialog .buttons input[type="submit"]:hover {
    background: var(--accent-gradient-hover) !important;
    box-shadow: 0 6px 25px var(--accent-shadow-hover) !important;
    transform: translateY(-1px);
}

.login-ui .login-dialog .buttons input[type="submit"]:hover::before {
    left: 100%;
}

.login-ui .login-dialog .buttons input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px var(--accent-shadow) !important;
}

.login-ui .login-dialog .buttons input[type="submit"]:disabled {
    opacity: 0.6; cursor: not-allowed; transform: none;
}

/* ============================================================================
   8. SSO КОНТЕЙНЕР
   ============================================================================ */
.login-ui .sso-providers {
    position: relative !important;
    bottom: auto !important; left: auto !important;
    right: auto !important; top: auto !important;
    float: none !important; padding: 0 !important;
    margin: 1.2em 0 0 0 !important;
    text-align: center !important;
    width: auto !important; min-width: 260px !important; max-width: 420px !important;
    color: var(--text-muted) !important;
    font-size: 0.75em !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    display: block !important; clear: both !important;
}

.login-ui .sso-providers::before {
    content: ''; display: block; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--divider-color), transparent);
    margin-bottom: 1em;
}

/* ============================================================================
   9. КНОПКА OPENID
   ============================================================================ */
.sso-providers ul.sso-provider-list,
.sso-providers ul {
    list-style: none !important; display: block !important;
    margin: 0.6em 0 0 0 !important; padding: 0 !important;
    text-align: center !important; width: 100% !important;
}

.sso-providers li, .sso-provider {
    display: block !important; margin: 0 !important; padding: 0 !important;
}

.sso-providers li::before, .sso-provider::before {
    content: none !important; display: none !important;
}

.sso-provider-openid a, .sso-provider a {
    display: flex !important; align-items: center !important;
    justify-content: center !important; gap: 0.5em !important;
    width: 100% !important; padding: 0.75em 1.2em !important;
    margin: 0 !important; background: rgba(255, 255, 255, 0.5) !important;
    color: var(--text-primary) !important;
    text-decoration: none !important; font-weight: 500 !important;
    font-size: 0.95em !important; font-family: inherit !important;
    letter-spacing: 0.3px !important;
    border: 1.5px solid var(--border-primary) !important;
    border-radius: 12px !important; cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    box-sizing: border-box !important; position: relative; overflow: hidden;
}

.sso-provider-openid a::before, .sso-provider a::before {
    content: ''; display: inline-block !important;
    width: 18px; height: 18px; flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FF9800' d='M21.5 4L21.5 44'/%3E%3Cpath fill='none' stroke='%23FF9800' stroke-width='4' stroke-linecap='round' d='M21.5 6C13 6 6 11 6 17s7 11 15.5 11S37 23 37 17 30 6 21.5 6z'/%3E%3Cpath fill='%23FF9800' d='M39 17c0 8.3-7.8 15-17.5 15S4 25.3 4 17c0-3.2 1.2-6.2 3.3-8.6'/%3E%3Ccircle fill='%23FF9800' cx='39' cy='17' r='3'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
    background-position: center; transition: transform 0.3s ease;
}

.sso-provider-openid a:hover, .sso-provider a:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: var(--border-hover) !important;
    box-shadow: 0 4px 20px var(--openid-glow), 0 0 0 1px var(--openid-border) !important;
    transform: translateY(-1px);
}

.sso-provider-openid a:hover::before, .sso-provider a:hover::before {
    transform: rotate(15deg) scale(1.1);
}

.sso-provider-openid a:active, .sso-provider a:active {
    transform: translateY(0);
}

.sso-provider-openid a:focus-visible, .sso-provider a:focus-visible {
    outline: 2px solid var(--border-focus); outline-offset: 2px;
}

/* ============================================================================
   10. ГЛОБАЛЬНЫЕ СТИЛИ ТЕКСТА
   ============================================================================ */
body, .page, .content, #content,
div, span, p, li, td, th, label {
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6,
.header, .section-header,
[class*="header"], [class*="title"] {
    color: var(--text-heading) !important;
}

.caption, .description, .help-text,
[class*="description"], [class*="caption"],
[class*="subtitle"], [class*="note"] {
    color: var(--text-secondary) !important;
}

a, a:link, a:visited {
    color: var(--text-link) !important;
    transition: color 0.3s ease !important;
}

a:hover, a:focus {
    color: var(--text-link-hover) !important;
}

/* ============================================================================
   11. НАВИГАЦИЯ И SIDEBAR
   ============================================================================ */
.header, [class*="menu-bar"], [class*="top-bar"],
nav, .nav {
    background: var(--bg-header) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border-primary) !important;
    color: var(--text-primary) !important;
}

[class*="sidebar"], [class*="side-panel"],
[class*="connection-group"], [class*="group-header"] {
    background: var(--bg-sidebar) !important;
    color: var(--text-primary) !important;
}

[class*="sidebar"] a, [class*="sidebar"] span {
    color: var(--text-secondary) !important;
}

[class*="sidebar"] a:hover, [class*="sidebar"] .active {
    color: var(--text-primary) !important;
    background: var(--bg-hover) !important;
}

/* ============================================================================
   12. ТАБЛИЦЫ
   ============================================================================ */
table { color: var(--text-primary) !important; }
thead, th, [class*="table-header"], [class*="table"] th {
    background: var(--bg-table-header) !important;
    color: var(--text-heading) !important;
    border-bottom: 1px solid var(--border-primary) !important;
}
td { color: var(--text-primary) !important; border-bottom: 1px solid var(--border-primary) !important; }
tr:hover td { background: var(--bg-table-row-hover) !important; }
tr:nth-child(even) td { background: var(--bg-table-row-alt) !important; }

/* ============================================================================
   13. ФОРМЫ — Глобально
   ============================================================================ */
input[type="text"], input[type="password"],
input[type="email"], input[type="number"],
input[type="search"], input[type="url"],
textarea, select {
    background: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-primary) !important;
    border-radius: 8px !important;
    padding: 0.5em 0.75em !important;
    font-family: inherit !important;
    transition: all 0.3s ease !important;
}

input:hover, textarea:hover, select:hover {
    border-color: var(--border-hover) !important;
    background: var(--bg-input-hover) !important;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--border-focus) !important;
    background: var(--bg-input-focus) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    outline: none !important;
}

input::placeholder, textarea::placeholder { color: var(--text-placeholder) !important; }

label, .field-label, [class*="field-label"],
[class*="label"], .labeled-field .field-header {
    color: var(--text-secondary) !important;
}

select option {
    background: var(--bg-card-solid) !important;
    color: var(--text-primary) !important;
}

/* ============================================================================
   14. КНОПКИ — Глобально
   ============================================================================ */
button, input[type="submit"], input[type="button"],
a.button, .button, [class*="btn"] {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.5em 1.2em !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

button:hover, input[type="submit"]:hover, a.button:hover, .button:hover {
    background: var(--accent-gradient-hover) !important;
    box-shadow: 0 4px 15px var(--accent-shadow) !important;
    transform: translateY(-1px);
}

button.danger, a.button.danger, [class*="danger"] {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
}

/* ============================================================================
   15. КАРТОЧКИ, ПАНЕЛИ
   ============================================================================ */
[class*="card"], [class*="panel"],
[class*="dialog"], .notification,
.guac-modal {
    background: var(--bg-card) !important;
    backdrop-filter: blur(16px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.5) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-card) !important;
    color: var(--text-primary) !important;
}

/* ============================================================================
   16. МОДАЛЬНЫЕ ОКНА — ПОЛНОЕ ОТОБРАЖЕНИЕ
   ============================================================================ */

guac-modal,
.guac-modal,
[class*="modal-backdrop"],
[class*="modal-overlay"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--bg-modal-overlay) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    overflow: auto !important;
}

.guac-modal .notification,
.guac-modal [class*="modal-content"],
[class*="modal"] .notification,
guac-modal .notification {
    background: var(--bg-modal) !important;
    backdrop-filter: blur(20px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-modal) !important;
    color: var(--text-primary) !important;
    padding: 2em !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow: auto !important;
    position: relative !important;
    margin: auto !important;
}

.logged-out-modal,
.automatic-login-rejected-modal,
.fatal-page-error-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: auto !important;
}

.logged-out-modal .notification,
.automatic-login-rejected-modal .notification,
.fatal-page-error-modal .fatal-page-error {
    text-align: center !important;
    padding: 2em !important;
    background: var(--bg-modal) !important;
    backdrop-filter: blur(20px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-modal) !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow: auto !important;
}

.logged-out-modal .notification p,
.automatic-login-rejected-modal .notification p {
    color: var(--text-primary) !important;
    margin: 0.5em 0 !important;
}

.logged-out-modal .notification button,
.automatic-login-rejected-modal .notification button {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.7em 2em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 0.5em !important;
}

.fatal-page-error-modal .fatal-page-error h1 { color: var(--text-heading) !important; }
.fatal-page-error-modal .fatal-page-error p { color: var(--text-secondary) !important; }

.global-status-modal {
    z-index: 10001 !important;
}

[class*="modal"] h1, [class*="modal"] h2, [class*="modal"] h3 {
    color: var(--text-heading) !important;
}

/* ============================================================================
   17. НАСТРОЙКИ, ТАБЫ
   ============================================================================ */
[class*="settings"], [class*="preference"] {
    color: var(--text-primary) !important;
}

[class*="tab"], [class*="tabs"] a {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease !important;
}

[class*="tab"].active, [class*="tabs"] a.active {
    color: var(--text-primary) !important;
    border-bottom-color: var(--text-link) !important;
    background: var(--bg-tab-active) !important;
}

/* ============================================================================
   18. УВЕДОМЛЕНИЯ, ДРОПДАУНЫ
   ============================================================================ */
.guac-notification, [class*="notification"], [class*="toast"] {
    background: var(--bg-notification) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-primary) !important;
}

[class*="dropdown"], [class*="context-menu"] {
    background: var(--bg-dropdown) !important;
    border: 1px solid var(--border-primary) !important;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1) !important;
    color: var(--text-primary) !important;
}

[class*="dropdown"] li:hover {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

/* ============================================================================
   19. ОШИБКА ВХОДА
   ============================================================================ */
.login-ui .login-error {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    color: #ffffff !important;
    padding: 1em 2em !important;
    text-align: center !important;
    font-size: 0.9em !important;
    box-shadow: 0 4px 20px rgba(220,38,38,0.15) !important;
    z-index: 9999 !important;
    border: none !important;
}

/* ============================================================================
   20. АНИМАЦИЯ ТРЯСКИ
   ============================================================================ */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
.login-ui.error .login-dialog.notification { animation: shake 0.5s ease-in-out; }

/* ============================================================================
   21. АДАПТИВНЫЙ ДИЗАЙН
   ============================================================================ */
@media (max-width: 480px) {
    .login-ui .login-dialog.notification {
        max-width: 92vw !important;
        padding: 1.5em 1.2em 1.2em !important;
        border-radius: 16px !important;
    }
    .login-ui .sso-providers { max-width: 92vw !important; }
    .login-ui .login-dialog .logo { width: 3em !important; height: 3em !important; }
    .login-ui .login-dialog .version .app-name { font-size: 1em !important; }
}

/* ============================================================================
   22. СКРОЛЛБАР
   ============================================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(99, 102, 241, 0.04); }
::-webkit-scrollbar-thumb { background: var(--border-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ============================================================================
   23. ДОСТУПНОСТЬ
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

.login-ui .sso-providers {

    padding: 0.25em 0.5em;
    position: absolute;
    bottom: 0;
    left: 0;

}

.sso-providers ul {
    list-style: none;
}

.sso-providers ul, .sso-providers li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.sso-providers li::before {
    content: ' / ';
}

.sso-providers li:first-child::before {
    display: none;
}
