:root {
    --paper: #f7f4ed;
    --paper-strong: #efe8da;
    --surface: #ffffff;
    --surface-soft: #f8faf6;
    --ink: #18231f;
    --muted: #62736d;
    --line: #dce3da;
    --green: #245c4f;
    --green-dark: #173d35;
    --teal: #2f7f89;
    --amber: #c98922;
    --red: #b55643;
    --blue: #456f9f;
    --shadow: 0 24px 70px rgba(31, 45, 39, .16);
    --radius: 8px;
    --font: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    font-family: var(--font);
    background:
        linear-gradient(135deg, rgba(247, 244, 237, .96), rgba(238, 246, 242, .96) 52%, rgba(250, 239, 232, .96)),
        repeating-linear-gradient(90deg, rgba(36, 92, 79, .05) 0 1px, transparent 1px 120px);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 36px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    margin-bottom: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    font-weight: 800;
    background: var(--green);
    border-radius: var(--radius);
    box-shadow: 0 12px 24px rgba(36, 92, 79, .22);
}

.brand-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.brand-text strong {
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.1;
}

.brand-text small {
    color: var(--muted);
    font-size: 13px;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(36, 92, 79, .16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .62);
}

.topnav a {
    min-height: 38px;
    padding: 10px 13px;
    border-radius: 6px;
    color: #344840;
    font-size: 14px;
}

.topnav a:hover,
.topnav a:focus-visible {
    outline: 0;
    background: #edf4f0;
}

.entry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
    gap: 24px;
    align-items: stretch;
}

.platform-intro,
.login-panel {
    border: 1px solid rgba(36, 92, 79, .14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow);
}

.platform-intro {
    padding: 34px;
    overflow: hidden;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 16px;
    font-size: 48px;
    line-height: 1.04;
    letter-spacing: 0;
}

.lead {
    max-width: 760px;
    margin-bottom: 24px;
    color: #44554f;
    font-size: 18px;
    line-height: 1.6;
}

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.primary-link,
.secondary-link,
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 7px;
    font-weight: 700;
}

.primary-link,
.submit-button {
    border: 1px solid var(--green);
    color: #fff;
    background: var(--green);
}

.primary-link {
    padding: 11px 18px;
}

.secondary-link {
    padding: 11px 16px;
    border: 1px solid var(--line);
    color: var(--green-dark);
    background: #fff;
}

.primary-link:hover,
.submit-button:hover {
    background: var(--green-dark);
}

.secondary-link:hover {
    border-color: rgba(36, 92, 79, .28);
    background: #f3f8f5;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.metric {
    min-height: 94px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.metric strong {
    display: block;
    margin-bottom: 7px;
    color: var(--green-dark);
    font-size: 28px;
    line-height: 1;
}

.metric span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.preview-stage {
    display: grid;
    grid-template-columns: minmax(190px, .38fr) minmax(0, .62fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcf8;
}

.preview-copy {
    display: grid;
    gap: 8px;
}

.preview-copy strong {
    color: var(--green-dark);
    font-size: 18px;
}

.preview-copy span {
    color: var(--muted);
    line-height: 1.45;
}

.preview-stage img {
    width: 100%;
    max-width: 520px;
    justify-self: end;
    border-radius: var(--radius);
}

.login-panel {
    padding: 26px;
}

.login-heading {
    margin-bottom: 22px;
}

.secure-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 700;
    background: #e6f1ec;
}

.login-heading h2,
.section-heading h2 {
    margin-bottom: 9px;
    font-size: 27px;
    line-height: 1.18;
}

.login-heading p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.45;
}

.login-form {
    display: grid;
    gap: 10px;
}

.login-form label:not(.check-row) {
    color: #31443d;
    font-size: 14px;
    font-weight: 700;
}

.login-form input,
.login-form select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cdd8d2;
    border-radius: 7px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
}

.login-form input:focus,
.login-form select:focus {
    outline: 3px solid rgba(47, 127, 137, .18);
    border-color: var(--teal);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 50px;
}

.icon-button {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 6px;
    color: var(--green);
    background: #edf4f0;
    cursor: pointer;
}

.icon-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.check-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 8px 0 4px;
    color: #52645e;
    font-size: 14px;
    line-height: 1.35;
}

.check-row input {
    min-height: 18px;
    margin: 1px 0 0;
    accent-color: var(--green);
}

.submit-button {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    cursor: pointer;
}

.form-feedback {
    min-height: 22px;
    margin: 3px 0 0;
    color: var(--green-dark);
    font-size: 14px;
    line-height: 1.4;
}

.support-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.support-row a {
    color: var(--green);
    font-weight: 700;
}

.module-band {
    margin-top: 24px;
    padding: 30px;
    border: 1px solid rgba(36, 92, 79, .12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .72);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.module-card {
    min-height: 154px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.module-card span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    background: var(--blue);
}

.module-card:nth-child(2) span {
    background: var(--amber);
}

.module-card:nth-child(3) span {
    background: var(--red);
}

.module-card:nth-child(4) span {
    background: var(--teal);
}

.module-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.module-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.48;
}

@media (max-width: 940px) {
    .entry-grid {
        grid-template-columns: 1fr;
    }

    .login-panel {
        order: -1;
    }

    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 22px, 1180px);
        padding-top: 14px;
    }

    .topbar,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .topnav {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .platform-intro,
    .login-panel,
    .module-band {
        padding: 20px;
    }

    h1 {
        font-size: 34px;
    }

    .lead {
        font-size: 16px;
    }

    .metrics,
    .preview-stage,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .preview-stage img {
        justify-self: stretch;
    }
}

@media (max-width: 420px) {
    .brand-text strong {
        font-size: 16px;
    }

    .intro-actions,
    .support-row {
        flex-direction: column;
    }

    .primary-link,
    .secondary-link {
        width: 100%;
    }
}
