* {
    box-sizing: border-box;
}

html,
body.login-page {
    height: 100%;
}

body.login-page {
    margin: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
    background: #fff;
}

.login-shell {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(330px, 25vw, 430px);
}

.login-visual {
    position: relative;
    min-width: 0;
    height: 100vh;
    overflow: hidden;
    background: #111827;
}

.login-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: brightness(.84);
}

.login-panel {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vh, 40px) 40px;
    background: #fff;
}

.login-form {
    width: 100%;
    max-width: 330px;
}

.login-logo {
    display: block;
    width: min(300px, 82%);
    max-height: 230px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.login-brand-name {
    margin: 0 0 42px;
    text-align: center;
    color: #273043;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .02em;
}

.login-form h1 {
    margin: 0 0 34px;
    font-size: 28px;
    line-height: 1.1;
    color: #273043;
    text-align: center;
}

.login-form label {
    display: block;
    margin: 16px 0 8px;
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.login-form input {
    width: 100%;
    height: 50px;
    border: 1px solid #d7dce5;
    border-radius: 4px;
    padding: 0 14px;
    font-size: 15px;
}

.login-form input:focus {
    outline: none;
    border-color: #7a1027;
    box-shadow: 0 0 0 3px rgba(122, 16, 39, .14);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 50px;
}

.password-field button {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.password-field button:hover {
    background: #f3f4f6;
}

.password-field svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-field .eye-closed,
.password-field button.is-visible .eye-open {
    display: none;
}

.password-field button.is-visible .eye-closed {
    display: block;
}

.login-submit {
    margin-top: 32px;
    min-width: 120px;
    height: 48px;
    border: 0;
    border-radius: 5px;
    background: #7a1027;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 3px 0 #4f0918;
}

.login-submit:hover {
    background: #8f1730;
}

.login-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-left: 4px solid #7a1027;
    background: #fff0f3;
    color: #7a1027;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 860px) {
    body.login-page {
        overflow: auto;
    }

    .login-shell {
        min-height: 100vh;
        height: auto;
        grid-template-columns: 1fr;
    }

    .login-visual {
        height: 36vh;
        min-height: 260px;
    }

    .login-panel {
        height: auto;
        min-height: 64vh;
        align-items: flex-start;
        padding: 30px 24px 42px;
    }

    .login-logo {
        width: min(260px, 78%);
        max-height: 200px;
    }
}
