﻿.login-logo {
    width: 300px;
    height: 125px;
    top: 30px;
    left: 96px;
}

/* Slow circular drift of the login art. Image stays upright; only its position orbits. */
.container-fluid.body-content:has(#loginForm) {
    padding-left: 0;
    padding-right: 0;
}

#loginForm,
#loginForm > form {
    width: 100%;
    max-width: 100%;
}

#loginForm .login-bg {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    background-color: #ffffff;
    background-image: none;
    isolation: isolate;
}

#loginForm .login-bg::before,
#loginForm .login-bg::after {
    content: "";
    position: absolute;
    z-index: 0;
    /* Native 4:3. Big enough to show the whole figure around the login box, capped so it does not fill the screen. */
    --login-art: min(96vw, 135vh, 1680px);
    width: var(--login-art);
    height: calc(var(--login-art) * 0.75);
    margin: 0;
    left: calc(50% - var(--login-art) * 0.646);
    top: calc(50% - var(--login-art) * 0.436);
    background-image: url(../Images/Spinner.png), url(../Images/Spinner.png);
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    background-size: 100% 100%, 100% 100%;
    pointer-events: none;
    will-change: transform;
}

/* High: palest sky. Low: a slightly deeper sky under the same figure. */
#loginForm .login-bg::before {
    filter: brightness(1.15) saturate(0.78) hue-rotate(14deg);
    opacity: 1;
    animation: login-bg-orbit 40s linear infinite;
}

#loginForm .login-bg::after {
    filter: brightness(0.98) saturate(0.9) hue-rotate(4deg);
    opacity: 0.55;
    animation: login-bg-orbit 40s linear infinite;
}

#loginForm .login-bg > * {
    position: relative;
    z-index: 1;
}

#loginForm .card-pre-login {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 28px rgba(17, 17, 17, 0.12);
}

#loginForm .login-logo {
    width: min(260px, 86%);
    height: auto;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}

#loginForm .login-product-line {
    width: 300px;
    max-width: 86%;
    margin: 6px auto 18px;
    font-family: "SF Pro Display-Bold", Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

#loginForm .login-product-line-lead,
#loginForm .login-product-line-earn {
    display: block;
    width: 100%;
    white-space: nowrap;
}

#loginForm .login-product-line-lead {
    font-size: 14.5px;
    letter-spacing: 0;
    color: #111111;
}

#loginForm .login-product-line-earn {
    margin-top: 4px;
    font-family: "SF Pro Display-Regular", Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #3db7ea;
}

#loginForm .login-input-wrapper,
#loginForm .card-body .row {
    width: 300px;
    max-width: 86%;
    margin-left: auto;
    margin-right: auto;
}

#loginForm .card-body .row {
    --bs-gutter-x: 0;
}

#loginForm .card-body .row > [class*="col"] {
    padding-left: 0;
    padding-right: 0;
}

#loginForm .simple-login-button {
    display: block;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

#loginForm .card-body .row:last-of-type {
    font-size: 10px;
    line-height: 1.35;
}

@keyframes login-bg-orbit {
    from { transform: rotate(0deg) translate3d(5.5%, 0, 0) rotate(0deg); }
    to { transform: rotate(360deg) translate3d(5.5%, 0, 0) rotate(-360deg); }
}

/* Mobile Chrome sizes a display:table column to its content and pushes the card to the right. */
@media (max-width: 575.98px) {
    #loginForm .login-bg::before,
    #loginForm .login-bg::after {
        --login-art: min(280vw, 155svh);
        animation-name: login-bg-orbit-mobile;
    }

    #loginForm .row.vh-100 {
        min-height: 100svh;
        height: auto;
        margin-left: 0;
        margin-right: 0;
        align-items: center;
        justify-content: center;
    }

    #loginForm .col-sm-8 {
        display: block !important;
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        flex: 0 1 auto;
        margin-left: auto;
        margin-right: auto;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    #loginForm .d-table-cell {
        display: block !important;
        height: auto !important;
    }

    #loginForm .login-logo {
        width: min(220px, 78%);
        height: auto;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;
        position: static;
        left: auto;
    }

    #loginForm .login-product-line-lead {
        font-size: 13px;
        letter-spacing: 0;
    }

    #loginForm .login-product-line-earn {
        font-size: 15px;
    }
}

@keyframes login-bg-orbit-mobile {
    from { transform: rotate(0deg) translate3d(4%, 0, 0) rotate(0deg); }
    to { transform: rotate(360deg) translate3d(4%, 0, 0) rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
    #loginForm .login-bg::before,
    #loginForm .login-bg::after {
        animation: none;
        transform: none;
    }
}

.login-input-wrapper {
    /*width: 440px;*/
    margin-bottom: 20px;
    font-family: "SF Pro Display-Regular", Helvetica, Arial, sans-serif;
}

/* Label styling */
.login-label {
    display: block;
    font-size: 16px;
    color: #111111;
    opacity: 0.4;
    margin-bottom: 6px;
}

/* Input + icon container */
.login-input-box {
    position: relative;
    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    background-color: #fff;
}

/* Icon styling */
.login-icon {
    width: 63px;
    height: 50px;
    background-color: #d5e4fc;
    border-radius: 10px 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-icon img {
        width: 40px;
        height: auto;
    }

/* Input field styling */
.login-input {
    flex: 1;
    height: 100%;
    padding: 0 15px;
    border: none;
    outline: none;
    font-size: 14px;
    border-radius: 0 10px 10px 0;
    font-family: inherit;
}

.login-hide {
    width: 63px;
    height: 50px;
    background-color: #d5e4fc;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-hide img {
        width: 40px;
        height: auto;
    }

.simple-login-button {
    display: inline-block;
    height: 50px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: "SF Pro Display-Bold", Helvetica, sans-serif;
    font-size: 18px;
    color: #ffffff;
    background: radial-gradient(50% 50% at 77% 50%, rgba(65, 211, 255, 1) 13%, rgba(20, 111, 197, 1) 89%);
    box-shadow: 0px 0px 15px #41d3ff, inset 0px 0px 10px rgba(65, 211, 255, 0.8);
    text-align: center;
    line-height: 50px;
    transition: all 0.3s ease;
}

    .simple-login-button:hover {
        opacity: 0.9;
        transform: scale(1.02);
    }
