:root {
    --ink: #111813;
    --paper: #f2f5ee;
    --line: #e3e8e1;
    --muted: #68736a;
    --accent: #82c312;
    --accent-soft: #effbdc;
    --lime: #adf248;
    --forest: #10271b;
    --forest-2: #1d402c;
    --error: #cf0000;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
}

.login-page * {
    box-sizing: border-box;
}

.login-page {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Open Sans', Arial, sans-serif;
    min-width: 320px;
    min-height: 100vh;
    padding: 0 clamp(20px, 4vw, 68px);
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.login-header {
    width: min(1000px, 100%);
    height: 94px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(420px, .84fr) minmax(560px, 1.16fr);
    align-items: center;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-self: start;
    text-decoration: none;
}

.login-brand img {
    display: block;
    width: auto;
    height: 32px;
    object-fit: contain;
}

.login-header-meta {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 34px;
}

.login-header-note {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #7a867c;
}

.login-lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-lang-switch img {
    display: block;
    border-radius: 3px;
    filter: grayscale(75%) drop-shadow(0 1px 2px rgba(17, 24, 19, .35));
    transition: filter .2s ease;
}

.login-lang-switch img:hover,
.login-lang-switch img.language-selected {
    filter: grayscale(0%) drop-shadow(0 1px 3px rgba(17, 24, 19, .35));
}

.login-header-meta a {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #aeb7ad;
    padding-bottom: 5px;
}

.login-lang-switch a {
    display: block;
    border-bottom: 0;
    padding-bottom: 0;
}

.login-header-meta a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* SHELL */
.login-shell {
    width: min(1000px, 100%);
    min-height: 680px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(420px, .84fr) minmax(560px, 1.16fr);
    overflow: hidden;
    border: 1px solid rgba(22, 42, 29, .12);
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(23, 48, 31, .12);
}

@media (min-width: 981px) {
    .login-shell.register-shell {
        width: min(1180px, 100%);
        grid-template-columns: minmax(580px, 1.4fr) minmax(380px, 1fr);
    }
}

/* FORM PANEL */
.login-form-panel {
    display: flex;
    align-items: center;
    background: #fff;
}

.login-form-inner {
    width: min(470px, 100%);
    margin: auto;
    padding: 42px clamp(38px, 5vw, 76px);
}

@media (min-width: 981px) {
    .register-shell .login-form-inner {
        width: min(700px, 100%);
        padding: 42px clamp(32px, 4vw, 56px);
    }
}

.login-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 26px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .19em;
    text-transform: uppercase;
    color: #59665b;
}

.login-eyebrow i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 6px var(--accent-soft);
}

.login-form-panel h1 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0;
    overflow-wrap: break-word;
}

.login-form-panel h1 span {
    color: #76876f;
}

.login-lead {
    max-width: 410px;
    margin: 24px 0 28px;
    color: #627064;
    font-size: 15px;
    line-height: 1.55;
}

.form-alert,
.form-errors {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    list-style: none;
}

.form-alert.success {
    background: var(--accent-soft);
    color: #3c6b0f;
}

.form-alert.error,
.form-errors {
    background: #fbe3e3;
    color: var(--error);
}

.form-errors li + li {
    margin-top: 4px;
}

.manager-login-form > label,
.password-label label,
.form-field > label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 9px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.form-field {
    min-width: 0;
}

.form-field-full {
    grid-column: 1 / -1;
}

.register-form .login-consent {
    margin: 14px 0 0 !important;
}

.register-form .login-submit {
    margin-top: 16px;
}

.login-upload {
    width: 100%;
    padding: 14px 16px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: #f8faf6;
    font: 600 13px/1.4 'Open Sans', Arial, sans-serif;
    color: var(--ink);
}

#payment-element {
    margin: 4px 0 0;
}

.payment-error-text {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--error);
}

.login-trust-icons {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 18px auto 0;
}

#payment-element + .login-submit,
.login-trust-icons + .login-submit {
    margin-top: 20px;
}

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
}

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

.password-label a {
    font-size: 12px;
    font-weight: 700;
    color: #567646;
    text-decoration: none;
}

.password-label a:hover {
    text-decoration: underline;
}

.login-field {
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    padding: 0 16px;
    background: #f8faf6;
    transition: .2s ease;
}

.login-field:focus-within {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(130, 195, 18, .18);
}

.login-field > svg {
    width: 18px;
    height: 18px;
    stroke: #77827a;
    fill: none;
    stroke-width: 1.6;
}

.login-field input,
.login-field select {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 12px;
    font: 600 15px/1 'Open Sans', Arial, sans-serif;
    color: var(--ink);
}

.login-field input::placeholder {
    color: #9ba49c;
}

.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus,
.login-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f8faf6 inset !important;
    -webkit-text-fill-color: var(--ink) !important;
    caret-color: var(--ink);
    transition: background-color 9999s ease-in-out 0s;
}

.password-toggle {
    border: 0;
    background: transparent;
    padding: 6px;
    cursor: pointer;
    color: #748077;
}

.password-toggle svg {
    display: block;
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}

.login-consent {
    display: grid !important;
    grid-template-columns: 19px 1fr;
    gap: 10px;
    align-items: start;
    margin: 20px 0 22px !important;
    cursor: pointer;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #68736a;
}

.login-consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.login-consent > span {
    width: 18px;
    height: 18px;
    border: 1px solid #bdc6bc;
    border-radius: 6px;
    background: #fff;
    position: relative;
    margin-top: 1px;
}

.login-consent input:checked + span {
    border-color: var(--accent);
    background: var(--accent);
}

.login-consent input:checked + span:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid #152116;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-consent input:focus-visible + span {
    outline: 3px solid rgba(130, 195, 18, .25);
    outline-offset: 2px;
}

.login-consent em {
    font-style: normal;
    line-height: 1.5;
}

.login-consent a {
    color: #567646;
    font-weight: 800;
}

.login-submit {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

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

.login-submit b {
    font-size: 20px;
    font-weight: 400;
    color: var(--lime);
}

.login-submit:hover {
    background: #1c2b1f;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(21, 39, 26, .18);
}

.login-submit:disabled {
    cursor: default;
    opacity: .7;
    transform: none;
    box-shadow: none;
}

.login-register-hint {
    margin: 20px 0 0;
    text-align: center;
    font-size: 13px;
    color: #68736a;
}

.login-register-hint a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.login-register-hint a:hover {
    text-decoration: underline;
}

.login-clients {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.login-clients-text {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    color: #68736a;
}

.login-clients-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 26px;
}

.login-clients-logos img {
    display: block;
    height: 28px;
    width: auto;
    filter: grayscale(100%);
    opacity: .6;
    transition: filter .2s ease, opacity .2s ease;
}

.login-clients-logos a:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* VISUAL PANEL */
.login-visual {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 62px;
    color: #fff;
    background: radial-gradient(circle at 78% 22%, rgba(173, 242, 72, .22), transparent 28%), linear-gradient(145deg, var(--forest-2), var(--forest) 64%, #09170f);
}

.visual-noise {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.23'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.visual-copy {
    position: relative;
    z-index: 3;
}

.visual-copy > span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #b6c4b9;
}

.visual-copy h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 18px 0 0;
}

.visual-copy h2 em {
    font-style: normal;
    color: var(--lime);
}

.manager-stage {
    position: absolute;
    z-index: 2;
    inset: 200px 30px 42px 45px;
}

.stage-orbit {
    position: absolute;
    border: 1px solid rgba(191, 245, 111, .15);
    border-radius: 50%;
}

.orbit-one {
    width: 520px;
    height: 520px;
    right: -70px;
    top: -170px;
}

.orbit-two {
    width: 350px;
    height: 350px;
    right: 15px;
    top: -85px;
}

.manager-window {
    position: absolute;
    width: min(600px, 88%);
    height: 320px;
    right: 16px;
    bottom: 40px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: rgba(238, 244, 236, .95);
    box-shadow: 0 35px 80px rgba(0, 0, 0, .4);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-5deg) rotateX(1deg);
}

.manager-window-bar {
    height: 39px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    color: #829086;
    font-size: 8px;
    letter-spacing: .09em;
}

.manager-window-bar > span {
    display: flex;
    gap: 5px;
}

.manager-window-bar i {
    width: 6px;
    height: 6px;
    background: #dce2da;
    border-radius: 50%;
}

.manager-window-bar em {
    font-style: normal;
    letter-spacing: .1em;
}

.manager-window-body {
    display: grid;
    grid-template-columns: 58px 1fr;
    height: calc(100% - 39px);
}

.manager-window aside {
    background: #173323;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 21px;
    padding: 17px 0;
}

.manager-window aside strong {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #eef4eb;
    color: #274622;
    font-size: 23px;
    letter-spacing: -.1em;
}

.manager-window aside strong span,
.floating-push strong span {
    color: #a9ee43;
    font-size: 9px;
}

.manager-window aside i {
    width: 20px;
    height: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .16);
}

.manager-window aside i:first-of-type {
    background: #a9ee43;
}

.manager-canvas {
    padding: 24px;
}

.canvas-head span {
    display: block;
    color: #8a958c;
    font-size: 9px;
}

.canvas-head b {
    display: block;
    color: #162119;
    font-size: 21px;
    margin-top: 4px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0;
}

.metric-row i {
    font-style: normal;
    background: #fff;
    border: 1px solid #e3e8e1;
    border-radius: 10px;
    padding: 12px;
}

.metric-row span,
.chart-card > span {
    display: block;
    color: #8e988f;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.metric-row b {
    display: block;
    color: #1b2b1f;
    font-size: 16px;
    margin: 5px 0;
}

.metric-row small {
    color: #5f9951;
    font-size: 7px;
}

.chart-card {
    height: 95px;
    background: #fff;
    border: 1px solid #e3e8e1;
    border-radius: 10px;
    padding: 13px 14px 0;
}

.chart-card svg {
    width: 100%;
    height: 56px;
}

.chart-area {
    fill: url(#chartFill);
}

.chart-line {
    fill: none;
    stroke: #79ba1a;
    stroke-width: 3;
}

.floating-push {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #142117;
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .3);
}

.push-one {
    left: 3px;
    bottom: 15px;
    width: 300px;
    padding: 14px;
    animation: floatOne 5s ease-in-out infinite;
}

.push-one > strong {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #254521;
    color: #b8fa58;
    font-size: 28px;
    letter-spacing: -.13em;
}

.floating-push div {
    min-width: 0;
}

.floating-push small {
    display: block;
    font-size: 7px;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: #879188;
}

.floating-push div b {
    display: block;
    font-size: 11px;
    margin: 4px 0;
}

.floating-push div span {
    display: block;
    color: #758077;
    font-size: 8px;
}

.push-two {
    right: 0;
    top: -6px;
    padding: 12px 15px;
    animation: floatTwo 6s ease-in-out infinite;
}

.push-two > span {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #dff9bb;
    color: #436f17;
    font-weight: 900;
}

.visual-foot {
    position: absolute;
    z-index: 3;
    left: 62px;
    right: 62px;
    bottom: 27px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #84988a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
}

.visual-foot span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visual-foot i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9be22d;
    box-shadow: 0 0 0 5px rgba(155, 226, 45, .09);
}

.visual-foot b {
    font-weight: 700;
}

/* FOOTER */
.login-footer {
    width: min(1000px, 100%);
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #7c867d;
    font-size: 11px;
}

.login-footer nav {
    display: flex;
    gap: 24px;
}

.login-footer a {
    color: inherit;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

@keyframes floatOne {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes floatTwo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

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

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-field + .form-field {
        margin-top: 18px;
    }

    .login-header {
        display: flex;
        justify-content: space-between;
        height: 82px;
    }

    .login-header-note {
        display: none;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .login-form-inner {
        width: min(560px, 100%);
        padding: 52px 38px;
    }

    .login-visual {
        min-height: 540px;
    }

    .manager-stage {
        inset: 170px 20px 30px 30px;
    }

    .login-footer {
        padding: 24px 0;
    }
}

@media (max-width: 620px) {
    .login-header {
        width: calc(100% + 16px);
        margin-left: -8px;
        margin-right: -8px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        gap: 14px;
        padding: 26px 0 14px;
    }

    .login-brand img {
        height: 28px;
    }

    .login-header-meta {
        justify-content: center;
    }

    .login-header-meta a {
        font-size: 12px;
    }

    .login-shell {
        border-radius: 24px;
    }

    .login-form-inner {
        padding: 42px 24px;
    }

    .login-lead {
        font-size: 14px;
        margin: 20px 0 26px;
    }

    .login-visual {
        min-height: 480px;
        padding: 36px 26px;
    }

    .manager-stage {
        inset: 150px 10px 24px 18px;
    }

    .manager-window {
        width: 92%;
        height: 250px;
        bottom: 36px;
    }

    .manager-canvas {
        padding: 14px;
    }

    .metric-row {
        gap: 5px;
        margin: 10px 0;
    }

    .metric-row i {
        padding: 8px;
    }

    .chart-card {
        height: 76px;
    }

    .chart-card svg {
        height: 40px;
    }

    .push-one {
        width: 250px;
    }

    .push-two {
        display: none;
    }

    .visual-foot {
        left: 26px;
        right: 26px;
        bottom: 18px;
    }

    .login-footer {
        display: block;
        text-align: center;
    }

    .login-footer nav {
        margin-top: 14px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-push {
        animation: none;
    }

    .login-submit {
        transition: none;
    }
}
