* {
    box-sizing: border-box;
}

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

body {
    font-family: Tahoma, Arial, sans-serif;
    color: #080808;
}

.login-body,
.app-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: #dedede;
}

.login-window {
    width: 660px;
    max-width: 100%;
    padding: 52px 88px;
    background: #d8f5fb;
    border: 1px solid #c7e2e8;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    direction: ltr;
}

.login-row label {
    direction: rtl;
    padding: 8px 14px;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    background: #d8f5fb;
    border: 1px solid #777;
}

.login-row input {
    min-width: 0;
    padding: 8px;
    font-size: 20px;
    border: 1px solid #777;
    background: #fff;
}

.login-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.access-button,
.small-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 7px 12px;
    color: #050505;
    font: inherit;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    background: #6699d6;
    border: 3px solid #e5dff0;
    border-radius: 11px;
    box-shadow: 5px 7px 5px rgba(0, 0, 0, .2);
    cursor: pointer;
}

.access-button:hover,
.access-button:focus,
.small-button:hover,
.small-button:focus {
    background: #79a9df;
    outline: 2px solid #fff;
}

.login-actions .access-button {
    min-height: 92px;
    border-radius: 0;
    box-shadow: none;
    font-size: 30px;
}

.login-error {
    padding: 8px;
    color: #a40000;
    font-weight: bold;
    text-align: center;
    background: #ffe5e5;
    border: 1px solid #d77;
}

.last-user {
    padding: 8px;
    text-align: center;
    background: #eee;
    border: 1px solid #aaa;
}

.main-window,
.construction-window {
    width: 1140px;
    max-width: 100%;
    background: #13c7ef;
    border: 1px solid #bbb;
    box-shadow: 0 25px 38px rgba(0, 0, 0, .26);
}

.window-title {
    min-height: 34px;
    padding: 7px 18px;
    text-align: right;
    background: #fff;
    border-bottom: 1px solid #bbb;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    direction: rtl;
    gap: 42px;
    min-height: 585px;
    padding: 45px 24px 20px;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.center-column {
    justify-content: flex-start;
}

.center-top-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.contract-oval {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 290px;
    height: 130px;
    margin: 12px auto;
    font-size: 52px;
    font-weight: bold;
    background: #6699d6;
    border: 3px solid #e5dff0;
    border-radius: 50%;
    box-shadow: 10px 15px 8px rgba(0, 0, 0, .22);
}

.info-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 7px;
    font-size: 25px;
    font-weight: bold;
    background: #6699d6;
    border: 3px solid #e5dff0;
}

.user-box {
    overflow: hidden;
    color: #777;
    white-space: nowrap;
    background: #fff;
}

.system-actions {
    display: grid;
    grid-template-columns: 1fr 1.65fr 1fr;
    gap: 5px;
    margin-top: auto;
}

.small-button {
    min-height: 50px;
    padding: 5px;
    font-size: 18px;
}

.users-button {
    background: #cab5d7;
}

.construction-window {
    width: 760px;
}

.construction-card {
    min-height: 400px;
    padding: 65px 30px;
    text-align: center;
}

.construction-card h1 {
    margin: 0 0 20px;
    font-size: 36px;
}

.construction-icon {
    font-size: 70px;
}

.construction-card p {
    margin: 10px 0;
    font-size: 28px;
    font-weight: bold;
}

.construction-note {
    font-size: 18px !important;
    font-weight: normal !important;
}

.back-button {
    width: 270px;
    margin: 35px auto 0;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .center-column {
        grid-row: 1;
    }

    .right-column {
        grid-row: 2;
    }

    .left-column {
        grid-row: 3;
    }
}

@media (max-width: 600px) {
    .login-body,
    .app-body {
        padding: 10px;
        align-items: flex-start;
    }

    .login-window {
        padding: 24px 16px;
    }

    .login-row,
    .login-actions,
    .center-top-buttons,
    .system-actions {
        grid-template-columns: 1fr;
    }

    .login-row label {
        grid-row: 1;
    }

    .dashboard-grid {
        padding: 25px 14px;
    }

    .contract-oval {
        width: 230px;
        height: 110px;
    }
}
