body, html {
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    background-size: cover;
    background-position: center;
}

.tree-view li > img {
    height: 12px;
    padding-left: -2px;
    padding-right: 4px;
}

summary {
    cursor: pointer;
    display: inline;
}

*:not(.selectable) {
    user-select: none;
}

#login {
    display: flex;
    flex-direction: row;

    width: 100%;
    height: 100%;

    background: radial-gradient(circle at 0 0, rgba(89,123,220,1) 0%, rgba(32,70,145,1) 50%);
    color: white;
}

#login > * {
    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 50%;
    height: 100%;

    padding: 26px;
}

#login > :first-child {
    align-items: flex-end;
}

#login > :first-child > h4 {
    margin-right: 22px;
    font-size: 18px;
}

#login > :first-child > img {
    width: 50%;
}

#login > :last-child {
    align-items: flex-start;

    border-left: 1px solid;
    border-image: linear-gradient(transparent 10%, #577bcf 50%, transparent 90%) 1;
}

.login-box {
    width: 80%;

    border-radius: 4px;
    background-image: linear-gradient(to right, white 50%, transparent 100%);
    background-origin: border-box;
    background-clip: content-box, border-box;

    transition: opacity 0.2s;
}

.login-box:not(:last-child) {
    margin-bottom: 15px;
}

.login-box:not(.active) {
    opacity: 0.5;
    cursor: pointer;
}

.login-box:not(.active) label {
    display: none;
}

.login-box:not(.active) .login-box-password-bar {
    display: none;
}

.login-box > div {
    display: flex;
    margin: 1px;
    height: 52px;
    border-radius: 4px;
    padding: 8px;

    background: linear-gradient(to right, #4d74d3 50%, rgba(32,70,145,1));
}

.login-box > div > img {
    margin-right: 8px;
    width: 48px;
    height: 48px;
    border: 2px solid yellow;
    border-radius: 2px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
}

.login-controls > h2 {
    margin-left: 4px;
    font-size: 14px;
    line-height: 0;
}

.login-controls > label {
    margin-left: 4px;
    margin-bottom: 3px;
    font-size: 10px;
}

.login-controls > div {
    display: flex;
    align-items: center;
}

.login-controls input {
    border-radius: 3px;
    height: 27px;
    padding: 3px 9px;
}

.login-controls button {
    margin-inline-start: 12px;
    border: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding-left: 12px;
    background: url(gtk-yes.png) no-repeat;
}

.bsod {
    box-sizing: border-box;
    width: 100%;
    height: 100%;

    background: blue;
    color: white;
    font-weight: bold;
    white-space: pre-wrap;
}

.wm {
    pointer-events: none;
    z-index: 999;
}

@media screen and (max-width: 800px) {
    #login > :first-child {
        display: none;
    }

    #login > :last-child {
        width: 100%;
    }

    .login-box {
        width: 100%;
    }
}
