﻿
.landing-login-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-login-logo {
    height: 18px;
}

/* Organization icon: static and natural in every theme (no spin, no colour cycling, no blend) */
.landing-login-logo-crt {
    display: inline-flex;
    height: 50px;
    background-color: transparent;
    animation: none;
}

.landing-login-logo-crt img {
    height: 50px;
    width: auto;
    display: block;
    mix-blend-mode: normal;
}

@keyframes crt-logo-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes crt-logo-fade {
    0%,
    100% {
        background-color: #1a1a1a;
    }
    33% {
        background-color: var(--app-primary);
    }
    66% {
        background-color: var(--app-secondary);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-login-logo-crt {
        animation: none;
    }
}

.landing-login-welcome {
    margin-bottom: 18px;
    font-size: 1.6rem;
    text-align: center;
    font-weight: 800;
    color: var(--dark);
}

.landing-login-welcome div {
    font-size: .9rem;
    opacity: .7;
}

.landing-login-signedin {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-main-card-login .form-control {
    background-color: var(--light);
    border: 1px solid #dee2e6;
    padding: .55rem 1rem;
    font-size: .9rem;
    color: var(--dark);
}

    .landing-main-card-login .form-control:focus {
        background-color: #fff;
        border-color: var(--landing-primary);
        box-shadow: none;
    }

    .landing-main-card-login .form-control::placeholder {
        color: var(--gray);
    }

.landing-main-card-login .btn-primary {
    background-color: var(--landing-primary);
    border-color: var(--landing-primary);
    color: var(--app-dark-grey) !important;
    font-weight: 700;
    padding: .5rem 1rem;
}

    .landing-main-card-login .btn-primary:hover,
    .landing-main-card-login .btn-primary:focus,
    .landing-main-card-login .btn-primary:active {
        background-color: var(--landing-primary-dark);
        border-color: var(--landing-primary-dark);
        box-shadow: none;
    }

/* Reserves room for the progress bar and the status message so that showing
   or hiding them never reflows the form above */
.landing-login-status {
    min-height: 48px;
    padding-top: 8px;
}

/* Sign-in in progress: the body takes the space left by the hidden form and
   keeps the progress bar and the status message vertically centered */
#login-panel.is-connecting .landing-login-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-login-message {
    margin-top: .75rem;
}

.landing-login-connecting {
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 50%, #dee2e6 50%);
    background-size: 200% 100%;
    animation: move 1s linear infinite
}

.landing-login-orsep {
    margin-bottom: 10px;
    margin-left: 12%;
    margin-right: 12%;
    color: var(--gray);
    font-size: .85rem;
}
    .landing-login-orsep hr {
        border: none !important;
        border-top: solid 1px #dee2e6 !important;
        opacity: 1;
        margin: 0;
    }

.landing-login-morelogins {
    text-align: center;
    padding: 0 8%;
}
    .landing-login-morelogins a {
        display: block;
        text-decoration: none;
        border: 1px solid var(--secondary);
        border-radius: 50rem;
        padding: .45rem 1rem;
        font-size: .9rem;
        font-weight: 600;
        color: var(--secondary);
    }

        .landing-login-morelogins a:hover {
            background-color: var(--secondary);
            color: #ffffff;
        }


@keyframes move {
    to {
        background-position: -200% 0
    }
}

/* "Keep me connected" switch label: smaller, to match the form controls */
.landing-login-body .custom-switch .custom-control-label {
    font-size: .9rem;
}

/* "Keep me connected": checked track uses the app primary (Bootstrap's default blue otherwise) */
.landing-login-body .custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray);
    z-index: 5;
}
