body.login-page {
    max-width: none;
}

.login-layout {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

body.login-page .main-header {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    min-height: auto !important;
}

body.login-page .header-panel {
    padding-bottom: 8px !important;
    justify-content: space-between;
}

.login-header-actions .logo,
.login-header-actions .logo-dark {
    position: static !important;
    transform: none !important;
    height: 56px !important;
}

.login-entry-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(var(--title-color), 1);
    background: rgba(var(--white), 1);
    border: 0;
    border-radius: 100%;
}

.login-header-actions .icon-btn {
    border: 0 !important;
    box-shadow: none !important;
    background: rgba(var(--white), 1) !important;
}

.login-header-actions > a {
    transform: translateY(2px);
}

.login-menu .offcanvas-header {
    border-bottom: 1px solid rgba(var(--line-color), 1);
}

.login-menu .link-section li {
    width: 100%;
    display: block;
}

.login-menu .link-section li + li {
    margin-top: 2px;
}

.desktop-frost-menu {
    display: none;
}

body.login-page.login-page--with-sidepanel a[aria-label="Открыть меню"] {
    display: none !important;
}

body.login-page.login-page--with-sidepanel .desktop-frost-menu {
    display: block;
    position: fixed;
    left: calc(50% - 300px - 24px - 250px);
    top: var(--sidepanel-top, 120px);
    width: 250px;
    padding: 18px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 3;
    opacity: 0;
}

body.login-page.login-page--sidepanel-intro .desktop-frost-menu {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    body.login-page.login-page--sidepanel-intro .desktop-frost-menu {
        animation: sidepanelFadeIn 1200ms ease both;
    }
}

.desktop-frost-menu .menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-frost-menu .menu-list li {
    display: block !important;
}

.desktop-frost-menu .menu-list li + li {
    margin-top: 10px;
}

.desktop-frost-menu .menu-list .pages {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.desktop-frost-menu .menu-list .sidebar-icon {
    --Iconsax-Color: rgba(255, 255, 255, 0.95);
    --Iconsax-Size: 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
}

.desktop-frost-menu .menu-list .pages h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.desktop-frost-menu .menu-list li.active .pages h3 {
    color: #ffffff;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.3);
}

@media (max-width: 767.98px) {
    .login-layout {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    body.login-page .auth-content-bg {
        flex: 1 1 auto;
        border-radius: 0 !important;
    }
}

@media (min-width: 768px) {
    .login-layout {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    body.login-page.login-page--wait-intro .login-layout {
        opacity: 0;
    }

    @media (prefers-reduced-motion: no-preference) {
        body.login-page.login-page--intro .login-layout {
            animation: loginRevealDown 820ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
            transform-origin: top center;
            will-change: clip-path, opacity;
        }
    }

    body.login-page .main-header {
        border-radius: 0;
        overflow: visible;
    }

    body.login-page .auth-content-bg {
        border-radius: 0 !important;
    }

    body.login-page.login-page--centered .login-layout {
        justify-content: center;
    }

    body.login-page.login-page--centered .main-header {
        border-radius: 20px 20px 0 0;
        overflow: hidden;
    }

    body.login-page.login-page--centered .auth-content-bg {
        border-radius: 0 0 20px 20px !important;
    }
}

@keyframes loginRevealDown {
    0% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes sidepanelFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* flat mode overrides (global) */
body.login-page.login-page--flat .auth-content-bg {
    flex: 1;
    border-radius: 0 !important;
}
body.login-page.login-page--flat .main-header {
    border-radius: 0 !important;
}

/* Navbar (авторизованные страницы) */
.navbar-menu { position: fixed !important; left: 50% !important; bottom: 0 !important; width: 100% !important; max-width: 600px !important; transform: translateX(-50%) !important; z-index: 20 !important; }
