html,
body {
    width: 100%;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    background: #f3f8fb;
    color: #183247;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    height: 100%;
}

body {
    overflow-x: hidden;
}

.login-page,
.login-page *,
.login-page *::before,
.login-page *::after {
    box-sizing: border-box;
}

.login-page {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    width: 100%;
    min-height: 100vh;
    padding: 24px 12px;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.login-form {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 0;
}

.login-box {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #d8e4eb;
    border-top: 4px solid #258fce;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 68, 91, .13);
}

.logo-left {
    display: block;
    width: 100%;
    margin: 0;
    padding: 25px 24px 17px;
    border-bottom: 3px solid #d92345;
    background: #fff;
    text-align: center;
}

.logo-left img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 82px;
    height: auto;
    margin: 0 auto;
}

.logo-left span {
    display: block;
    margin-top: 12px;
    color: #496675;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
}

.table-right {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 24px 30px 22px;
}

.login-form-group {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 15px;
}

.login-form-group label {
    display: block;
    width: 100%;
    margin: 0 0 6px;
}

.table-right .text {
    color: #294a5e;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.35;
}

.table-right input.entryfield,
.table-right select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #b9ccd8;
    border-radius: 4px;
    background: #fff;
    color: #183247;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 22px;
}

.table-right select {
    padding-right: 34px;
    background-image:
        linear-gradient(45deg, transparent 50%, #496675 50%),
        linear-gradient(135deg, #496675 50%, transparent 50%);
    background-position:
        calc(100% - 17px) 18px,
        calc(100% - 12px) 18px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.table-right input.entryfield:focus,
.table-right select:focus {
    border-color: #258fce !important;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 143, 206, .16);
    outline: none;
}

.login-actions {
    display: block;
    clear: both;
    width: 100%;
    margin: 2px 0 0;
}

.table-right input.button {
    display: block;
    float: none;
    position: static;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 11px 18px;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #1879b2;
    border-radius: 4px;
    background: #258fce;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    font: bold 15px/1.2 Arial, Helvetica, sans-serif;
    text-align: center;
    text-shadow: none;
    top: auto;
    left: auto;
}

.table-right input.button:hover,
.table-right input.button:focus {
    border-color: #126a9d;
    background: #187db8;
    box-shadow: 0 0 0 3px rgba(37, 143, 206, .16);
    outline: none;
}

.table-right input.button:active {
    background: #126a9d;
    box-shadow: none;
}

.login-message {
    display: block;
    width: 100%;
    margin: 0 0 15px;
    padding: 10px 12px;
    border: 1px solid #e4a7b2;
    border-radius: 4px;
    background: #fff3f5;
    color: #a41530;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

@media (max-width: 520px) {
    .login-page {
        min-height: 100%;
        padding: 14px 8px;
        -webkit-box-align: start;
        -webkit-align-items: flex-start;
        align-items: flex-start;
    }

    .login-form {
        margin: auto 0;
    }

    .logo-left {
        padding: 21px 20px 17px;
    }

    .table-right {
        padding: 22px 20px 20px;
    }
}

@media (prefers-color-scheme: dark) {
    html,
    body {
        background: #111c24;
        color: #e7f0f5;
    }

    .login-box {
        border-color: #334a58;
        background: #1c2b35;
        box-shadow: 0 14px 36px rgba(0, 0, 0, .34);
    }

    .logo-left {
        border-bottom-color: #ef405f;
        background: #fff;
    }

    .table-right .text {
        color: #d6e5ed;
    }

    .table-right input.entryfield,
    .table-right select {
        border-color: #506977;
        background-color: #13212a;
        color: #f1f7fa;
    }

    .table-right input.entryfield:focus,
    .table-right select:focus {
        background-color: #13212a;
    }

    .login-message {
        border-color: #874253;
        background: #3a2029;
        color: #ffdce3;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
