* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: #17112e;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

body.homebudget {
    --station-deep: #17083f;
    --station-mid: #432198;
    --station-accent: #35b729;
    --station-accent-dark: #28951e;
    --station-soft: #f6f7fb;
    --station-text: #18112f;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #17083f 0%, #432198 100%);
}

body.protosoft {
    --station-deep: #142443;
    --station-mid: #23558e;
    --station-accent: #ff6b22;
    --station-accent-dark: #d95716;
    --station-soft: #f5f8fc;
    --station-text: #162136;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #142443 0%, #23558e 100%);
}

body.homebudget::before,
body.protosoft::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--station-soft);
    clip-path: polygon(67% 0, 100% 0, 100% 100%, 23% 100%);
    pointer-events: none;
}

.station-login-shell {
    position: relative;
    z-index: 1;
    width: calc(100% - 112px);
    min-height: 100vh;
    margin: 0 56px;
    display: grid;
    grid-template-columns: minmax(0, 650px) minmax(160px, 1fr) minmax(360px, 440px);
    gap: 0;
    align-items: start;
    padding: clamp(110px, 14vh, 136px) 0 56px;
}

.station-login-hero {
    grid-column: 1;
    color: #fff;
}

.station-login-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 44px;
}

.station-login-brand img {
    display: block;
    width: 300px;
    height: auto;
}

.station-login-panel-mark {
    display: block;
    width: 70px;
    height: auto;
    margin-bottom: 22px;
}

.station-login-panel-mark img {
    display: block;
    width: 70px;
    height: auto;
}

.station-login-kicker {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    color: #d8ffc0;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.station-login-panel .station-login-kicker {
    margin-bottom: 18px;
    border-color: rgba(85, 183, 46, .26);
    background: #f0fde9;
    color: #28951e;
}

.station-login-hero h1 {
    max-width: 600px;
    margin: 22px 0 18px;
    color: #fff;
    font-size: 58px;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 0;
}

.station-login-hero p {
    max-width: 590px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .84);
    font-size: 19px;
    line-height: 1.62;
}

.station-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 6px;
    color: #fff;
    background: var(--station-accent);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
}

.station-login-button:focus,
.station-login-button:hover {
    background: var(--station-accent-dark);
}

.station-login-panel {
    grid-column: 3;
    align-self: end;
    justify-self: end;
    border: 1px solid rgba(24, 17, 47, .12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(17, 6, 54, .22);
    padding: 30px;
    margin-bottom: clamp(70px, 14vh, 140px);
}

.station-login-panel h2 {
    margin: 0 0 10px;
    color: var(--station-text);
    font-size: 26px;
    line-height: 1.18;
}

.station-login-panel p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.58;
}

@media (max-width: 860px) {
    body.homebudget {
        background: linear-gradient(180deg, #17083f 0%, #432198 48%, #f6f7fb 48%, #f6f7fb 100%);
    }

    body.protosoft {
        background: linear-gradient(180deg, #142443 0%, #23558e 48%, #f5f8fc 48%, #f5f8fc 100%);
    }

    body.homebudget::before,
    body.protosoft::before {
        display: none;
    }

    .station-login-shell {
        grid-template-columns: 1fr;
        width: min(100% - 28px, 640px);
        margin: 0 auto;
        gap: 30px;
        padding: 34px 0;
    }

    .station-login-hero,
    .station-login-panel {
        grid-column: auto;
    }

    .station-login-brand {
        margin-bottom: 34px;
    }

    .station-login-brand img {
        width: 260px;
    }

    .station-login-hero h1 {
        font-size: 40px;
    }

    .station-login-hero p {
        font-size: 17px;
    }
}
