/*******************************
        Login Overrides
*******************************/

/*-----------------------------
     Login Portals Commons
------------------------------*/

.login-portal {
    &.layout {
        .page-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            background-image: @loginPortalBackgroundImage;
            background-repeat: no-repeat;
            background-size: @loginPortalBackgroundSize;
            background-position: @loginPortalBackgroundPosition;
        }

        .portal-logo-tagline {
            color: @loginPortalLogoTaglineColor;
            font-weight: @loginPortalLogoTaglineFontWeight;
            max-width: @loginPortalLogoTaglineMaxWidth;
        }

        .portal-tagline-description {
            color: @loginPortalLogoTaglineDescriptionColor;
            margin-top: @loginPortalLogoTaglineDescriptionMarginTop;
            max-width: @loginPortalLogoTaglineMaxWidth;
        }

        .app-header {
            background: @loginPortalAppHeaderBackground;
            border-bottom: @loginPortalAppHeaderBorderBottom;

            .product-title {
                display: block;

                .portal-logo {
                    img {
                        height: @loginPortalAppHeaderLogoHeight;
                    }
                }
            }
        }

        .center-segment {
            display: flex;
            align-items: center;
            justify-content: center;

            > .ui.container {
                margin: 50px 0;

                &.regular {
                    max-width: 530px !important;
                }

                > .ui.segment {
                    background: @loginPortalSegmentBackgroundColor;
                    box-shadow: none;

                    .ui.header {
                        margin-bottom: 30px;

                        &:first-child {
                            text-align: left;
                        }
                    }

                    .ui.primary.button {
                        background: @loginPortalSegmentPrimaryActionBackgroundColor;
                    }

                    .ui.labeled.icon.button,
                    .ui.labeled.icon.buttons .button {
                        padding-left: 2.1em !important;
                    }
                }
            }
        }

        .product-title {
            display: none;
        }

        .slogan-container {
            margin-right: 70px;

            .ui.header {
                &.description {
                    color: #FDFDFD;
                }
                &.tagline {
                    color: #e0e0e0;
                    margin-top: 0;
                }
            }
        }

        .footer {
            background: @loginPortalFooterBackground;
            padding: @loginPortalFooterPadding;
            border-top: @loginPortalFooterBorderTop;

            .ui.text.menu {
                margin: 0;
                line-height: @loginPortalFooterLineHeight;
            
                .item {
                    color: #909599;

                    &.no-hover {
                        cursor: auto;
                    }
                    &:not(.no-hover) {
                        &:hover {
                            color: @primaryColor;
                            text-decoration: underline;
                        }
                    }
                }
            }
        }

        &.policy-page-layout {
            background-image: @policyPageBackgroundImage;

            .policy-page {
                .policy-page-content {
                    color: @white;

                    .toc {
                        background: @policyPageTOCBackground;
                        border: none;
                        box-shadow: none;
                        color: @white;

                        ul.ui.list.nav>li>a {
                            color: @white;

                            &:hover {
                                color: @primaryColor;
                            }
                        }

                        ul.ui.list li:before {
                            color: @white;
                        }
                    }
                }
            }
        }

        .external-link-container {
            &.text-small {
                font-size: @loginPortalExternalLinkFontSize;
                color: lighten(@black, 5);
            }
        }

        .clickable-link {
            cursor: pointer;
        }
    }
}

@media only screen and (max-width: 933px) {
    .login-portal {
        &.layout {
            background-image: none;

            .product-title {
                display: block;
            }

            .slogan-container {
                display: none;
            }
        }
    }
}

@media only screen and (max-width: 768px) {
    .footer {
        .ui.text.menu {
            align-items: center;
        }
    }
}
