:root {
    --paper: #f4f7f8;
    --panel: #ffffff;
    --ink: #002b5c;
    --text: #202d3b;
    --text-on-dark: #e9e1ca;
    --text-accent: #3d765e;
    --muted: #6f746f;
    --line: #c9d7e1;
    --accent: #4a7d00;
    --error: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

button,
input {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-page {
    display: grid;
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
    align-items: stretch;
}

.login-introduction {
    display: flex;
    min-height: 100vh;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 64px 112px 64px 0;
    text-align: center;
}

.login-logo {
    display: block;
    width: min(100%, 560px);
    height: auto;
    object-fit: contain;
}

.login-panel {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 44px 0 44px 44px;
    border-left: 1px solid var(--line);
}

.login-card {
    width: 100%;
    padding: 43px 42px 35px;
    background: var(--ink);
    color: var(--text-on-dark);
    box-shadow: 0 14px 36px rgb(0 43 92 / 14%);
}

.login-card-header h2 {
    margin: 0 0 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.15rem;
    letter-spacing: -0.035em;
}

.login-card-header p {
    color: #b8bab1;
    font-size: 0.78rem;
    line-height: 1.5;
}

.login-card-header p {
    margin: 0;
}

#login-form {
    margin-top: 34px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.login-field > span:first-child,
.login-field > label {
    color: #d1c8ad;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.login-field input {
    width: 100%;
    height: 49px;
    padding: 0 13px;
    border: 1px solid #6b8195;
    border-radius: 0;
    outline: 0;
    background: #073b72;
    color: #f2ead4;
    font-family: "Courier New", Courier, monospace;
}

.login-field input:focus {
    border-color: #8bd600;
    box-shadow: 0 0 0 3px rgb(139 214 0 / 14%);
}

.password-control {
    position: relative;
    display: block;
}

.password-control input {
    padding-right: 61px;
}

.password-control button {
    position: absolute;
    top: 50%;
    right: 8px;
    min-width: 42px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #c9b98e;
    cursor: pointer;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: translateY(-50%);
}

.password-control button:hover,
.password-control button:focus-visible {
    color: #fff;
    outline: 1px solid #8bd600;
}

.login-message {
    min-height: 20px;
    margin: 17px 0 8px;
    color: #ee9b8f;
    font-size: 0.74rem;
    line-height: 1.4;
}

.login-message.is-success {
    color: #91c7ae;
}

.password-recovery-link {
    display: inline-block;
    margin: -2px 0 20px;
    color: #d1c8ad;
    font-size: 0.72rem;
    text-decoration: none;
}

.password-recovery-link:hover,
.password-recovery-link:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.login-button {
    display: flex;
    width: 100%;
    min-height: 49px;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    border: 1px solid var(--paper);
    background: var(--paper);
    color: var(--text);
    cursor: pointer;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 150ms ease, color 150ms ease;
}

.login-button:hover,
.login-button:focus-visible {
    background: transparent;
    color: var(--text-on-dark);
}

.login-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 850px) {
    .login-page {
        width: min(100% - 28px, 620px);
        grid-template-columns: 1fr;
        padding: 38px 0;
    }

    .login-introduction,
    .login-panel {
        min-height: auto;
    }

    .login-introduction {
        padding: 20px 8px 42px;
    }

    .login-logo {
        width: min(100%, 440px);
    }

    .login-panel {
        padding: 34px 0 0;
        border-top: 2px solid var(--ink);
        border-left: 0;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 34px 24px 29px;
    }

    .login-logo {
        width: min(100%, 360px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
