@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --paper: #f7f4ec;
    --surface: #fffdf8;
    --ink: #102b25;
    --muted: #687772;
    --line: rgba(23, 58, 50, .15);
    --green: #2f806a;
    --green-dark: #183f35;
    --lime: #d7ef6f;
    --danger: #b42318;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 26px;
    color: var(--ink);
    background: var(--paper);
    font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    width: min(1080px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: .94fr 1.06fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 30px 90px rgba(24, 63, 53, .13);
}

.auth-story {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 42px;
    color: #fff;
    background: var(--green-dark);
}

.auth-story::before {
    content: '';
    position: absolute;
    right: -180px;
    bottom: -230px;
    width: 520px;
    height: 520px;
    border: 85px solid rgba(215, 239, 111, .08);
    border-radius: 50%;
}

.brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    font: 800 1.2rem 'Manrope', sans-serif;
    letter-spacing: -.035em;
}

.brand img { border-radius: 12px; }

.story-copy {
    position: relative;
    z-index: 2;
    margin-top: 86px;
}

.eyebrow,
.form-kicker {
    color: var(--lime);
    font: 800 .68rem 'Manrope', sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.story-copy h1 {
    margin: 15px 0 20px;
    font: 800 clamp(2.4rem, 4vw, 3.7rem)/1.03 'Manrope', sans-serif;
    letter-spacing: -.065em;
}

.story-copy p {
    max-width: 390px;
    margin: 0;
    color: #b9cbc5;
    font-size: .98rem;
    line-height: 1.7;
}

.story-preview {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 8px;
    margin-top: 42px;
}

.story-row {
    display: grid;
    grid-template-columns: 35px 1fr auto;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 10px;
    padding: 11px 13px;
    background: rgba(255,255,255,.065);
    backdrop-filter: blur(7px);
}

.person {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: .55rem;
    font-weight: 800;
}

.person.mint { color: #21634f; background: #cbeade; }
.person.peach { color: #91531c; background: #f5d7b8; }
.story-row div { min-width: 0; display: grid; gap: 3px; }
.story-row strong { font-size: .68rem; }
.story-row small { overflow: hidden; color: #a9bcb6; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.story-row b { border-radius: 999px; padding: 5px 7px; color: #f6d68b; background: rgba(246,214,139,.1); font-size: .48rem; }
.story-row b.paid { color: var(--lime); background: rgba(215,239,111,.1); }

.pulse-line {
    height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 12px;
    padding-inline: 16px;
    opacity: .25;
}

.pulse-line i { flex: 1; border-radius: 9px 9px 0 0; background: var(--lime); }
.pulse-line i:nth-child(1) { height: 32%; }
.pulse-line i:nth-child(2) { height: 65%; }
.pulse-line i:nth-child(3) { height: 40%; }
.pulse-line i:nth-child(4) { height: 86%; }
.pulse-line i:nth-child(5) { height: 58%; }

.private-note {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: auto 0 0;
    color: #96ada6;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.private-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(215,239,111,.1); }

.auth-panel {
    position: relative;
    display: grid;
    place-items: center;
    padding: 66px;
}

.back-link {
    position: absolute;
    top: 31px;
    right: 34px;
    color: var(--muted);
    text-decoration: none;
    font-size: .76rem;
    font-weight: 700;
}

.back-link:hover { color: var(--green); }
.form-wrap { width: min(100%, 390px); }
.mobile-brand { display: none; }
.form-kicker { color: var(--green); }
.form-wrap h2 { margin: 10px 0 10px; font: 800 2.15rem/1.1 'Manrope', sans-serif; letter-spacing: -.055em; }
.form-lede { min-height: 48px; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin: 26px 0 22px;
    border-radius: 9px;
    padding: 4px;
    background: #eeece5;
}

.tabs button {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    color: #687772;
    background: transparent;
    font: 700 .78rem 'Manrope', sans-serif;
    cursor: pointer;
}

.tabs button.active { color: var(--ink); background: #fff; box-shadow: 0 4px 14px rgba(24,63,53,.08); }
[hidden] { display: none !important; }

label {
    display: block;
    margin: 15px 0 7px;
    font-size: .74rem;
    font-weight: 800;
}

input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0 13px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

input::placeholder { color: #9ca7a3; }
input:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(47,128,106,.18); outline-offset: 2px; border-color: var(--green); }

.submit-button {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 23px;
    border: 0;
    border-radius: 7px;
    padding: 0 18px;
    color: #fff;
    background: var(--green-dark);
    font: 800 .84rem 'Manrope', sans-serif;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.submit-button:hover { transform: translateY(-1px); background: var(--green); }
.submit-button:disabled { cursor: not-allowed; opacity: .6; }
#status { min-height: 20px; margin: 12px 0 0; color: var(--danger); font-size: .76rem; line-height: 1.4; }
.security-note { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; color: #899690; font-size: .65rem; line-height: 1.45; }
.security-note span { color: var(--green); font-size: 1.1rem; }

@media (max-width: 820px) {
    body { padding: 0; background: var(--surface); }
    .auth-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; }
    .auth-story { display: none; }
    .auth-panel { padding: 78px 28px 40px; }
    .mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 48px; font: 800 1.1rem 'Manrope', sans-serif; }
    .mobile-brand img { border-radius: 11px; }
    .back-link { top: 28px; right: 25px; }
}

@media (max-width: 420px) {
    .auth-panel { align-items: start; padding-inline: 20px; }
    .form-wrap h2 { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
