.auth-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(183, 213, 43, .14), transparent 28%),
        #edf3ef;
}

.login-page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 34px;
}

.login-window {
    width: min(1180px, 100%);
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(430px, .96fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce6e0;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(13, 49, 51, .16);
}

.login-brand-panel {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px 50px 38px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(183, 213, 43, .20), transparent 30%),
        linear-gradient(145deg, #123f3c 0%, #0d3133 52%, #082629 100%);
}

.login-brand-panel::before,
.login-brand-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.login-brand-panel::before {
    width: 500px;
    height: 500px;
    right: -250px;
    bottom: -225px;
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow:
        0 0 0 88px rgba(255, 255, 255, .025),
        0 0 0 176px rgba(255, 255, 255, .018);
}

.login-brand-panel::after {
    width: 260px;
    height: 260px;
    left: -175px;
    top: 185px;
    background: rgba(183, 213, 43, .045);
}

.login-brand-top,
.login-brand-copy,
.login-brand-footer {
    position: relative;
    z-index: 1;
}

.login-brand-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.login-logo-wrap {
    width: 160px;
    min-height: 110px;
    display: grid;
    place-items: center;
    padding: 16px 18px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .12);
}

.login-logo-wrap img {
    width: 100%;
    height: auto;
}

.login-private-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.login-brand-copy {
    max-width: 565px;
    padding: 50px 0 44px;
}

.login-kicker {
    margin: 0 0 17px;
    color: #b9dc59;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.login-brand-copy h1 {
    margin: 0 0 22px;
    max-width: 550px;
    color: #fff;
    font-size: clamp(42px, 4.1vw, 61px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.login-brand-copy>p:last-child {
    max-width: 490px;
    margin: 0;
    color: rgba(255, 255, 255, .70);
    font-size: 15px;
    line-height: 1.7;
}

.login-brand-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.login-brand-footer span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
    color: rgba(255, 255, 255, .64);
    font-size: 10px;
    font-weight: 700;
}

.login-form-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 62px 70px 34px;
    background: #fbfdfb;
}

.login-form-wrap {
    width: min(420px, 100%);
    margin: auto;
}

.login-form-heading {
    margin-bottom: 30px;
}

.login-form-heading .eyebrow {
    margin-bottom: 9px;
    color: #438126;
    font-size: 11px;
    letter-spacing: .105em;
}

.login-form-heading h2 {
    margin: 0 0 9px;
    color: #162326;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.login-form-heading>p:last-child {
    margin: 0;
    color: #74817d;
    font-size: 14px;
}

.auth-form {
    display: grid;
    gap: 19px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label,
.auth-label-row label {
    display: block;
    margin: 0;
    color: #263533;
    font-size: 12px;
    font-weight: 700;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.auth-field input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #d8e2dd;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: #172522;
    font-size: 13px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-field input::placeholder {
    color: #a3ada8;
}

.auth-field input:focus {
    border-color: #58a72e;
    box-shadow: 0 0 0 4px rgba(76, 155, 31, .11);
    background: #fff;
}

.auth-submit {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
    padding: 0 18px 0 20px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(90deg, #3e8526 0%, #55aa24 100%);
    color: #fff;
    box-shadow: 0 11px 26px rgba(70, 145, 32, .20);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(70, 145, 32, .25);
}

.auth-submit span:last-child {
    font-size: 17px;
}

.auth-alert {
    margin: -6px 0 20px;
    padding: 12px 14px;
    border: 1px solid #f1cccc;
    border-radius: 10px;
    background: #fff3f3;
    color: #a93434;
    font-size: 12px;
    font-weight: 600;
}

.login-help {
    display: grid;
    gap: 3px;
    margin-top: 27px;
    padding-top: 20px;
    border-top: 1px solid #e7ece9;
    color: #7c8884;
    font-size: 11px;
}

.login-help strong {
    color: #3d4c48;
}

.login-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 34px;
    color: #95a09b;
    font-size: 9.5px;
}

.login-credit a {
    color: #66756f;
    font-weight: 700;
    transition: color .15s ease;
}

.login-credit a:hover {
    color: #428625;
}

.install-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.install-wrap .auth-card {
    width: min(540px, 100%);
    padding: 34px;
    background: #fff;
    border: 1px solid #dce6e0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(13, 49, 51, .12);
}

.install-logo {
    width: 145px;
    margin: 0 0 24px;
}

.install-wrap .auth-form label {
    display: grid;
    gap: 7px;
    color: #263533;
    font-size: 12px;
    font-weight: 700;
}

.install-wrap .auth-form input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #d8e2dd;
    border-radius: 10px;
    outline: none;
}

.install-wrap .button--primary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 10px;
    background: linear-gradient(90deg, #3e8526, #55aa24);
    color: #fff;
    font-weight: 800;
}

.alert {
    padding: 12px 14px;
    margin: 14px 0;
    border-radius: 10px;
    font-size: 12px;
}

.alert--error {
    background: #fff0f0;
    color: #a92f2f;
}

.alert--success {
    background: #eef8e7;
    color: #367715;
}

@media (max-width: 900px) {
    .login-page-shell {
        padding: 0;
    }

    .login-window {
        min-height: 100vh;
        grid-template-columns: 1fr;
        border: 0;
        border-radius: 0;
    }

    .login-brand-panel {
        min-height: 265px;
        padding: 25px 26px;
    }

    .login-brand-top {
        align-items: center;
    }

    .login-logo-wrap {
        width: 128px;
        min-height: 84px;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .login-private-badge {
        min-height: 30px;
        font-size: 9px;
    }

    .login-brand-copy {
        padding: 32px 0 12px;
    }

    .login-brand-copy h1 {
        max-width: 500px;
        margin-bottom: 12px;
        font-size: 34px;
    }

    .login-brand-copy>p:last-child {
        display: none;
    }

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

    .login-form-panel {
        padding: 38px 25px 24px;
    }

    .login-credit {
        padding-top: 38px;
    }
}

@media (max-width: 520px) {
    .login-brand-panel {
        min-height: 238px;
        padding: 21px 20px;
    }

    .login-logo-wrap {
        width: 112px;
        min-height: 74px;
    }

    .login-private-badge {
        padding: 0 9px;
    }

    .login-brand-copy {
        padding-top: 25px;
    }

    .login-kicker {
        margin-bottom: 10px;
        font-size: 9px;
    }

    .login-brand-copy h1 {
        font-size: 29px;
    }

    .login-form-panel {
        padding: 31px 20px 20px;
    }

    .login-form-heading h2 {
        font-size: 29px;
    }

    .login-credit-divider {
        display: none;
    }

    .login-credit {
        display: grid;
        gap: 3px;
        text-align: center;
    }
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.auth-label-row label {
    margin: 0;
}

.auth-forgot-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-green, #4d9f22);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.auth-forgot-link:hover {
    opacity: 0.72;
    text-decoration: underline;
}