* {
    box-sizing: border-box;
}

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

body {
    color: rgb(16, 29, 73);
    font: 14px/1.5 "Open Sans", Arial, sans-serif;
}

button,
input {
    font: inherit;
}

.login {
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 100vh;
}

.login__media {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: rgb(21, 35, 77);
}

.login__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login__panel {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.login__locale {
    position: absolute;
    top: 60px;
    right: 60px;
    margin: 0;
    font-weight: 700;
}

.login__content {
    width: 345px;
}

.login__content h1 {
    margin: 0 0 45px;
    font-size: 14px;
    line-height: 21px;
    text-align: center;
}

.login__errors {
    width: 345px;
    margin: -35px 0 14px;
    color: #a32323;
    font-size: 12px;
}

.login__errors p {
    margin: 0;
}

.login__field,
.login__password {
    width: 345px;
    height: 45px;
}

.login__field {
    margin-bottom: 46px;
}

.login__field input,
.login__password input {
    width: 100%;
    height: 45px;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 5px;
    outline: none;
    color: #777;
    background: rgb(231, 230, 230);
    font-weight: 700;
}

.login__field input:focus,
.login__password:focus-within input {
    border-color: rgb(16, 29, 73);
    background: #fff;
}

.login__password {
    position: relative;
}

.login__password input {
    padding-right: 42px;
}

.login__visibility {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 30px;
    height: 45px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0 10px 10px 0;
    color: #fff;
    background: rgb(16, 29, 73);
    cursor: pointer;
}

.login__visibility svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.login__remember {
    display: flex;
    height: 24px;
    margin-top: 46px;
    align-items: center;
    gap: 8px;
    color: #a9a9a9;
    cursor: pointer;
}

.login__remember input {
    width: 25.333333px;
    height: 22.916667px;
    margin: 0;
    appearance: none;
    border: 0.666667px solid rgb(108, 117, 125);
    border-radius: 5px;
    background-color: rgb(69, 77, 85);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
}

.login__remember input:checked {
    border-color: rgb(16, 29, 73);
    background-color: rgb(16, 29, 73);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3E%3C/svg%3E");
}

.login__submit {
    display: grid;
    width: 345px;
    height: 45px;
    margin-top: 16px;
    padding: 0;
    place-items: center;
    border: 2px solid rgb(231, 230, 230);
    border-radius: 5px;
    color: rgb(16, 29, 73);
    background: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.login__local-link {
    display: block;
    width: 345px;
    margin-top: 16px;
    color: rgb(16, 29, 73);
    text-align: center;
}

.login__visibility:focus-visible,
.login__submit:focus-visible {
    outline: 3px solid #ff5b00;
    outline-offset: 3px;
}

.login__remember input:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(16, 29, 73, 0.25);
}

.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;
}

@media (max-width: 48rem) {
    .login {
        display: block;
    }

    .login__media {
        display: none;
    }

    .login__panel {
        width: 100%;
    }

    .login__locale {
        top: 60px;
        right: 15px;
    }

    .login__content {
        width: min(345px, calc(100vw - 30px));
    }

    .login__field,
    .login__password,
    .login__errors,
    .login__submit {
        width: 100%;
    }

    .login__local-link {
        width: 100%;
    }

    .login__field {
        margin-bottom: 31px;
    }

    .login__remember {
        margin-top: 31px;
    }
}

.login__brand {
    width: 345px;
    max-width: 100%;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login__brand img {
    display: block;
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
}
