body.auth {
    background: #101923;
}

body.auth > .container {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

.login-screen {
    --accent: #79b9e9;
    --button: #255c9b;
    display: grid;
    grid-template-columns: minmax(0, 56%) minmax(420px, 44%);
    min-height: 100vh;
    min-height: 100svh;
    color: #f7f8fa;
}

.login-screen--payments {
    --accent: #f3bb76;
    --button: #285c91;
}

.login-screen--apibridge {
    --accent: #7bd7cb;
    --button: #226d75;
}

.login-story {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(32px, 5vw, 76px);
    background-color: #10233b;
    background-image: linear-gradient(90deg, rgba(7, 21, 42, .83), rgba(7, 21, 42, .43)),
        url('../img/control-login-background.webp');
    background-position: center;
    background-size: cover;
}

.login-screen--payments .login-story {
    background-color: #172538;
    background-image: linear-gradient(90deg, rgba(8, 20, 39, .82), rgba(8, 20, 39, .37)),
        url('../img/login-background.jpg');
    background-position: 60% center;
}

.login-screen--apibridge .login-story {
    background-color: #102c38;
    background-image: linear-gradient(120deg, rgba(5, 24, 37, .96), rgba(10, 58, 67, .8)),
        repeating-linear-gradient(0deg, transparent 0, transparent 79px, rgba(115, 207, 208, .18) 80px),
        repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(115, 207, 208, .18) 80px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.login-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.login-brand strong {
    display: block;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.06em;
}

.login-brand span {
    display: block;
    margin-top: 6px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.login-story-copy {
    max-width: 600px;
    padding: 64px 0;
}

.login-eyebrow,
.login-panel-label {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
}

.login-story h1 {
    margin: 20px 0 22px;
    font-size: clamp(42px, 4.2vw, 70px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.06;
}

.login-story-description {
    max-width: 450px;
    margin: 0;
    color: #d2dce6;
    font-size: 17px;
    line-height: 1.65;
}

.login-story-footer,
.login-panel-footer {
    margin: 0;
    font-size: 12px;
}

.login-story-footer {
    color: #c4d0df;
}

.login-panel {
    min-width: 0;
    background: #141a20;
}

.login-panel-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    min-height: 100svh;
    max-width: 610px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 76px);
}

.login-panel-label {
    margin: 0;
}

.login-panel-content {
    width: 100%;
    max-width: 440px;
    margin: 64px auto;
}

.login-product-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.login-product-label span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.login-panel h2 {
    margin: 0 0 14px;
    color: #f7f8fa;
    font-size: clamp(34px, 3vw, 48px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.12;
}

.login-intro {
    margin: 0 0 30px;
    color: #bac3cd;
    font-size: 16px;
    line-height: 1.6;
}

.login-dms-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 8px;
    background: var(--button);
    color: #fff;
    font-size: 16px;
    font-weight: 650;
    text-align: center;
    transition: background-color .15s ease, border-color .15s ease;
}

.login-dms-button:hover,
.login-dms-button:focus {
    border-color: var(--accent);
    background: #307db0;
    color: #fff;
    text-decoration: none;
}

.login-screen--apibridge .login-dms-button:hover,
.login-screen--apibridge .login-dms-button:focus {
    background: #2b858a;
}

.login-dms-button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.login-dms-button img {
    width: 24px;
    height: 24px;
    flex: none;
    object-fit: contain;
}

.login-button-arrow {
    margin-left: auto;
    font-size: 20px;
    line-height: 1;
}

.login-dms-hint {
    margin: 13px 0 0;
    color: #9ca9b7;
    font-size: 13px;
    text-align: center;
}

.login-dms-unavailable {
    padding: 18px;
    border: 1px solid #855d43;
    border-radius: 8px;
    background: #302820;
    color: #f7d3b4;
}

.login-help {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid #343d47;
    color: #aeb9c4;
    font-size: 13px;
    line-height: 1.5;
}

.login-help strong {
    color: #e9eef3;
    font-weight: 600;
}

.login-panel-footer {
    color: #8493a2;
    text-align: center;
}

@media (max-width: 900px) {
    .login-screen {
        grid-template-columns: 1fr;
    }

    .login-story {
        min-height: 290px;
        padding: 28px 32px;
        background-position: center 58%;
    }

    .login-story-copy {
        padding: 28px 0 16px;
    }

    .login-story h1 {
        max-width: 620px;
        margin: 10px 0;
        font-size: clamp(30px, 6vw, 44px);
    }

    .login-story-description {
        font-size: 14px;
    }

    .login-story-footer {
        display: none;
    }

    .login-panel-inner {
        min-height: 490px;
        padding: 32px;
    }

    .login-panel-content {
        margin: 36px auto;
    }
}

@media (max-width: 575px) {
    .login-story {
        min-height: 270px;
        padding: 24px;
    }

    .login-brand img {
        width: 36px;
        height: 36px;
    }

    .login-brand strong {
        font-size: 22px;
    }

    .login-story-copy {
        padding: 20px 0 4px;
    }

    .login-story h1 {
        font-size: 30px;
    }

    .login-story-description {
        font-size: 13px;
    }

    .login-panel-inner {
        min-height: 470px;
        padding: 28px 24px;
    }

    .login-panel h2 {
        font-size: 36px;
    }

    .login-panel-content {
        margin: 30px auto;
    }
}
