body {
    .engine-offline, .funktioner {
        display: none;
    }

    &.hkrw-ok {
        .funktioner {
            display: flex;
        }
        .load-spin {
            display: none;
        }
    }

    &.hkrw-error {
        .engine-offline {
            display: block;
        }
        .load-spin {
            display: none;
        }
    }
}

.engine-offline, .shutting-down, .login-form {
    background: rgba(247, 247, 247, 0.82);
    margin: 10px 20px;
    padding: 18px 20px 24px;
    border-radius: 24px;
    color: #2e2e2e;
    font-size: 14px;

    strong {
        display: block;
        text-align: center;
        color: #500c0c;
        margin-bottom: 14px;
    }
}

.load-spin {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%);
}

.load-spin span {
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid transparent;
    border-radius: 50%;
    border-right-color: rgba(255, 255, 255, 0.7);
    animation: spinner-anim 0.8s linear infinite;
}

.login-form {
    width: 80%;

    h1 {
        font-family: 'Courier New', Courier, monospace;
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 18px;
        text-align: center;
    }

    label {
        display: inline-block;
        width: 26%;
    }

    input[type="text"], input[type="password"] {
        width: 50%;
        padding: 6px 8px;
        margin-bottom: 12px;
        border: 1px dashed #ccc;
        border-radius: 4px;
        background-color: #f5deb3;
        font-size: 14px;
        font-family: "Courier New", Courier, monospace;
        letter-spacing: 0.05em;
    }

    .lbpane {
        display: flex;
        justify-content: center;

        input[type="submit"] {
            padding: 4px 16px;
        }
    }
}

@keyframes spinner-anim {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}