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

/* chatos — signup / auth split screen. Shares the landing-page palette. */
:root {
    --ink: #14201a;
    --text: #1d2a24;
    --muted: #5d6f66;
    --bg: #ffffff;
    --bg-soft: #f4f7f5;
    --line: #e3eae6;
    --accent: #11875b;
    --accent-700: #0c6644;
    --accent-soft: #e7f4ee;
    --r: 14px;
    --r-sm: 10px;
    --shadow: 0 20px 50px -28px rgba(16, 50, 36, .45);
}

.signup, .signup * { box-sizing: border-box; }

.signup {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100dvh;
    color: var(--text);
    background: var(--bg);
}

/* ── Left aside (brand + pitch) ───────────────────────────────── */
.signup__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 56px;
    color: #eafaf2;
    background:
        radial-gradient(120% 90% at 85% 0%, rgba(255,255,255,.10), transparent 55%),
        linear-gradient(160deg, #0c6644 0%, #0a4d34 60%, #093f2c 100%);
    overflow: hidden;
}
.signup__aside::after {
    content: "";
    position: absolute;
    inset: auto -120px -160px auto;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(46,196,135,.30), transparent 65%);
    pointer-events: none;
}
.signup__brand img { height: 34px; filter: brightness(0) invert(1); position: relative; z-index: 1; }

.signup__pitch { position: relative; z-index: 1; max-width: 30ch; }
.signup__pitch h2 {
    font-size: clamp(1.7rem, 2.4vw, 2.3rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    font-weight: 700;
    margin: 0 0 14px;
}
.signup__pitch p { color: #c5e6d6; font-size: 1.02rem; line-height: 1.55; margin: 0 0 26px; }

.signup__perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.signup__perks li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: #e3f6ec; }
.signup__perks .dot {
    width: 20px; height: 20px; border-radius: 50%; flex: none;
    background: rgba(255,255,255,.14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.30);
    position: relative;
}
.signup__perks .dot::after {
    content: ""; position: absolute; left: 6px; top: 9px;
    width: 4px; height: 8px; border: solid #aef0cf; border-width: 0 2px 2px 0;
    transform: rotate(45deg); top: 4px;
}
.signup__asideFoot { position: relative; z-index: 1; color: #9fcdb8; font-size: .9rem; margin: 0; }

/* ── Right panel (form) ───────────────────────────────────────── */
.signup__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--bg);
}
.signup__form { width: 100%; max-width: 400px; }
.signup__logoMobile { display: none; }
.signup__logoMobile img { height: 30px; margin-bottom: 28px; }

.signup__form h1 {
    font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em;
    color: var(--ink); margin: 0 0 8px;
}
.signup__sub { color: var(--muted); margin: 0 0 28px; font-size: .98rem; }
.signup__sub a, .signup__legal a { color: var(--accent-700); font-weight: 600; text-decoration: none; }
.signup__sub a:hover { text-decoration: underline; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input {
    width: 100%;
    padding: 12px 14px;
    font: inherit; font-size: .98rem;
    text-transform: none;
    color: var(--text);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input::placeholder { color: #9aa8a1; }
.field input:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.field__error { color: #c0392b; font-size: .82rem; min-height: 1em; }

.signup__alert {
    color: #8a2418; background: #fdecea; border: 1px solid #f6cfc9;
    border-radius: var(--r-sm); padding: 10px 13px; font-size: .9rem; margin-bottom: 18px;
}
.signup__alert:empty { display: none; }

.signup__cta {
    width: 100%; margin-top: 6px;
    padding: 13px 18px;
    font: inherit; font-weight: 700; font-size: 1rem;
    color: #fff; cursor: pointer;
    background: var(--accent);
    border: none; border-radius: var(--r-sm);
    box-shadow: 0 12px 24px -12px rgba(17,135,91,.7);
    transition: transform .12s ease, background .16s ease, box-shadow .16s ease;
}
.signup__cta:hover { background: var(--accent-700); }
.signup__cta:active { transform: translateY(1px); }

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

/* ── Login extras (shared) ────────────────────────────────────── */
/* Password input + reveal toggle. The wrapper is what's positioned, so the
   toggle centers on the input row only (not the label/error rows). */
.field__pw { position: relative; display: block; }
.field__pw input { width: 100%; padding-right: 46px; }
.signup__toggle {
    position: absolute; top: 50%; right: 7px; transform: translateY(-50%);
    width: 30px; height: 30px; padding: 0; line-height: 1;
    display: grid; place-items: center;
    border: none; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px;
    transition: color .16s ease, background .16s ease;
}
.signup__toggle:hover { color: var(--accent-700); background: var(--accent-soft); }
.signup__toggle:focus { outline: none; }
.signup__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.signup__row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin: 2px 0 18px; font-size: .9rem;
}
.signup__check { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; cursor: pointer; }
.signup__check input { width: 16px; height: 16px; accent-color: var(--accent); }
.signup__link { color: var(--accent-700); font-weight: 600; text-decoration: none; }
.signup__link:hover { text-decoration: underline; }

.signup__alt { text-align: center; margin: 22px 0 0; font-size: .92rem; color: var(--muted); }
.signup__alt a { color: var(--accent-700); font-weight: 600; text-decoration: none; }
.signup__alt a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 860px) {
    .signup { grid-template-columns: 1fr; }
    .signup__aside { display: none; }
    .signup__logoMobile { display: block; }
    .signup__panel { padding: 36px 22px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .signup__cta, .field input { transition: none; }
}
