/* Original AIONESS portal, refined: photographic story + independent form card.
   Color themes are isolated here; original form markup and auth scripts stay intact. */
body.aioness-auth-brand {
    --auth-brand-ink: #20232e;
    --auth-brand-muted: #6b7280;
    --auth-brand-line: #e2e5ec;
    --auth-brand-green: #009f12;
    --auth-brand-green-aa: #00830f;
    --auth-brand-navy: #191970;
    --auth-page: #f2f5fa;
    --auth-surface: #ffffff;
    --auth-soft-surface: #f5f6f9;
    --auth-art-surface: #f0f3f8;
    --auth-hover: #eceef5;
    --auth-field-line: #d3d8e1;
    --auth-link: #191970;
    --auth-accent: #00830f;
    --auth-accent-soft: #e9f6ed;
    --auth-blue-soft: #eceefa;
    --auth-shadow: 0 24px 72px rgba(25, 32, 70, .08), 0 2px 6px rgba(25, 32, 56, .025);
    --auth-focus: rgba(25, 25, 112, .10);
    --auth-error-bg: #fff0f0;
    --auth-error-text: #a92c35;
    --auth-success-bg: #edf8ef;
    --auth-success-text: #167033;
    --auth-text: var(--auth-brand-ink);
    --auth-muted: var(--auth-brand-muted);
    --auth-border: var(--auth-brand-line);
    --auth-blue: var(--auth-link);
    --auth-green: var(--auth-brand-green);
    --auth-white: var(--auth-surface);
    --auth-soft: var(--auth-soft-surface);
    --aion-text: var(--auth-brand-ink);
    --aion-dark: var(--auth-brand-ink);
    --aion-muted: var(--auth-brand-muted);
    --aion-border: var(--auth-brand-line);
    --aion-green: var(--auth-brand-green);
    --aion-blue: var(--auth-link);
    --aion-register-text: var(--auth-brand-ink);
    --aion-register-muted: var(--auth-brand-muted);
    --aion-register-border: var(--auth-brand-line);
    --aion-register-blue: var(--auth-link);
    display: block;
    min-width: 0;
    min-height: 100svh;
    height: auto;
    margin: 0;
    overflow: auto;
    color: var(--auth-brand-ink);
    background: var(--auth-page);
    color-scheme: light;
    font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-optical-sizing: auto;
}
html[data-auth-theme="dark"] body.aioness-auth-brand {
    --auth-brand-ink: #ecedf4;
    --auth-brand-muted: #a5abbc;
    --auth-brand-line: #303647;
    --auth-page: #11131b;
    --auth-surface: #1b1f2b;
    --auth-soft-surface: #222735;
    --auth-art-surface: #1a2030;
    --auth-hover: #2b3142;
    --auth-field-line: #424a60;
    --auth-link: #b8bfff;
    --auth-accent: #7bdd92;
    --auth-accent-soft: #233a31;
    --auth-blue-soft: #2a3048;
    --auth-shadow: 0 12px 42px rgba(0, 0, 0, .14), 0 1px 3px rgba(0, 0, 0, .10);
    --auth-focus: rgba(173, 185, 255, .16);
    --auth-error-bg: #39232d;
    --auth-error-text: #ffafb7;
    --auth-success-bg: #20382b;
    --auth-success-text: #92e9a9;
    color-scheme: dark;
}
.aioness-auth-brand *, .aioness-auth-brand *::before, .aioness-auth-brand *::after { box-sizing: border-box; }
.aioness-auth-brand :is(button, input, select, textarea) { font-family: inherit; }
.aioness-auth-brand ::selection { background: var(--auth-brand-navy); color: #fff; }
.aioness-auth-brand :is(a, button):focus-visible { outline: 2px solid var(--auth-link); outline-offset: 4px; }
.aioness-auth-brand .auth-experience-skip { position: absolute; z-index: 100; top: 10px; left: 16px; padding: 10px 16px; background: var(--auth-surface); color: var(--auth-link); border: 1px solid var(--auth-brand-line); border-radius: 8px; transform: translateY(-180%); }
.aioness-auth-brand .auth-experience-skip:focus { transform: translateY(0); }


/* Portal utilities stay outside the forms; this is not the marketing navigation. */
.aioness-auth-brand .auth-portal-tools { position: absolute; z-index: 20; top: 28px; right: 36px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.aioness-auth-brand--company .auth-portal-tools,
.aioness-auth-brand--user .auth-portal-tools { right: calc(50% + 42px); }
.aioness-auth-brand .auth-portal-tools__back { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; color: var(--auth-brand-muted); font-size: 12px; font-weight: 400; text-decoration: none; }
.aioness-auth-brand .auth-portal-tools__back:hover { color: var(--auth-link); }
.aioness-auth-brand .auth-portal-tools__back svg { width: 15px; height: 15px; }
.aioness-auth-brand .auth-theme-switch { display: inline-flex; align-items: center; padding: 3px; gap: 3px; border: 1px solid var(--auth-brand-line); border-radius: 10px; background: var(--auth-soft-surface); }
.aioness-auth-brand .auth-theme-switch button { display: grid; place-items: center; width: 32px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--auth-brand-muted); cursor: pointer; }
.aioness-auth-brand .auth-theme-switch button[aria-pressed="true"] { color: var(--auth-link); background: var(--auth-surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .09); }
.aioness-auth-brand .auth-theme-switch svg { width: 17px; height: 17px; }


/* The original photographic composition. No transformed/filtered form ancestors:
   phone country pickers are positioned against the viewport. */
body.aioness-auth-original { background: radial-gradient(ellipse at 72% 10%, rgba(25, 25, 112, .035), transparent 55%), var(--auth-page); }
.aioness-auth-original :is(.aion-auth, .aion-register, .aion-user-register) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 20px; width: 100%; min-height: 100svh; height: auto; max-height: none; margin: 0; padding: 20px; overflow: visible; }
.aioness-auth-original :is(.aion-auth__form-side, .aion-register__form-side, .aion-user-register__form-side) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 0; min-height: calc(100svh - 40px); height: auto; max-height: none; padding: 68px clamp(24px, 3.5vw, 64px) 26px; overflow: visible; }
.aioness-auth-original .aion-auth__form-shell { width: 100%; max-width: 480px; }
.aioness-auth-original .aion-register__form-shell { display: block; width: 100%; max-width: 560px; height: auto; max-height: none; overflow: visible; }
.aioness-auth-original :is(.aion-auth__card, .aion-register__form-side .aion-register-card, .aion-user-register__card) { width: 100%; min-height: 0; height: auto; max-height: none; padding: 36px; border: 1px solid var(--auth-brand-line); border-radius: 22px; background: var(--auth-surface); color: var(--auth-brand-ink); box-shadow: var(--auth-shadow); overflow: visible; }
.aioness-auth-original .aion-auth__card { display: grid; gap: 26px; }
.aioness-auth-original .aion-user-register__card { display: block; max-width: 540px; }
.aioness-auth-original .aion-auth__card-header { display: grid; justify-items: center; gap: 24px; margin: 0; text-align: center; }
.aioness-auth-original .aion-auth__card-header > div { width: 100%; max-width: none; }
.aioness-auth-original .auth-portal-brand { display: grid; justify-items: center; margin: 0 auto; }
.aioness-auth-original .auth-portal-brand a { display: block; }
.aioness-auth-original .auth-portal-brand img { width: 142px; max-width: 100%; height: auto; margin: 0 auto; }
.aioness-auth-original :is(.aion-register-card__logo, .aion-user-register__brand) { width: 142px; margin: 0 auto 24px; }
.aioness-auth-original .auth-portal-logo--light { display: block; }
.aioness-auth-original .auth-portal-logo--dark { display: none; }
html[data-auth-theme="dark"] .aioness-auth-original .auth-portal-logo--light { display: none; }
html[data-auth-theme="dark"] .aioness-auth-original .auth-portal-logo--dark { display: block; }
.aioness-auth-original .aion-auth__mobile-logo { display: none; }
.aioness-auth-original :is(.auth-portal-kicker, .portal-kicker) { margin: 0 0 10px; color: var(--auth-accent); font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.aioness-auth-original .aion-auth__login-title { margin: 0; color: var(--auth-brand-ink); font-size: 17px; font-weight: 400; line-height: 1.5; text-align: center; letter-spacing: -.015em; }
.aioness-auth-original .aion-auth__login-title strong { font-weight: 600; }
.aioness-auth-original :is(.aion-register__form-side .aion-register-card h1, .aion-user-register__title) { margin: 0; color: var(--auth-brand-ink); font-size: 25px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; text-align: center; }
.aioness-auth-original :is(.aion-register-card__subtitle, .aion-user-register__lead, .aion-auth__subtitle) { margin: 10px auto 26px; color: var(--auth-brand-muted); font-size: 13px; line-height: 1.6; font-weight: 400; text-align: center; }
.aioness-auth-original :is(.aion-user-register__form, .aion-user-register__fields, .aion-register-form) { height: auto; min-height: 0; max-height: none; overflow: visible; }
.aioness-auth-original .aion-user-register__form { grid-template-rows: auto auto; }
.aioness-auth-original .aion-user-register__fields { padding: 0; }
.aioness-auth-original :is(.aion-user-register__actions, .aion-register-actions) { background: none; border-color: var(--auth-brand-line); }
.aioness-auth-original .aion-user-register__actions { border: 0; padding-top: 0; }
.aioness-auth-original :is(.aion-register-login, .aion-user-register__login) { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--auth-brand-line); }
.aioness-auth-original .aion-auth__register { margin: 0; }
.aioness-auth-original .aion-auth__register a { margin-inline-start: 4px; }
.aioness-auth-original .aion-auth__meta-row { flex-wrap: wrap; }
.aioness-auth-original .aion-register-section-label { color: var(--auth-brand-muted); font-weight: 500; }
.aioness-auth-original .aion-register-section-label::after { background: var(--auth-brand-line); }
.aioness-auth-original :is(.aion-register-hint, .aion-register-slug-status, .aion-register-verify p) { color: var(--auth-brand-muted); }

/* Original photos and sliders stay; tone down the glow and floating panels. */
.aioness-auth-original :is(.aion-auth__story, .aion-register-banner, .aion-user-register__story) { min-width: 0; min-height: calc(100svh - 40px); height: auto; margin: 0; border-radius: 22px; box-shadow: none; animation: none; }
.aioness-auth-original :is(.aion-auth__story-title, .aion-register-banner h2, .aion-user-register__story-title) { font-size: clamp(32px, 2.8vw, 43px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; text-shadow: none; }
.aioness-auth-original :is(.aion-auth__story-title span, .aion-register-banner h2 span, .aion-user-register__story-title span) { color: #78ed88; text-shadow: none; }
.aioness-auth-original :is(.aion-auth__story-copy, .aion-register-banner__copy, .aion-user-register__story-text) { font-size: 14px; font-weight: 400; line-height: 1.7; }
.aioness-auth-original .aion-register-banner__card { height: 100%; border-radius: 22px; animation: none; box-shadow: none; }
.aioness-auth-original .aion-auth__product-panel { animation: none; box-shadow: 0 16px 45px rgba(0, 0, 0, .10); }
.aioness-auth-original .aion-auth__panel-status { box-shadow: none; }
.aioness-auth-original :is(.aion-register-banner__card::after, .aion-user-register__story::after) { animation: none; opacity: .4; }

/* Keep the original account-choice photography and benefits. */
.aioness-auth-original .aion-register-choice { min-height: 100svh; padding: 80px 32px 24px; background: transparent; }
.aioness-auth-original .aion-register-choice__stage { gap: 30px; }
.aioness-auth-original .aion-register-choice__panel { gap: 28px; background: var(--auth-surface); border-color: var(--auth-brand-line); box-shadow: var(--auth-shadow); backdrop-filter: none; }
.aioness-auth-original .aion-register-choice__intro h1 { color: var(--auth-brand-ink); font-size: 27px; font-weight: 600; letter-spacing: -.025em; }
.aioness-auth-original .aion-register-choice__intro p:not(.auth-portal-kicker) { color: var(--auth-brand-muted); font-weight: 400; }
.aioness-auth-original .aion-register-choice .aion-register-card { border-color: rgba(25, 25, 112, .12); box-shadow: 0 16px 48px rgba(25, 32, 70, .12); }
.aioness-auth-original .aion-register-choice .aion-register-card h2 { font-size: 29px; font-weight: 600; letter-spacing: -.025em; }
.aioness-auth-original .aion-register-choice .aion-register-card::after { animation: none; }
.aioness-auth-original .aion-register-choice__signin { color: var(--auth-brand-muted); font-size: 13px; font-weight: 400; }
.aioness-auth-original .aion-register-choice__signin a { color: var(--auth-link); font-weight: 500; }
.aioness-auth-original .aion-register-choice .aion-register-card__button { background: var(--auth-brand-green-aa); color: #fff; font-weight: 600; box-shadow: none; }
.aioness-auth-original .aion-register-choice .aion-register-card--customer .aion-register-card__button { background: var(--auth-brand-navy); color: #fff; }
.aioness-auth-original .aion-register-choice .aion-register-card__button:hover { background: #006f0d; }
.aioness-auth-original .aion-register-choice .aion-register-card--customer .aion-register-card__button:hover { background: #27278b; }

/* Supporting auth screens use the same independent portal card. */
body.aioness-auth-brand--utility,
body.aioness-auth-original:has(> .auth-experience--utility) { display: flex; flex-direction: column; gap: 24px; min-height: 100svh; padding-top: 100px; }
.aioness-auth-original .auth-experience--utility { display: block; width: min(520px, calc(100% - 40px)); min-height: 0; height: auto; margin: auto; padding: 0; border: 1px solid var(--auth-brand-line); border-radius: 22px; background: var(--auth-surface); box-shadow: var(--auth-shadow); overflow: visible; }
.aioness-auth-original .auth-experience__form-area { width: 100%; min-width: 0; padding: 0; }
.aioness-auth-original .auth-experience__card { padding: 36px; color: var(--auth-brand-ink); }
.aioness-auth-original .auth-experience__card > .auth-portal-brand { margin-bottom: 26px; }
.aioness-auth-original .auth-experience__card h1 { margin: 0 0 12px; font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--auth-brand-ink); text-align: center; letter-spacing: -.025em; }
.aioness-auth-original .auth-experience__card > p { color: var(--auth-brand-muted); font-size: 13px; line-height: 1.6; text-align: center; }
.aioness-auth-original .auth-experience__card > .portal-kicker { color: var(--auth-accent); font-size: 10px; }
.aioness-auth-original .auth-experience__card .aion-auth__reset-form { margin-top: 24px; }
.aioness-auth-original .auth-experience--utility .aion-auth__register { margin-top: 22px; }

/* Original field geometry and floating-label behavior, now with themed surfaces. */
.aioness-auth-brand :is(.aion-auth__input, .aion-register-control, .aion-floating-field input) { height: 50px; min-height: 50px; border: 1px solid var(--auth-field-line); border-radius: 10px; background: var(--auth-surface); color: var(--auth-brand-ink); font-size: 15px; font-weight: 400; box-shadow: none; }
.aioness-auth-brand :is(.aion-auth__input, .aion-floating-field input):focus,
.aioness-auth-brand .aion-register-control:focus-within { border-color: var(--auth-link); background: var(--auth-surface); outline: none; box-shadow: 0 0 0 3px var(--auth-focus); }
.aioness-auth-brand .aion-register-control :is(input, select) { border: 0; background: transparent; color: var(--auth-brand-ink); font-size: 15px; font-weight: 400; box-shadow: none; }
.aioness-auth-brand :is(.aion-auth__floating-label, .aion-register-floating-label, .aion-floating-field > span) { color: var(--auth-brand-muted); background: var(--auth-surface); font-weight: 400; }
.aioness-auth-brand .aion-user-register .aion-register-floating-label { color: var(--auth-brand-muted); background: var(--auth-surface); }
.aioness-auth-brand :is(.aion-auth__field--floating:focus-within .aion-auth__floating-label, .aion-register-control--floating:focus-within .aion-register-floating-label, .aion-floating-field:focus-within > span) { color: var(--auth-link); }
.aioness-auth-brand :is(.aion-register-slug, .aion-register-phone, .aion-register-code input) { border-color: var(--auth-field-line); border-radius: 10px; background: var(--auth-surface); color: var(--auth-brand-ink); }
.aioness-auth-brand :is(.aion-register-slug span, .aion-register-phone__prefix) { color: var(--auth-link); font-weight: 500; border-color: var(--auth-brand-line); }
.aioness-auth-brand .aion-register-slug span { background: transparent; }
.aioness-auth-brand :is(.aion-register-slug input, .aion-register-phone__number input) { color: var(--auth-brand-ink); background: transparent; }
.aioness-auth-brand :is(.aion-auth__submit, .aion-auth__secondary-submit, .aion-register-primary, .aion-user-register__submit) { min-width: 0; min-height: 50px; border: 1px solid transparent; border-radius: 10px; color: #fff; background: var(--auth-brand-green-aa); font-size: 14px; font-weight: 600; box-shadow: none; text-shadow: none; transition: background .18s ease; }
.aioness-auth-brand :is(.aion-auth__submit, .aion-auth__secondary-submit, .aion-register-primary, .aion-user-register__submit):hover { background: #006f0d; box-shadow: none; transform: none; }
.aioness-auth-brand :is(.aion-auth__email-toggle, .aion-auth__social-button, .aion-register-secondary) { min-width: 0; min-height: 48px; border: 1px solid var(--auth-field-line); border-radius: 10px; background: var(--auth-surface); color: var(--auth-link); font-size: 13px; font-weight: 500; box-shadow: none; }
.aioness-auth-brand :is(.aion-auth__email-toggle, .aion-auth__social-button, .aion-register-secondary):hover { background: var(--auth-soft-surface); border-color: var(--auth-link); }
.aioness-auth-brand input[type="checkbox"] { accent-color: var(--auth-brand-green-aa); }
.aioness-auth-brand :is(.aion-auth__register, .aion-register-login, .aion-user-register__login) { color: var(--auth-brand-muted); font-size: 12px; font-weight: 400; }
.aioness-auth-brand :is(.aion-auth__register a, .aion-register-login a, .aion-user-register__login a, .aion-user-register__link, .aion-register-terms a, .aion-auth__link) { color: var(--auth-link); font-weight: 500; }
.aioness-auth-brand :is(.aion-auth__hint, .aion-auth__back-button, .aion-auth__remember, .aion-auth__field, .aion-register-terms, .aion-user-register__terms, .aion-register-field, .aion-register-field p, .aion-register-slug-hint) { color: var(--auth-brand-muted); }
.aioness-auth-brand .aion-auth__divider { color: var(--auth-brand-muted); }
.aioness-auth-brand .aion-auth__divider::before, .aioness-auth-brand .aion-auth__divider::after { background: var(--auth-brand-line); }
.aioness-auth-brand :is(.aion-auth__account-summary, .aion-auth__social-mark, .aion-user-register__claim) { background: var(--auth-soft-surface); color: var(--auth-brand-ink); border-color: var(--auth-brand-line); }
.aioness-auth-brand .aion-auth__account-summary span { color: var(--auth-brand-muted); }
.aioness-auth-brand .aion-auth__account-summary button { color: var(--auth-link); }

/* Popovers and password checks retain selected/valid/error states in both themes. */
.aioness-auth-brand .aion-register-phone__prefix { background: var(--auth-soft-surface); }
.aioness-auth-brand :is(.aion-register-phone-menu, .phone-field__dropdown) { color: var(--auth-brand-ink); background: var(--auth-surface); border-color: var(--auth-field-line); box-shadow: var(--auth-shadow); }
.aioness-auth-brand :is(.aion-register-phone-menu__search, .aion-register-phone-menu__search input) { background: var(--auth-surface); color: var(--auth-brand-ink); border-color: var(--auth-field-line); }
.aioness-auth-brand :is(.aion-register-phone-option, .aion-register-phone-option__dial) { color: var(--auth-brand-ink); background: var(--auth-surface); border-color: var(--auth-brand-line); }
.aioness-auth-brand .aion-register-phone-option__dial { background: transparent; }
.aioness-auth-brand .aion-register-phone-option:hover, .aioness-auth-brand .aion-register-phone-option.is-selected { background: var(--auth-hover); }
.aioness-auth-brand .aion-register-phone-menu__empty { color: var(--auth-brand-muted); }
.aioness-auth-brand .aion-user-register .phone-field::before { color: var(--auth-brand-muted); background: var(--auth-surface); }
.aioness-auth-brand .aion-user-register .phone-field__control { background: var(--auth-surface); color: var(--auth-brand-ink); border-color: var(--auth-field-line); }
.aioness-auth-brand .aion-user-register .phone-field__selector { background: var(--auth-soft-surface) !important; color: var(--auth-brand-ink) !important; }
.aioness-auth-brand .aion-user-register .phone-field__chevron { color: var(--auth-brand-muted) !important; }
.aioness-auth-brand :is(.aion-register-password-box, .password-strength) { background: var(--auth-soft-surface) !important; color: var(--auth-brand-muted) !important; border: 1px solid var(--auth-brand-line) !important; border-radius: 10px; box-shadow: none; }
.aioness-auth-brand .aion-user-register .password-strength { background: var(--auth-soft-surface) !important; color: var(--auth-brand-muted) !important; border-color: var(--auth-brand-line) !important; }
.aioness-auth-brand :is(.aion-register-password-box li, .password-strength li),
.aioness-auth-brand .aion-user-register .password-strength li { color: var(--auth-brand-muted) !important; }
.aioness-auth-brand :is(.password-strength li span, .aion-register-password-box li::before),
.aioness-auth-brand .aion-user-register .password-strength li span { background: var(--auth-surface); border-color: var(--auth-field-line); }
.aioness-auth-brand .password-strength li.is-met,
.aioness-auth-brand .aion-user-register .password-strength li.is-met { color: var(--auth-success-text) !important; }
.aioness-auth-brand .password-strength li.is-met span,
.aioness-auth-brand .aion-user-register .password-strength li.is-met span { background: var(--auth-brand-green-aa); border-color: var(--auth-brand-green-aa); }
.aioness-auth-brand .aion-register-password-box li span { background: var(--auth-surface); border-color: var(--auth-field-line); }
.aioness-auth-brand .aion-register-password-box li.is-met { color: var(--auth-success-text) !important; }
.aioness-auth-brand .aion-register-password-box li.is-met span { background: var(--auth-brand-green-aa); border-color: var(--auth-brand-green-aa); }
.aioness-auth-brand :is(.aion-auth__error, .aion-auth__inline-error, .aion-register-alert, .aion-user-register__errors) { background: var(--auth-error-bg); color: var(--auth-error-text); border-color: var(--auth-error-text); }
.aioness-auth-brand :is(.aion-auth__status, .aion-register-status) { background: var(--auth-success-bg); color: var(--auth-success-text); border-color: var(--auth-success-text); }
.aioness-auth-brand .aion-register-slug-status.bad { color: var(--auth-error-text); }
.aioness-auth-brand .aion-register-slug-status.ok { color: var(--auth-success-text); }
/* Utility forms include original inline styles; override their colors only. */
.aioness-auth-brand .auth-experience--utility .auth-experience__card input:not([type="checkbox"]):not([type="hidden"]) { background: var(--auth-surface); color: var(--auth-brand-ink); border-color: var(--auth-field-line) !important; }
.aioness-auth-brand .auth-experience--utility .auth-experience__card button[type="submit"] { background: var(--auth-brand-green-aa) !important; color: #fff; font-weight: 600 !important; }
.aioness-auth-brand .auth-experience--utility :is(.text-gray-500, .text-gray-600, .text-gray-700) { color: var(--auth-brand-muted); }
.aioness-auth-brand .auth-experience--utility :is(.bg-gray-100, .bg-gray-50) { background: var(--auth-soft-surface); }
.aioness-auth-brand .auth-experience--utility .auth-experience__card [style*="#fff1f0"] { background: var(--auth-error-bg) !important; color: var(--auth-error-text) !important; }
.aioness-auth-brand .auth-experience--utility .auth-experience__card [style*="#f0fdf4"] { background: var(--auth-success-bg) !important; color: var(--auth-success-text) !important; }
.aioness-auth-brand .auth-experience--utility .auth-experience__card :is(p[style], [data-aion-auth-divider]) { color: var(--auth-brand-muted) !important; }
.aioness-auth-brand .auth-experience--utility .auth-experience__card :is(a, [data-aion-auth-reset-toggle], [data-aion-auth-password-toggle]) { color: var(--auth-link) !important; }
.aioness-auth-brand .auth-experience--utility [data-aion-auth-email-toggle] { background: var(--auth-surface) !important; color: var(--auth-link) !important; border-color: var(--auth-field-line) !important; }


/* The original legal footer is local to each form, not a marketing-site footer. */
.aioness-auth-original :is(.aion-auth__footer, .aion-auth-footer) { margin: 22px 0 0; }
.aioness-auth-original :is(.aion-auth__copyright, .aion-auth__legal-links a, .aion-auth__legal-links button, .aion-register-copyright, .aion-register-legal a, .aion-register-legal button) { color: var(--auth-brand-muted); font-size: 11px; font-weight: 400; }
.aioness-auth-original :is(.aion-auth__footer, .aion-auth__footer a, .aion-auth__footer button, .aion-auth-footer, .aion-auth-footer__copyright, .aion-auth-footer__links a, .aion-auth-footer__links button, .aion-register-choice__footer, .aion-register-choice__footer p, .aion-register-choice__footer a, .aion-register-choice__footer button) { color: var(--auth-brand-muted); font-weight: 400; font-size: 11px; line-height: 1.6; }
.aioness-auth-brand .auth-experience-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; flex-shrink: 0; gap: 10px 20px; width: 100%; margin: 0; padding: 20px 36px; color: var(--auth-brand-muted); font-size: 11px; line-height: 1.6; }
.aioness-auth-brand .auth-experience-footer p { margin: 0; }
.aioness-auth-brand .auth-experience-footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.aioness-auth-brand .auth-experience-footer a, .aioness-auth-brand .auth-experience-footer button { padding: 0; border: 0; color: inherit; background: none; font: inherit; text-decoration: none; cursor: pointer; }
.aioness-auth-brand .auth-experience-footer a:hover, .aioness-auth-brand .auth-experience-footer button:hover { color: var(--auth-link); }


@media (max-width: 1180px) {
    .aioness-auth-original .auth-portal-tools { position: relative; inset: auto; width: min(560px, calc(100% - 40px)); margin: 18px auto 0; }
    .aioness-auth-original :is(.aion-auth, .aion-register, .aion-user-register) { display: block; width: 100%; min-height: 0; height: auto; max-height: none; margin: 0; padding: 24px 20px; overflow: visible; }
    .aioness-auth-original :is(.aion-auth__story, .aion-register-banner, .aion-user-register__story) { display: none; }
    .aioness-auth-original :is(.aion-auth__form-side, .aion-register__form-side, .aion-user-register__form-side) { min-height: 0; height: auto; max-height: none; padding: 0; overflow: visible; }
    .aioness-auth-original .aion-register-choice { padding-top: 30px; min-height: calc(100svh - 76px); }
    body.aioness-auth-brand--utility,
    body.aioness-auth-original:has(> .auth-experience--utility) { padding-top: 0; }
    .aioness-auth-original .auth-experience-footer { justify-content: center; text-align: center; }
    .aioness-auth-original .auth-experience-footer nav { justify-content: center; }
}
@media (max-width: 680px) {
    .aioness-auth-original :is(.aion-user-register__name-row, .aion-user-register__two, .aion-register-grid, .aion-register-field-row) { grid-template-columns: minmax(0, 1fr); }

    body.aioness-auth-original { height: auto; min-height: 100svh; overflow: auto; }
    .aioness-auth-original :is(.aion-auth__card, .aion-register__form-side .aion-register-card, .aion-user-register__card) { height: auto; min-height: 0; max-height: none; padding: 30px 24px; border-radius: 20px; overflow: visible; }
    .aioness-auth-original .aion-auth__card { display: grid; }
    .aioness-auth-original :is(.aion-register__form-shell, .aion-register-form, .aion-user-register__form, .aion-user-register__fields) { height: auto; max-height: none; overflow: visible; }
    .aioness-auth-original .aion-user-register__form { display: grid; }
    .aioness-auth-original .aion-user-register__fields { padding: 0; }
    .aioness-auth-original .aion-register-step > .aion-register-grid { overflow: visible; padding: 0; }
    .aioness-auth-original :is(.aion-user-register__actions, .aion-register-actions) { position: static; background: none; }
    .aioness-auth-original .aion-register-choice { padding: 28px 20px 20px; }
    .aioness-auth-original .aion-register-choice__intro h1 { font-size: 24px; }
    .aioness-auth-original .aion-register-choice .aion-register-card h2 { font-size: 25px; }
    .aioness-auth-original .auth-experience__card { padding: 30px 24px; }
    .aioness-auth-original .auth-experience-footer { padding: 16px 20px; }
    .aioness-auth-original :is(.aion-auth__input, .aion-register-control input, .aion-register-control select, .aion-floating-field input, .aion-register-phone__number input, .aion-register-slug input) { font-size: 16px; }
}
@media (max-width: 380px) {
    .aioness-auth-original :is(.aion-auth, .aion-register, .aion-user-register) { padding-inline: 12px; }
    .aioness-auth-original :is(.aion-auth__card, .aion-register__form-side .aion-register-card, .aion-user-register__card) { padding-inline: 20px; }
    .aioness-auth-original .aion-user-register__two { grid-template-columns: 1fr; }
    .aioness-auth-original .aion-register-choice .aion-register-card { padding-inline: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .aioness-auth-brand *, .aioness-auth-brand *::before, .aioness-auth-brand *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    .aioness-auth-brand [data-auth-motion-toggle] { display: none; }
}
