.auth-page {
    --auth-panel-bg: #fbfcfa;
    --auth-card-heading: #101510;
    --auth-copy: #69736b;
    --auth-label: #252c27;
    --auth-tabs-bg: #f0f2ef;
    --auth-tab-border: #e2e6e1;
    --auth-input-border: #dfe4df;
    --auth-input-bg: #fff;
    --auth-input-text: #101510;
    --auth-notice-bg: #fff4f3;
    --auth-notice-border: #f0c5c3;
    --auth-notice-text: #a32925;
    --auth-success-bg: #effaf3;
    --auth-success-border: #bde8ce;
    --auth-success-text: #176b3c;
    --auth-terms: #818a83;
    color-scheme: light;
    min-height: 100vh;
    background: #fff;
}

:root[data-theme="dark"] .auth-page {
    --auth-panel-bg: #111a14;
    --auth-card-heading: #edf4ef;
    --auth-copy: #a7b4aa;
    --auth-label: #d6e0d8;
    --auth-tabs-bg: #1d2921;
    --auth-tab-border: #34443a;
    --auth-input-border: #3b4a40;
    --auth-input-bg: #172119;
    --auth-input-text: #edf4ef;
    --auth-notice-bg: #402321;
    --auth-notice-border: #75413d;
    --auth-notice-text: #ffb4ad;
    --auth-success-bg: #173b28;
    --auth-success-border: #286442;
    --auth-success-text: #9ae7b6;
    --auth-terms: #94a198;
    color-scheme: dark;
    background: #111a14;
}

:root[data-theme="dark"] .auth-eyebrow,
:root[data-theme="dark"] .auth-forgot-link {
    color: #70dfa0;
}

:root[data-theme="dark"] .auth-mobile-logo {
    color: #edf4ef;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
}

.auth-story {
    position: relative;
    min-height: 100vh;
    padding: 42px clamp(28px, 6vw, 88px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse at 74% 78%, rgba(24, 197, 110, 0.18), transparent 36%),
        linear-gradient(145deg, #07110b, #10291b 68%, #07110b);
}

.auth-story::after {
    position: absolute;
    right: -170px;
    bottom: -220px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
}

.auth-logo {
    position: relative;
    z-index: 1;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.auth-logo > span:last-child > span {
    color: #18c56e;
}

.auth-logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    transform: skew(-8deg);
    border-radius: 10px;
    background: #18c56e;
    color: #07110b;
    font-size: 21px;
    letter-spacing: 0;
}

.auth-story-copy {
    position: relative;
    z-index: 1;
    max-width: 490px;
    margin: auto 0;
    padding: 76px 0;
}

.auth-eyebrow {
    color: #0b8d4b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.auth-story .auth-eyebrow {
    color: #7ef0b2;
}

.auth-story-copy h1 {
    margin-top: 18px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.auth-story-copy p {
    max-width: 400px;
    margin-top: 18px;
    color: #c1cec5;
    font-size: 15px;
    line-height: 1.8;
}

.auth-story-foot {
    position: relative;
    z-index: 1;
    color: #c1cec5;
    font-size: 12px;
}

.auth-panel {
    position: relative;
    min-height: 100vh;
    padding: 82px 28px 42px;
    display: grid;
    place-items: center;
    background: var(--auth-panel-bg);
    transition: background-color .2s ease, color .2s ease;
}

.buyer-theme-toggle {
    position: absolute;
    top: 22px;
    right: 26px;
    min-height: 40px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dce3dd;
    border-radius: 10px;
    background: #fff;
    color: #253128;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.buyer-theme-toggle:hover {
    border-color: #18c56e;
}

.buyer-theme-toggle:focus-visible {
    outline: 2px solid #18c56e;
    outline-offset: 2px;
}

:root[data-theme="dark"] .buyer-theme-toggle {
    border-color: #3b4a40;
    background: #1b281f;
    color: #e7f2ea;
}

.auth-card {
    width: min(100%, 430px);
}

.auth-card h2 {
    margin-top: 8px;
    color: var(--auth-card-heading);
    font-size: clamp(27px, 4vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.auth-intro {
    margin-top: 9px;
    color: var(--auth-copy);
    font-size: 14px;
    line-height: 1.6;
}

.auth-tabs {
    margin: 28px 0 23px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--auth-tab-border);
    border-radius: 10px;
    background: var(--auth-tabs-bg);
    transition: background-color .2s ease, border-color .2s ease;
}

.auth-tab {
    min-height: 42px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--auth-copy);
    font-size: 13px;
    font-weight: 700;
    transition: background-color .2s ease, color .2s ease;
}

.auth-tab.is-active {
    background: var(--auth-input-bg);
    color: var(--auth-card-heading);
    box-shadow: 0 2px 8px rgba(5, 15, 9, 0.08);
}

.auth-form-panel form {
    display: flex;
    flex-direction: column;
}

.auth-form-panel label {
    margin: 15px 0 7px;
    color: var(--auth-label);
    font-size: 12px;
    font-weight: 700;
    transition: color .2s ease;
}

.auth-form-panel input {
    width: 100%;
    min-height: 47px;
    padding: 0 13px;
    border: 1px solid var(--auth-input-border);
    border-radius: 8px;
    outline: none;
    background: var(--auth-input-bg);
    color: var(--auth-input-text);
    font-size: 13px;
    transition: background-color .2s ease, color .2s ease, border-color 0.2s, box-shadow 0.2s;
}

.auth-form-panel input:focus {
    border-color: #18a75e;
    box-shadow: 0 0 0 3px rgba(24, 197, 110, 0.12);
}

.auth-form-panel input::placeholder {
    color: #a0a9a2;
}

.auth-forgot-link {
    align-self: flex-end;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0b8d4b;
    font-size: 12px;
    font-weight: 700;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.auth-password-hint {
    margin-top: 9px;
    color: var(--auth-copy);
    font-size: 11px;
}

.auth-error,
.auth-notice {
    margin-top: 15px;
    padding: 11px 12px;
    border: 1px solid var(--auth-notice-border);
    border-radius: 8px;
    background: var(--auth-notice-bg);
    color: var(--auth-notice-text);
    font-size: 12px;
    line-height: 1.55;
}

.auth-error[hidden],
.auth-notice[hidden] {
    display: none;
}

.auth-notice-success {
    border-color: var(--auth-success-border);
    background: var(--auth-success-bg);
    color: var(--auth-success-text);
}

.auth-notice code {
    font-size: 11px;
}

.auth-submit {
    min-height: 49px;
    margin-top: 21px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 8px;
    background: #18c56e;
    color: #06100a;
    font-size: 13px;
    font-weight: 800;
    transition: background 0.2s, transform 0.2s;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #24d77d;
}

.auth-submit:disabled,
.auth-forgot-link:disabled {
    cursor: wait;
    opacity: 0.65;
}

.auth-terms {
    margin-top: 25px;
    color: var(--auth-terms);
    font-size: 11px;
    text-align: center;
}

.auth-mobile-logo {
    display: none;
}

@media (max-width: 760px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-story {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        padding: 80px 22px 30px;
        align-items: start;
    }

    .auth-card {
        margin: auto;
    }

    .auth-mobile-logo {
        display: inline-flex;
        margin-bottom: 38px;
        color: #101510;
    }

    .buyer-theme-toggle {
        top: 16px;
        right: 18px;
    }
}

@media (max-width: 420px) {
    .auth-panel {
        padding: 76px 18px 24px;
    }

    .auth-mobile-logo {
        margin-bottom: 28px;
    }

    .buyer-theme-toggle {
        top: 14px;
        right: 14px;
        min-height: 38px;
        padding-inline: 10px;
    }

    .buyer-theme-label {
        font-size: 11px;
    }
}
