:root {
    color-scheme: light;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 300px;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    padding: 18px;
    color: #172027;
    background-color: #59646d;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 3px),
        linear-gradient(#68747e, #46515a);
    font-size: 12px;
}

button,
input {
    font: inherit;
}

.screen-shell {
    width: min(680px, 100%);
    margin: 8vh auto 0;
    border: 1px solid #10171b;
    background: #c7c9c5;
    box-shadow:
        0 0 0 1px #8d9497,
        0 10px 28px rgba(0, 0, 0, 0.42);
}

.top-line,
.bottom-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    padding: 5px 8px;
    color: #d7e8e8;
    border-bottom: 1px solid #071013;
    background: #173c45;
    box-shadow: inset 0 1px #44656b;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 0.4px;
}

.top-line__name {
    font-weight: bold;
}

.top-line__clock {
    color: #a9c5c4;
    white-space: nowrap;
}

.console {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 356px;
    border-top: 1px solid #d9ddda;
    border-bottom: 1px solid #747b7c;
}

.system-panel {
    padding: 14px 12px;
    border-right: 1px solid #777c7c;
    background: #aeb4b2;
    box-shadow: inset -1px 0 #d9dcda;
}

.system-panel__head {
    margin-bottom: 10px;
    padding: 6px;
    color: #14261c;
    border: 1px solid #6d7774;
    background: #c5ccc7;
    box-shadow: inset 1px 1px #eef1ef;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    font-weight: bold;
}

.led {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    vertical-align: -1px;
    border: 1px solid #173520;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(24, 159, 66, 0.6);
}

.led--green {
    background: #35a54b;
}

.system-table {
    width: 100%;
    border-collapse: collapse;
    color: #203034;
    background: #d3d6d2;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
}

.system-table th,
.system-table td {
    padding: 5px 4px;
    border: 1px solid #858c89;
    text-align: left;
}

.system-table th {
    width: 38%;
    color: #465155;
    background: #bfc4c1;
    font-weight: normal;
}

.mini-monitor {
    width: 104px;
    margin: 33px auto 0;
}

.mini-monitor__screen {
    position: relative;
    height: 70px;
    padding: 5px;
    overflow: hidden;
    color: #6f9b83;
    border: 5px solid #555d5e;
    background:
        repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(155, 194, 173, 0.05) 3px, rgba(155, 194, 173, 0.05) 4px),
        #15221f;
    box-shadow:
        inset 0 0 15px #000,
        1px 1px #e2e4e2;
    font-family: "Courier New", Courier, monospace;
    font-size: 8px;
}

.mini-monitor__screen span {
    position: absolute;
    top: 5px;
    left: 5px;
}

.mini-monitor__screen i {
    position: absolute;
    top: 18px;
    left: 13px;
    width: 58px;
    height: 25px;
    border: 1px solid #456b5a;
}

.mini-monitor__screen i::before,
.mini-monitor__screen i::after {
    position: absolute;
    content: "";
    background: #456b5a;
}

.mini-monitor__screen i::before {
    top: 11px;
    left: 0;
    width: 100%;
    height: 1px;
}

.mini-monitor__screen i::after {
    top: 0;
    left: 28px;
    width: 1px;
    height: 100%;
}

.mini-monitor__screen b {
    position: absolute;
    right: 4px;
    bottom: 4px;
    color: #9a5f55;
    font-size: 8px;
    font-weight: normal;
}

.mini-monitor__base {
    width: 42px;
    height: 5px;
    margin: 0 auto;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #555d5e;
    border-left: 6px solid transparent;
}

.login-panel {
    position: relative;
    padding: 14px 17px 45px;
    background: #c9cbc7;
    box-shadow: inset 1px 1px #edefec;
}

.panel-caption {
    margin-bottom: 24px;
    padding: 6px 8px;
    color: #f2f0dd;
    border: 1px solid #29383d;
    background: #485b60;
    box-shadow:
        inset 1px 1px #76868a,
        1px 1px #eef0ec;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.login-form {
    margin: 0 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    align-items: center;
    margin-bottom: 13px;
}

.form-row label {
    padding-right: 10px;
    color: #2c373a;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: bold;
}

.text-input {
    width: 100%;
    height: 25px;
    padding: 3px 5px;
    color: #17201f;
    border: 1px solid #3e4748;
    border-top-color: #252c2d;
    border-left-color: #252c2d;
    border-radius: 0;
    outline: none;
    background: #f0f1e9;
    box-shadow:
        inset 1px 1px 1px rgba(0, 0, 0, 0.25),
        1px 1px #f5f6f3;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
}

.text-input:focus {
    color: #071213;
    background: #fffef1;
    outline: 1px dotted #334649;
    outline-offset: -3px;
}

.text-input:disabled {
    color: #757b79;
    background: #d5d6d1;
}

.login-hint {
    margin: 4px 0 18px 138px;
    color: #586164;
    font-size: 10px;
    line-height: 1.4;
}

.button-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px dotted #777f7e;
}

.old-button {
    min-height: 27px;
    padding: 4px 12px;
    color: #1a2224;
    border: 1px solid #41494a;
    border-top-color: #f0f1ee;
    border-left-color: #f0f1ee;
    border-radius: 0;
    background: #bfc2bd;
    box-shadow: 1px 1px 0 #505758;
    cursor: pointer;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
}

.old-button:hover:not(:disabled) {
    background: #d1d3ce;
}

.old-button:active:not(:disabled) {
    padding-top: 5px;
    padding-right: 11px;
    padding-bottom: 3px;
    padding-left: 13px;
    border-color: #41494a #f0f1ee #f0f1ee #41494a;
    box-shadow: none;
}

.old-button:focus-visible {
    outline: 1px dotted #000;
    outline-offset: -4px;
}

.old-button--primary {
    color: #e8efea;
    border-top-color: #728486;
    border-left-color: #728486;
    background: #3d565b;
    box-shadow: 1px 1px 0 #1c2729;
}

.old-button--primary:hover:not(:disabled) {
    background: #4c666b;
}

.old-button:disabled {
    color: #777c7b;
    background: #b4b7b2;
    box-shadow: none;
    cursor: wait;
}

.status-box {
    display: flex;
    align-items: center;
    min-height: 31px;
    margin-top: 18px;
    padding: 6px 8px;
    color: #52605c;
    border: 1px solid #747d7b;
    background: #d8dad5;
    box-shadow: inset 1px 1px #a7adaa;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
}

.status-box__mark {
    width: 16px;
    margin-right: 4px;
    color: #31504a;
    font-weight: bold;
}

.status-box.is-working {
    color: #263e42;
    background: #d3dbd7;
}

.status-box.is-working .status-box__mark {
    animation: cursor-blink 0.62s steps(1, end) infinite;
}

.status-box.is-error {
    color: #691f18;
    border-color: #83473f;
    background: #e5cac5;
    box-shadow: inset 1px 1px #f0dfdb;
    font-weight: bold;
}

.status-box.is-error .status-box__mark {
    color: #8f2219;
}

.service-note {
    position: absolute;
    right: 17px;
    bottom: 12px;
    left: 17px;
    display: flex;
    justify-content: space-between;
    padding-top: 5px;
    color: #687170;
    border-top: 1px solid #a2a8a5;
    font-family: "Courier New", Courier, monospace;
    font-size: 9px;
}

.noscript-note {
    margin: 12px 6px 0;
    padding: 6px;
    color: #681b16;
    border: 1px solid #8b4942;
    background: #e3c4c0;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
}

.bottom-line {
    min-height: 24px;
    color: #9bb4b3;
    border-top: 1px solid #2f5158;
    border-bottom: 0;
    background: #263f45;
    box-shadow: inset 0 1px #526b70;
    font-size: 9px;
}

@keyframes cursor-blink {
    0%,
    48% {
        opacity: 1;
    }

    49%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 590px) {
    body {
        padding: 7px;
    }

    .screen-shell {
        margin-top: 2vh;
    }

    .console {
        grid-template-columns: 1fr;
    }

    .system-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        border-right: 0;
        border-bottom: 1px solid #777c7c;
        box-shadow: inset 0 -1px #d9dcda;
    }

    .system-panel__head {
        grid-column: 1 / -1;
        margin: 0;
    }

    .mini-monitor {
        margin-top: 0;
    }

    .login-panel {
        padding-right: 12px;
        padding-left: 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .login-hint {
        margin-left: 0;
    }

    .service-note {
        right: 12px;
        left: 12px;
    }
}

@media (max-width: 400px) {
    .top-line,
    .bottom-line,
    .service-note {
        gap: 5px;
        flex-wrap: wrap;
    }

    .button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .old-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-box.is-working .status-box__mark {
        animation: none;
    }
}
