:root {
    --gober-green-950: #073b32;
    --gober-green-800: #0d4a3e;
    --gober-green-700: #126653;
    --gober-gold: #f0b429;
    --paper: #eee9dc;
    --paper-light: #f7f1df;
    --ink: #173a31;
    --slate-950: #0f172a;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --white: #ffffff;
    --danger: #b91c1c;
    --danger-soft: #fef2f2;
    --warning: #92400e;
    --warning-soft: #fffbeb;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--paper);
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--slate-700);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

a[href],
button,
label[for] {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--gober-gold);
    outline-offset: 3px;
}

.registration-shell {
    display: flex;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    align-items: center;
    padding: 24px 16px;
}

.registration-card {
    display: grid;
    width: min(100%, 1152px);
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #d9d1bd;
    border-radius: 28px;
    background: var(--white);
    box-shadow: 0 18px 55px rgba(23, 58, 49, 0.09);
}

.registration-story {
    display: none;
    min-width: 0;
    padding: 48px;
    color: var(--white);
    background: var(--gober-green-950);
}

.story-content {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.brand-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 12px;
    background: var(--white);
    padding: 8px 16px;
}

.brand-logo {
    width: auto;
    height: 40px;
    object-fit: contain;
}

.story-kicker,
.form-kicker {
    margin: 0;
    color: #9bd7c7;
    font-size: 12px;
    font-weight: 800;
}

.story-kicker {
    margin-top: 40px;
}

.story-title {
    max-width: 470px;
    margin: 8px 0 0;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.story-copy {
    max-width: 460px;
    margin: 16px 0 0;
    color: #c9e3dc;
    font-size: 14px;
    line-height: 1.7;
}

.story-benefits {
    display: grid;
    gap: 16px;
    margin: 36px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    list-style: none;
}

.story-benefits li {
    position: relative;
    padding-left: 24px;
    color: #dcebe7;
    font-size: 14px;
    line-height: 1.5;
}

.story-benefits li::before {
    position: absolute;
    top: 0.45em;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gober-gold);
    content: "";
}

.story-footer {
    margin: 40px 0 0;
    color: #8bbdb0;
    font-size: 11px;
}

.registration-panel {
    min-width: 0;
    padding: 24px;
}

.form-container {
    width: min(100%, 576px);
    margin: 0 auto;
}

.mobile-brand {
    display: inline-block;
    margin-bottom: 28px;
}

.form-kicker {
    color: var(--gober-green-800);
}

.form-title {
    margin: 4px 0 0;
    color: var(--slate-950);
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.form-intro {
    margin: 8px 0 0;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.55;
}

.form-messages {
    margin-top: 28px;
}

.notice {
    display: flex;
    min-width: 0;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.notice p {
    margin: 0;
}

.notice-referral {
    align-items: center;
    border-color: #ded1a8;
    color: var(--ink);
    background: var(--paper-light);
}

.notice-warning {
    border-color: #fde68a;
    color: var(--warning);
    background: var(--warning-soft);
}

.notice-error {
    border-color: #fecaca;
    color: var(--danger);
    background: var(--danger-soft);
}

.notice-marker {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--ink);
    background: var(--gober-gold);
    font-size: 11px;
    font-weight: 900;
}

.notice-content {
    min-width: 0;
}

.notice-label {
    color: var(--slate-600);
    font-size: 11px;
    font-weight: 600;
}

.notice-name,
.notice-code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-name {
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.notice-code {
    color: var(--gober-green-800);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
}

.error-list {
    margin: 0;
    padding-left: 18px;
}

.error-list li + li {
    margin-top: 4px;
}

.registration-form {
    display: grid;
    gap: 16px;
}

.field-grid {
    display: grid;
    gap: 12px;
}

.field {
    min-width: 0;
}

.field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--slate-700);
    font-size: 12px;
    font-weight: 700;
}

.required {
    color: #dc2626;
}

.field-input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--slate-300);
    border-radius: 10px;
    color: var(--slate-950);
    background: var(--white);
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.field-input::placeholder {
    color: var(--slate-500);
}

.field-input:hover {
    border-color: #94a3b8;
}

.field-input:focus {
    border-color: var(--gober-green-800);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(13, 74, 62, 0.14);
}

.field-input.is-code {
    text-transform: uppercase;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 800;
}

.field-input.is-readonly {
    cursor: not-allowed;
    border-color: #ded1a8;
    background: var(--paper-light);
}

.field-help {
    display: block;
    margin-top: 5px;
    color: var(--slate-500);
    font-size: 11px;
    line-height: 1.45;
}

.submit-row {
    padding-top: 4px;
}

.submit-button {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: var(--gober-green-800);
    font-size: 14px;
    font-weight: 900;
    transition: background-color 140ms ease, transform 140ms ease;
}

.submit-button:hover {
    background: #08352c;
}

.submit-button:active {
    background: #062b24;
    transform: translateY(1px);
}

.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.form-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--slate-200);
    color: var(--slate-600);
    font-size: 12px;
    line-height: 1.5;
}

.form-footer p {
    margin: 0;
}

.text-link {
    color: var(--gober-green-800);
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.text-link:hover {
    color: var(--gober-green-700);
    text-decoration: underline;
}

.secondary-link {
    color: var(--slate-500);
    font-weight: 700;
}

.secondary-link:hover {
    color: var(--slate-950);
}

@media (min-width: 640px) {
    .registration-shell {
        padding: 32px 24px;
    }

    .registration-panel {
        padding: 40px;
    }

    .field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .registration-shell {
        padding: 40px 32px;
    }

    .registration-card {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }

    .registration-story {
        display: block;
    }

    .registration-panel {
        padding: 48px;
    }

    .mobile-brand {
        display: none;
    }
}

@media (max-width: 420px) {
    .registration-shell {
        display: block;
        padding: 0;
    }

    .registration-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .registration-panel {
        padding: 24px 18px 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
