:root {
    --bg: oklch(0.96 0.01 280);
    --text: oklch(0.3 0.05 210);
    --purple-dark: oklch(0.38 0.09 320);
    --purple-mid: oklch(0.43 0.10 320);
    --purple-deep: oklch(0.33 0.08 320);
    --footer-bg: oklch(0.3 0.06 320);
    --gold: oklch(0.78 0.13 85);
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Mulish';
    src: url('/fonts/Mulish-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('/fonts/Quicksand-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: "Mulish", sans-serif;
    color: var(--text);
    background: var(--bg);
}

.page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    background: var(--bg);
}

/* ---------- Hero / Login split ---------- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hero-panel {
    background: var(--purple-dark);
    color: white;
    padding: 80px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 560px;
    position: relative;
    overflow: hidden;
}

    .hero-panel::before {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: oklch(1 0 0 / 0.06);
        bottom: -110px;
        left: -90px;
        z-index: 0;
    }

.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 485px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 38px;
    margin-bottom: 20px;
}

.eyebrow {
    display: block;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: oklch(1 0 0 / 0.7);
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-inner h1 {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 54px;
    margin: 0;
    color: white;
    line-height: 1.05;
}

.hero-inner h2 {
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 24px;
    margin: 10px 0 0;
    color: oklch(0.92 0.04 320);
}

.hero-inner > p {
    font-size: 17.5px;
    line-height: 1.75;
    color: oklch(1 0 0 / 0.9);
    max-width: 460px;
    margin-top: 22px;
}

.quote-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
}

    .quote-row p {
        font-size: 15px;
        font-style: italic;
        line-height: 1.6;
        color: oklch(1 0 0 / 0.85);
        max-width: 220px;
        margin: 0;
    }

/* Breathing ring animation */
.mb-breathe-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.mb-breathe-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid oklch(1 0 0 / 0.35);
    transform: translate(-50%, -50%) scale(0.8);
    animation: mb-breathe 4s ease-in-out infinite;
}

.mb-breathe-ring--outer {
    width: 120px;
    height: 120px;
    animation-delay: 0s;
}

.mb-breathe-ring--inner {
    width: 80px;
    height: 80px;
    animation-delay: 0.6s;
    border-color: oklch(1 0 0 / 0.5);
}

@keyframes mb-breathe {
    0% {
        transform: translate(-50%, -50%) scale(0.75);
        opacity: 0.9;
    }

    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.75);
        opacity: 0.9;
    }
}

.mb-breathe-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ---------- Login card ---------- */
.login-panel {
    background: var(--bg);
    padding: 80px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 560px;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: oklch(0.3 0.05 210 / 0.22) 0px 24px 60px -24px;
    border: 1px solid oklch(0.9 0.02 130);
    width: 100%;
    max-width: 420px;
}

    .login-card .eyebrow-purple {
        display: block;
        font-size: 13px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        font-weight: 700;
        color: var(--purple-mid);
        margin: 0 0 10px;
    }

    .login-card h3 {
        font-family: "Quicksand", sans-serif;
        font-weight: 700;
        font-size: 25px;
        color: oklch(0.26 0.05 210);
        margin: 0 0 26px;
    }

.login-error {
    color: #a94442;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: oklch(0.42 0.02 210);
    margin-bottom: 7px;
}

.text-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid oklch(0.87 0.02 130);
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    color: oklch(0.28 0.03 210);
    margin-bottom: 20px;
}

.mb-email-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1.5px solid oklch(0.87 0.02 130);
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    color: oklch(0.28 0.03 210);
    margin-bottom: 20px;
}

/* Password show/hide (checkbox-driven, no JS) */
.mb-pw-field {
    position: relative;
    margin-bottom: 14px;
}

.mb-pw-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.mb-pw-input {
    width: 100%;
    padding: 14px 58px 14px 16px;
    border: 1.5px solid oklch(0.87 0.02 130);
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    color: oklch(0.28 0.03 210);
    -webkit-text-security: disc;
}

.mb-pw-checkbox:checked ~ .mb-pw-input {
    -webkit-text-security: none;
}

.mb-pw-toggle-label {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple-mid);
    font-weight: 700;
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    user-select: none;
}

.mb-pw-hide-text {
    display: none;
}

.mb-pw-checkbox:checked ~ .mb-pw-toggle-label .mb-pw-show-text {
    display: none;
}

.mb-pw-checkbox:checked ~ .mb-pw-toggle-label .mb-pw-hide-text {
    display: inline;
}

.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 22px;
}

    .forgot-row a {
        color: var(--purple-mid);
        font-weight: 700;
        font-size: 14.5px;
        text-decoration: underline;
    }

.login-btn {
    width: 100%;
    height: 54px;
    background: var(--gold);
    color: oklch(0.24 0.05 210);
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

/* ---------- How the program works ---------- */
.how-section {
    background: var(--bg);
    padding: 96px 64px 100px;
    position: relative;
}

    .how-section h2 {
        font-family: "Quicksand", sans-serif;
        font-weight: 700;
        font-size: 35px;
        text-align: center;
        color: var(--purple-deep);
        margin: 0 0 76px;
    }

.how-wrap {
    position: relative;
}

.how-connector {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 260px;
    pointer-events: none;
    z-index: 0;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.how-step:nth-child(1) {
    margin-top: 70px;
}

.how-step:nth-child(2) {
    margin-top: 0;
}

.how-step:nth-child(3) {
    margin-top: 90px;
}

.how-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--purple-deep);
    margin: 0 auto 22px;
    box-shadow: oklch(0.3 0.05 210 / 0.28) 0px 10px 22px -10px;
}

.how-card {
    background: white;
    border-radius: 18px;
    padding: 26px;
    box-shadow: oklch(0.3 0.05 210 / 0.2) 0px 12px 34px -18px;
    text-align: center;
}

    .how-card h3 {
        font-family: "Quicksand", sans-serif;
        font-weight: 700;
        font-size: 19px;
        color: oklch(0.28 0.05 210);
        margin: 0 0 12px;
    }

    .how-card p {
        font-size: 15.5px;
        line-height: 1.75;
        color: oklch(0.4 0.02 210);
        margin: 0;
        text-align: left;
    }

/* ---------- Community banner ---------- */
.community-section {
    background: var(--bg);
    padding: 0 64px 88px;
}

.community-card {
    display: flex;
    align-items: center;
    gap: 44px;
    max-width: 1040px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 36px;
    box-shadow: oklch(0.3 0.05 210 / 0.16) 0px 12px 34px -18px;
    border: 1px solid oklch(0.9 0.02 130);
    flex-wrap: wrap;
}

    .community-card img {
        width: 260px;
        height: auto;
        border-radius: 16px;
        flex-shrink: 0;
        object-fit: cover;
        box-shadow: oklch(0.3 0.05 210 / 0.25) 0px 8px 20px -10px;
    }

    .community-card p {
        font-size: 16.5px;
        line-height: 1.8;
        color: oklch(0.36 0.03 210);
        margin: 0;
        flex: 1 1 0;
        min-width: 240px;
    }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--footer-bg);
    padding: 24px 64px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 20px;
}

    .site-footer a {
        color: oklch(0.90 0.03 320);
        text-decoration: underline;
        font-weight: 600;
        font-size: 14px;
    }

    .site-footer p {
        color: oklch(0.90 0.03 320);
        font-weight: 600;
        font-size: 14px;
    }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }

    .how-step:nth-child(1),
    .how-step:nth-child(2),
    .how-step:nth-child(3) {
        margin-top: 0;
    }

    .how-connector {
        display: none;
    }

    .community-card {
        flex-direction: column;
        text-align: center;
    }
}
