@font-face {
    font-family: Inter;
    src: url("../realtime-upgrade/fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

.login-page {
    margin: 0;
    background: white;
    color: #14263a;
    font: 16px Inter, Arial, sans-serif;
}

.login-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 100vh;
    min-height: 100svh;
}

.login-photo {
    margin: 12px 20px 16px 18px;
    border-radius: 9px;
    background: url("../images/login2.webp") left top / cover no-repeat;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 32px;
}

.login-panel .card {
    width: 100%;
    max-width: 410px;
    padding: 38px 36px;
    border: 1px solid #bfd0e1;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 12px 32px -12px rgba(27, 57, 88, .20);
    font-family: inherit;
}

.login-panel .card-header,
.login-panel .card-body {
    padding: 0;
}

.login-logo {
    display: block;
    width: 158px;
    height: auto;
    margin: 0 auto 27px;
}

.login-panel h1 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 26px;
    color: #35465b;
    font: 540 16px/1.5 Inter, Arial, sans-serif;
    letter-spacing: -.02em;
}

.login-panel h1::before,
.login-panel h1::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0e5eb;
}

.login-field + .login-field {
    margin-top: 17px;
}

.login-field label {
    display: block;
    margin: 0 0 7px;
    color: #2c3c50;
    font-size: 13px;
    font-weight: 560;
    line-height: normal;
}

.login-control {
    position: relative;
}

.login-control input {
    display: block;
    width: 100%;
    height: 48px;
    border: 1px solid #cbd3de;
    border-radius: 9px;
    padding: 0 12px 0 42px;
    background: #fff;
    color: #172d48;
    font: 400 14px Inter, Arial, sans-serif;
}

.login-control input::placeholder {
    color: #687789;
}

.login-control input[aria-invalid="true"] {
    border-color: var(--bs-danger);
}

.login-panel :is(input, button):focus-visible {
    outline: 2px solid var(--bs-info);
    outline-offset: 2px;
}

.login-panel svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    color: #71829a;
    pointer-events: none;
}

#login-password {
    padding-right: 46px;
}

.login-eye {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 48px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #61728a;
}

.login-eye[aria-pressed="false"] .login-eye-slash {
    display: none;
}

.login-panel .login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 47px;
    margin: 23px 0 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #fff;
    font: 570 14px Inter, Arial, sans-serif;
    text-transform: none;
}

@media (max-width: 740px) {
    .login-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: clamp(132px, 23svh, 210px) auto;
        padding: 10px;
    }

    .login-photo {
        margin: 0;
        background-position: center 42%;
    }

    .login-panel {
        align-items: start;
        padding: 26px 8px;
    }

    .login-panel .card {
        padding: 28px 20px;
    }

    .login-logo {
        width: 142px;
        margin-bottom: 22px;
    }

    .login-control input {
        font-size: 16px;
    }
}
