:root {
    color-scheme: light;
    font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ink: #15211d;
    --muted: #64736e;
    --line: #dfe8e4;
    --panel: #ffffff;
    --wash: #f3f8f6;
    --brand: #177a5b;
    --brand-dark: #0f5c44;
    --warn: #8a4b0f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #eef6f2 0%, #fbfdfc 100%);
    color: var(--ink);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.register-shell {
    align-items: start;
    justify-items: center;
}

.auth-panel {
    width: min(100%, 460px);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(21, 33, 29, 0.11);
    padding: 34px;
}

.register-panel {
    width: min(100%, 1080px);
}

.register-hero {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 8vw, 2.65rem);
    line-height: 1;
    letter-spacing: 0;
}

.lede,
.footnote {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.register-transition {
    margin: 20px 0 0;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.4;
}

.identity-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.identity-path-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--wash);
    padding: 22px;
}

.identity-path-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    line-height: 1.12;
}

.identity-path-card p {
    margin: 12px 0 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.5;
}

.identity-path-card ul {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding-left: 0;
    color: var(--ink);
    font-weight: 700;
    list-style: none;
    line-height: 1.45;
}

.identity-path-card li {
    display: grid;
    grid-template-columns: 1.1em 1fr;
    gap: 8px;
}

.identity-path-card li::before {
    content: "✓";
    color: var(--brand);
    font-weight: 900;
}

.identity-path-actions {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.identity-soft-cta,
.identity-hard-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    line-height: 1.2;
}

.identity-soft-cta {
    color: var(--brand-dark);
}

.identity-hard-cta {
    background: var(--brand);
    color: #ffffff;
    text-decoration: none;
}

.identity-hard-cta:hover,
.identity-hard-cta:focus-visible {
    background: var(--brand-dark);
}

.compensation-trust-bridge,
.path-selection-note {
    margin-top: 22px;
    border: 1px solid #b8d7cd;
    border-radius: 8px;
    background: #eef8f4;
    color: var(--brand-dark);
    padding: 12px 14px;
    font-weight: 800;
    line-height: 1.45;
}

.path-selection-note {
    display: grid;
    gap: 4px;
    margin-top: 0;
}

.path-selection-note span {
    color: var(--muted);
    font-weight: 700;
}

.alert {
    margin-top: 22px;
    border: 1px solid #f0c99d;
    background: #fff7ec;
    color: var(--warn);
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 700;
}
.alert-success { border-color: #b8d7cd; background: #eef8f4; color: var(--brand-dark); }

.field-error {
    margin-top: -4px;
}

.sponsor-note {
    display: grid;
    gap: 4px;
    margin-top: 22px;
    border: 1px solid #b8d7cd;
    background: #eef8f4;
    color: var(--brand-dark);
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 800;
}

.sponsor-note span {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.sponsor-note small {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.account-defaults {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--wash);
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 12px 14px;
}

.signed-in-note {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    border: 1px solid #b8d7cd;
    background: #eef8f4;
    color: var(--brand-dark);
    border-radius: 8px;
    padding: 14px;
}

.signed-in-note p {
    margin: 0;
    line-height: 1.45;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
}

input[type="email"],
input[type="password"],
input[type="tel"],
input[type="text"],
select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #cad8d3;
    border-radius: 8px;
    padding: 0 14px;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}

a {
    color: var(--brand-dark);
    font-weight: 800;
}

input:focus {
    outline: 3px solid rgba(23, 122, 91, 0.2);
    border-color: var(--brand);
}

a:focus-visible,
button:focus-visible,
select:focus {
    outline: 3px solid rgba(23, 122, 91, 0.2);
    outline-offset: 3px;
    border-color: var(--brand);
}

.check-row {
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.check-row input {
    width: 18px;
    height: 18px;
}

.auth-split-link {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

button {
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 900;
}

button:hover {
    background: var(--brand-dark);
}

.forgot-password-control {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    justify-self: start;
    margin-top: -8px;
    padding: 8px 0;
    background: transparent;
    color: var(--brand-dark);
    font-size: 0.95rem;
    text-decoration: underline;
}

.forgot-password-control:hover { background: transparent; color: var(--brand); }
.forgot-password-control:focus-visible { outline: 3px solid rgba(23,122,91,.35); outline-offset: 3px; }

@media (max-width: 560px) {
    .auth-panel {
        padding: 26px 20px;
    }

    .identity-paths {
        grid-template-columns: 1fr;
    }

    .identity-path-card {
        padding: 18px;
    }

    .identity-path-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
