:root {
    --forest: #34665a;
    --forest-dark: #244d44;
    --leaf: #75a66f;
    --sprout: #b6d979;
    --sun: #f6bd5c;
    --ink: #20312d;
    --muted: #65756f;
    --line: #dbe5df;
    --paper: #ffffff;
    --mist: #f2f7f3;
    --danger: #b4233e;
    --success: #277a52;
    --shadow: 0 24px 70px rgba(36, 77, 68, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--mist);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(182,217,121,.25), transparent 28rem),
        radial-gradient(circle at 90% 18%, rgba(246,189,92,.18), transparent 26rem),
        var(--mist);
    font-family:
        Inter, ui-rounded, "SF Pro Rounded", "Segoe UI",
        system-ui, -apple-system, sans-serif;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.hidden {
    display: none !important;
}

.site-header {
    width: min(1220px, calc(100% - 32px));
    min-height: 82px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--forest-dark);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 15px;
    background: var(--paper);
    box-shadow: 0 8px 25px rgba(36,77,68,.12);
}

.header-link,
.text-button {
    border: 0;
    color: var(--forest);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.auth-layout,
.dashboard {
    width: min(1220px, calc(100% - 32px));
    margin: 22px auto 70px;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    gap: clamp(35px, 7vw, 90px);
    align-items: center;
    min-height: calc(100vh - 185px);
}

.introduction {
    padding: clamp(10px, 3vw, 35px);
}

.eyebrow {
    margin: 0 0 9px;
    color: var(--forest);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.introduction h1 {
    max-width: 760px;
    margin: 0;
    color: var(--forest-dark);
    font-size: clamp(3.1rem, 7vw, 6.7rem);
    line-height: .95;
    letter-spacing: -.075em;
}

.introduction h1 span {
    color: var(--leaf);
}

.lead {
    max-width: 660px;
    margin: 28px 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    line-height: 1.65;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}

.feature-row article {
    padding: 17px;
    border: 1px solid rgba(52,102,90,.1);
    border-radius: 20px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(12px);
}

.feature-row article > span {
    display: block;
    margin-bottom: 8px;
    font-size: 1.55rem;
}

.feature-row strong,
.feature-row small {
    display: block;
}

.feature-row strong {
    color: var(--forest-dark);
    font-size: .92rem;
}

.feature-row small {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.45;
}

.auth-card {
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(52,102,90,.09);
    border-radius: 34px;
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 9px;
    background: #edf3ef;
}

.tab {
    min-height: 49px;
    border: 0;
    border-radius: 17px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-weight: 900;
}

.tab.active {
    color: var(--forest-dark);
    background: var(--paper);
    box-shadow: 0 6px 20px rgba(36,77,68,.09);
}

.auth-panel {
    display: none;
    padding: clamp(28px, 5vw, 48px);
}

.auth-panel.active {
    display: block;
}

.panel-heading {
    margin-bottom: 27px;
}

.panel-heading h2 {
    margin: 0;
    color: var(--forest-dark);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.03;
    letter-spacing: -.045em;
}

.panel-heading p:not(.eyebrow) {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.centered {
    text-align: center;
}

.large-icon {
    margin-bottom: 18px;
    font-size: 4.5rem;
}

form {
    display: grid;
    gap: 17px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--forest-dark);
    font-size: .92rem;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 54px;
    padding: 12px 15px;
    border: 2px solid var(--line);
    border-radius: 15px;
    outline: none;
    color: var(--ink);
    background: var(--paper);
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

input:focus {
    border-color: var(--leaf);
    box-shadow: 0 0 0 4px rgba(117,166,111,.16);
}

.password-wrap {
    position: relative;
    display: block;
}

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

.show-password {
    position: absolute;
    top: 50%;
    right: 9px;
    min-width: 56px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    color: var(--forest);
    background: var(--mist);
    cursor: pointer;
    font-size: .8rem;
    font-weight: 900;
    transform: translateY(-50%);
}

.primary-button,
.secondary-button {
    min-height: 53px;
    padding: 12px 19px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 900;
}

.primary-button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--forest), var(--forest-dark));
    box-shadow: 0 12px 28px rgba(36,77,68,.22);
}

.primary-button:hover {
    transform: translateY(-1px);
}

.primary-button:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.secondary-button {
    border: 2px solid var(--line);
    color: var(--forest);
    background: var(--paper);
}

.secondary-button:disabled {
    opacity: .7;
    cursor: default;
}

.text-button {
    min-height: 42px;
}

.password-help {
    margin: -7px 0 0;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.5;
}

.notice {
    margin: 18px 28px 0;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.45;
}

.notice.error {
    color: var(--danger);
    background: #fff0f3;
}

.notice.success {
    color: var(--success);
    background: #edf9f1;
}

.dashboard {
    min-height: calc(100vh - 185px);
}

.dashboard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin: 35px 0 28px;
}

.dashboard-heading h1 {
    margin: 0;
    color: var(--forest-dark);
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: .95;
    letter-spacing: -.065em;
}

.dashboard-heading p:not(.eyebrow) {
    color: var(--muted);
}

.account-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    padding: 13px 17px;
    border-radius: 19px;
    background: var(--paper);
    box-shadow: 0 12px 35px rgba(36,77,68,.1);
}

.account-badge > span {
    font-size: 2rem;
}

.account-badge strong,
.account-badge small {
    display: block;
}

.account-badge small {
    overflow: hidden;
    max-width: 250px;
    color: var(--muted);
    text-overflow: ellipsis;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 18px;
}

.dashboard-card,
.foundation-panel {
    border: 1px solid rgba(52,102,90,.08);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: 0 18px 55px rgba(36,77,68,.09);
}

.dashboard-card {
    padding: 28px;
}

.dashboard-card.featured {
    color: #fff;
    background:
        radial-gradient(circle at 85% 5%, rgba(182,217,121,.4), transparent 15rem),
        linear-gradient(145deg, var(--forest), var(--forest-dark));
}

.dashboard-card.featured .eyebrow,
.dashboard-card.featured p {
    color: rgba(255,255,255,.8);
}

.dashboard-card h2 {
    margin: 6px 0 12px;
    font-size: 1.75rem;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.dashboard-card p {
    color: var(--muted);
    line-height: 1.6;
}

.card-icon {
    font-size: 2.5rem;
}

.status-pill {
    display: inline-flex;
    margin-top: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--forest-dark);
    background: var(--sprout);
    font-size: .8rem;
    font-weight: 900;
}

.foundation-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 18px;
    padding: clamp(28px, 5vw, 48px);
}

.foundation-panel h2 {
    margin: 0;
    color: var(--forest-dark);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.foundation-panel ul {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.foundation-panel li {
    position: relative;
    padding-left: 29px;
    color: var(--muted);
    font-weight: 700;
}

.foundation-panel li::before {
    position: absolute;
    left: 0;
    content: "✓";
    color: var(--success);
    font-weight: 1000;
}

footer {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 30px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
}

footer span {
    color: var(--forest);
    font-weight: 900;
}

@media (max-width: 980px) {
    .auth-layout {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .introduction {
        text-align: center;
    }

    .lead {
        margin-right: auto;
        margin-left: auto;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-card.featured {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .site-header {
        min-height: 70px;
    }

    .auth-layout,
    .dashboard {
        width: min(100% - 22px, 620px);
        margin-top: 10px;
    }

    .introduction {
        padding: 15px 3px;
    }

    .introduction h1 {
        font-size: clamp(3rem, 15vw, 4.6rem);
    }

    .feature-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .feature-row article {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 12px;
    }

    .feature-row article > span {
        grid-row: span 2;
    }

    .auth-card {
        border-radius: 25px;
    }

    .auth-panel {
        padding: 27px 21px 31px;
    }

    .notice {
        margin-right: 20px;
        margin-left: 20px;
    }

    .dashboard-heading {
        display: grid;
        align-items: stretch;
    }

    .dashboard-grid,
    .foundation-panel {
        grid-template-columns: 1fr;
    }

    .dashboard-card.featured {
        grid-column: auto;
    }

    footer {
        display: grid;
        text-align: center;
    }
}
