body main {
    background:
        /* stars */
        radial-gradient(1.5px 1.5px at 8% 14%, #fff, transparent),
        radial-gradient(2px 2px at 21% 38%, rgba(255,255,255,.8), transparent),
        radial-gradient(1.5px 1.5px at 34% 9%, rgba(255,255,255,.7), transparent),
        radial-gradient(1.5px 1.5px at 47% 27%, #fff, transparent),
        radial-gradient(2px 2px at 62% 12%, rgba(255,255,255,.9), transparent),
        radial-gradient(1.5px 1.5px at 71% 41%, rgba(255,255,255,.6), transparent),
        radial-gradient(1.5px 1.5px at 84% 20%, #fff, transparent),
        radial-gradient(2px 2px at 93% 46%, rgba(255,255,255,.7), transparent),
        radial-gradient(1.5px 1.5px at 15% 58%, rgba(255,255,255,.6), transparent),
        radial-gradient(1.5px 1.5px at 55% 55%, rgba(255,255,255,.5), transparent),
        /* gold dawn glimmer on the limb */
        radial-gradient(ellipse 18% 10% at 88% 97%, rgba(212,175,55,.55), rgba(212,175,55,.12) 50%, transparent 75%),
        /* atmosphere */
        radial-gradient(ellipse 90% 60% at 50% 131%, transparent 60%, rgba(135,206,250,.85) 64.5%, rgba(135,206,250,.3) 67%, rgba(40,100,255,.12) 74%, transparent 86%),
        /* planet body */
        radial-gradient(ellipse 90% 60% at 50% 131%, #0b4aa8 0, #072a6b 50%, #041540 64%, transparent 44.6%),
        /* space, getting bluer toward the horizon */
        linear-gradient(#01030f, #061552 78%, #0a2a7a);
    display: flex;
    align-items: center;
}

@media not all and (prefers-color-scheme: dark) {
    body:not(.nightmode) #login_widget .dialog {
        --movim-font: 255, 255, 255;
        color: rgba(var(--movim-font), .87);
        background-color: rgba(8, 20, 60, .32);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 24px 64px rgba(0, 20, 80, .45);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }
    body:not(.nightmode) #login_widget .dialog a:not(.button) {
        color: lightskyblue;
    }
}

#login_widget {
    display: flex;
    justify-content: space-between;
    width: 100rem;
    gap: 1rem;
    padding: 1rem;
}

@media screen and (max-width: 600px) {
    body main {
        align-items: flex-start;
    }

    #login_widget {
        flex-direction: column;
    }

    #login_widget:before {
        content: '';
        display: block;
        background: url(../theme/img/app/logo_cloud.svg);
        background-size: auto 4rem, 100% 100%;
        background-position: center 2rem, center;
        background-repeat: no-repeat;
        height: 8rem;
    }
}

#login_widget .dialog {
    flex: 0 1 50%;
    position: relative;
    left: 0;
    width: 100%;
}

#login_widget .dialog>section {
    display: flex;
    flex-direction: column;
}

#login_widget article>section {
    padding: 0;
}

#login_widget .dialog>section .about {
    margin-top: auto;
}

#login_widget .dialog .banner {
    max-width: 100%;
    padding: 0;
    margin-top: -1rem;
    object-fit: cover;
    min-height: 9rem;
    max-height: 18rem;
    width: 100%;
    mask-image: linear-gradient(to bottom, black 60%, transparent);
}

#login_widget:not(.error)>#error,
#login_widget.error>div:not(#error) {
    display: none;
}

#login_widget input#complete {
    position: absolute;
    top: 0;
    z-index: -1;
    color: rgba(var(--movim-font), 0.54);
    box-shadow: none;
    width: calc(100% - 3rem);
}

#login_error code {
    display: block;
    margin-top: 1rem;
    max-height: 10rem;
}
/* ---- local theme: login focus colors (keep at end of file) ---- */

/* centered gold accent, grows from the middle on focus */

/* underline drawn as two layers: gold centered on top of full-width lightskyblue */

#login_widget form input:not(.button):not(#complete) {
    caret-color: #D4AF37;
    background-image:
        linear-gradient(#D4AF37, #D4AF37),
        linear-gradient(transparent, transparent);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 0 2px, 100% 2px;
}

#login_widget form input:focus:not(.button):not(#complete) {
    box-shadow: none;
    background-image:
        linear-gradient(#D4AF37, #D4AF37),
        linear-gradient(lightskyblue, lightskyblue);
    background-size: 65% 2px, 100% 2px;
    animation: login-gold-grow .50s ease;
}

@keyframes login-gold-grow {
    from { background-size: 0 2px, 100% 2px; }
}

/* label of the focused field */
#login_widget form input:focus+label {
    color: lightskyblue;
}

/* text in an invalid field (was red); delete this rule to keep the normal text color */
#login_widget form>div>input:invalid {
    color: lightskyblue;
}

/* text selection highlight */
#login_widget input::selection {
    background: lightskyblue;
    color: #1a1a1a;
}

