/* Shared, opt-in client/provider account UI. All authentication contracts remain in their existing views. */
body:has(.auth-ux) .ent-float-cta { display: none !important; }
.auth-ux {
    --auth-blue: #264eff;
    --auth-blue-dark: #173acb;
    --auth-orange: #f59e0b;
    --auth-ink: #142039;
    --auth-muted: #536078;
    --auth-line: #dce3ef;
    --auth-canvas: #f4f7fc;
    color: var(--auth-ink);
    text-align: start;
}
.auth-ux *, .auth-ux *::before, .auth-ux *::after { box-sizing: border-box; }
.auth-ux [hidden] { display: none !important; }
.auth-ux :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--auth-blue);
    outline-offset: 3px;
}
.auth-ux :is(h1, h2, h3, p, a, label) { overflow-wrap: anywhere; }
.auth-ux .auth-access-page, .auth-ux.auth-access-page { width: 100%; max-width: 1100px; margin-inline: auto; padding: 40px 20px 56px; }
.auth-ux.auth-access-page.ca-page { min-height: 0; align-items: flex-start; }
.auth-ux .auth-access-column { flex: 1 1 100%; width: 100%; max-width: 680px; margin-inline: auto; }
.auth-ux-provider.auth-access-page[data-auth-account="provider"]:is([data-auth-mode="forgot"], [data-auth-mode="reset"]) { max-width: 680px; }
.auth-ux-provider[data-auth-account="provider"]:is([data-auth-mode="forgot"], [data-auth-mode="reset"]) .body-container .col-md-4 { flex-basis: 100%; width: 100%; max-width: 100%; }
.auth-ux-provider[data-auth-account="provider"]:is([data-auth-mode="forgot"], [data-auth-mode="reset"]) .body-container :is(.spacing-11, .spacing-2, .spacing-3, .spacing-4, .spacing-6) { height: 0; min-height: 0; margin-block: 0; padding-block: 0; }
.auth-ux .register-page { display: block; min-height: 0; }
.auth-ux .register-container { width: 100%; max-width: 600px; margin-inline: auto; }
.auth-ux .ca-card.auth-access-card { max-width: 680px; padding: 0; }
.auth-ux .ca-body { padding: 28px; }
.auth-ux .ca-field { display: flex; flex-direction: column; min-width: 0; }
.auth-ux .ca-label { display: block; margin-bottom: 8px; }
.auth-ux .ca-mobile-row { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(0, 1.4fr); gap: 10px; width: 100%; }
.auth-ux .ca-mobile-row > * { min-width: 0; }
.auth-ux .auth-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.auth-ux .auth-access-card,
.auth-ux-provider .card {
    min-width: 0;
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    padding: 30px;
    border: 1px solid var(--auth-line) !important;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 42px rgba(20, 32, 57, .07) !important;
}
.auth-ux .auth-access-title {
    margin: 0 0 10px;
    color: var(--auth-ink);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.025em;
}
.auth-ux .auth-access-subtitle { margin: 0 0 22px; color: var(--auth-muted); font-size: 15px; line-height: 1.75; }
.auth-ux .auth-account-context { margin-block: 0 24px; text-align: start; }
.auth-ux .auth-account-audience {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid #dce3ff;
    border-radius: 8px;
    background: #f1f4ff;
    color: #173acb;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
}
.auth-ux-provider .auth-account-audience { border-color: #f4d7a5; background: #fff8eb; color: #855000; }
.auth-ux .auth-account-intro { margin: 12px 0 0; color: var(--auth-muted); font-size: 14px; line-height: 1.75; }
.auth-ux .auth-account-context:is([data-auth-mode="login"], [data-auth-mode="forgot"], [data-auth-mode="reset"]) .auth-account-intro { display: none; }
.auth-ux .auth-account-switch { margin-top: 18px; padding: 16px; border: 1px solid var(--auth-line); border-radius: 12px; background: #fafbff; }
.auth-ux .auth-account-switch > p { margin: 0 0 10px; color: var(--auth-ink); font-size: 13px; font-weight: 600; line-height: 1.65; }
.auth-ux .auth-account-switch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.auth-ux .auth-account-switch-link,
.auth-ux .auth-account-switch-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    color: var(--auth-blue);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
    text-decoration: none;
}
.auth-ux .auth-account-switch-link { padding: 9px 12px; border: 1px solid #cbd5ff; border-radius: 9px; background: #fff; }
.auth-ux .auth-account-switch-secondary { text-decoration: underline; text-underline-offset: 3px; }
.auth-ux .auth-account-switch-link:hover { background: #edf1ff; border-color: var(--auth-blue); }
.auth-ux .auth-access-form { min-width: 0; }
.auth-ux :is(.auth-access-form, .register-form, #caForm, .card, .auth-access-card) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea) {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #c9d2e2;
    border-radius: 10px;
    background: #fff;
    color: var(--auth-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}
.auth-ux :is(.auth-access-form, .register-form, #caForm, .card, .auth-access-card) :is(input, select, textarea):focus { border-color: var(--auth-blue); box-shadow: 0 0 0 3px rgba(38, 78, 255, .09); }
.auth-ux :is(.auth-access-form, .register-form, #caForm, .card, .auth-access-card) label { color: var(--auth-ink); font-size: 13px; font-weight: 650; line-height: 1.55; }
.auth-ux .auth-field-help { margin: 7px 0 0; color: var(--auth-muted); font-size: 12px; line-height: 1.65; }
.auth-ux .auth-password-field { position: relative; display: flex; align-items: center; clear: both; width: 100%; }
.auth-ux .auth-password-field input { display: block; margin-block: 0 !important; padding-inline-end: 75px !important; }
.auth-ux .auth-password-toggle {
    position: absolute;
    inset-inline-end: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 40px;
    padding: 6px 8px;
    border: 0;
    border-radius: 7px;
    background: #f2f5ff;
    color: var(--auth-blue);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.auth-ux .auth-password-toggle:hover { background: #e5ebff; }
.auth-ux .auth-submit,
.auth-ux .register-form > button[type="submit"],
.auth-ux .auth-access-card button[type="submit"],
.auth-ux #caForm .ca-btn[type="submit"],
.auth-ux-provider .card button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    margin-inline: 0 !important;
    padding: 12px 18px;
    border: 1px solid var(--auth-blue);
    border-radius: 11px;
    background: var(--auth-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;
    white-space: normal;
    cursor: pointer;
}
.auth-ux .auth-submit:hover,
.auth-ux-provider .card button[type="submit"]:hover { background: var(--auth-blue-dark); border-color: var(--auth-blue-dark); color: #fff; }
.auth-ux :is(.text-danger, .field-validation-error, .form-error, .ca-error, .validation-summary-errors) { color: #b42332; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.auth-ux :is(.form-error, .ca-error, .validation-summary-errors) { padding: 12px 14px; border: 1px solid #efbec6; border-radius: 10px; background: #fff5f6; }
.auth-ux .auth-access-secondary { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #e9edf5; color: var(--auth-muted); font-size: 14px; line-height: 1.8; text-align: center; }
.auth-ux .auth-access-secondary a { color: var(--auth-blue); font-weight: 700; }
.auth-ux .auth-remember-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-block: 18px; }
.auth-ux .auth-remember-options :is(label, a) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.auth-ux .auth-remember-options input[type="checkbox"] { flex: 0 0 18px; width: 18px !important; height: 18px; accent-color: var(--auth-blue); }
.auth-ux .g-recaptcha { max-width: 100%; overflow-x: auto; overflow-y: hidden; margin-block: 18px; }
.auth-ux-provider #MobileCountrySelect { margin-inline: 0 !important; margin-left: 0 !important; max-width: 100%; }
.auth-ux-provider .select2-container { min-width: 0; max-width: 100%; }
.auth-ux .auth-access-brand-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; width: 100%; max-width: 1100px; margin-inline: auto; padding: 14px 20px; }
.auth-ux .auth-access-brand-nav > a { display: inline-flex; align-items: center; min-height: 44px; }

/* Client role selection keeps the client form intact; provider intentions get an explicit handoff. */
.auth-ux .auth-role-options { display: grid; gap: 12px; margin-block: 24px; }
.auth-ux .auth-role-choice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    min-height: 88px;
    padding: 17px;
    border: 1px solid var(--auth-line);
    border-radius: 13px;
    background: #fff;
    color: var(--auth-ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
}
.auth-ux .auth-role-choice:hover { border-color: #a3b4f4; background: #fbfcff; }
.auth-ux .auth-role-choice[aria-pressed="true"],
.auth-ux .auth-role-choice.selected { border: 2px solid var(--auth-blue); padding: 16px; background: #f3f6ff; }
.auth-ux .auth-role-choice .ca-role-text { flex: 1; min-width: 0; }
.auth-ux .auth-role-choice .ca-role-name { display: block; color: var(--auth-ink); font-size: 15px; font-weight: 750; line-height: 1.6; }
.auth-ux .auth-role-choice .ca-role-desc { display: block; margin-top: 4px; color: var(--auth-muted); font-size: 13px; line-height: 1.75; }
.auth-ux .auth-role-choice .ca-role-icon { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #edf1ff; color: var(--auth-blue); }
.auth-ux .auth-role-choice .ca-role-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.auth-ux .auth-role-choice .ca-role-dot { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 5px; border: 1.5px solid #aab6cc; border-radius: 50%; }
.auth-ux .auth-role-choice[aria-pressed="true"] .ca-role-dot { border: 5px solid var(--auth-blue); background: #fff; }
.auth-ux .auth-provider-handoff { margin-top: 22px; padding: 22px; border: 1px solid #efd3a4; border-radius: 14px; background: #fff9ef; }
.auth-ux .auth-provider-handoff h2 { margin: 0 0 10px; color: var(--auth-ink); font-size: 20px; line-height: 1.4; }
.auth-ux .auth-provider-handoff p { margin: 0 0 16px; color: var(--auth-muted); font-size: 14px; line-height: 1.8; }
.auth-ux .auth-handoff-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-ux .auth-handoff-actions :is(a, button) { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 15px; border: 1px solid var(--auth-blue); border-radius: 10px; background: var(--auth-blue); color: #fff; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.55; text-align: center; text-decoration: none; cursor: pointer; }
.auth-ux .auth-handoff-actions button { border-color: var(--auth-line); background: #fff; color: var(--auth-blue); }
.auth-ux .auth-no-script { margin-block: 18px; padding: 14px; border: 1px solid var(--auth-line); border-radius: 11px; color: var(--auth-muted); font-size: 14px; line-height: 1.8; background: #fff; }
.auth-ux .auth-no-script a { color: var(--auth-blue); font-weight: 700; }
.auth-ux .auth-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.auth-ux .auth-field-grid > * { min-width: 0; }
.auth-ux .auth-status { margin-block: 12px 0; color: var(--auth-muted); font-size: 13px; line-height: 1.7; }

@media (max-width: 600px) {
    .auth-ux .auth-access-page, .auth-ux.auth-access-page { padding: 22px 12px 36px; }
    .auth-ux.auth-access-page.ca-page { padding-top: 12px; }
    .auth-ux .auth-access-card, .auth-ux-provider .card { padding: 22px 16px; border-radius: 16px; }
    .auth-ux .ca-card.auth-access-card { padding: 0; }
    .auth-ux .ca-body { padding: 22px 16px; }
    .auth-ux .auth-access-title { font-size: 26px; }
    .auth-ux .auth-account-context { margin-bottom: 20px; }
    .auth-ux .auth-account-switch { padding: 13px; }
    .auth-ux .auth-account-switch-actions { align-items: stretch; gap: 4px; }
    .auth-ux .auth-account-switch-link, .auth-ux .auth-account-switch-secondary { width: 100%; }
    .auth-ux .auth-role-choice { gap: 10px; padding: 14px 12px; }
    .auth-ux .auth-role-choice[aria-pressed="true"], .auth-ux .auth-role-choice.selected { padding: 13px 11px; }
    .auth-ux .auth-role-choice .ca-role-icon { flex-basis: 30px; width: 30px; height: 30px; }
    .auth-ux .auth-role-choice .ca-role-dot { flex-basis: 16px; width: 16px; height: 16px; }
    .auth-ux .auth-provider-handoff { padding: 18px 14px; }
    .auth-ux .auth-handoff-actions > * { width: 100%; }
    .auth-ux .auth-field-grid { grid-template-columns: minmax(0, 1fr); }
    /* Keep the native 304px CAPTCHA intact at 320px. Existing provider utility
       padding and Bootstrap gutters must not shrink or pad the widget itself. */
    .auth-ux-provider.auth-access-page { padding-inline: 4px; }
    .auth-ux-provider .body-container,
    .auth-ux-provider .page.sign-up > .container { width: 100%; max-width: 100%; padding-inline: 0; }
    .auth-ux-provider .body-container > .row,
    .auth-ux-provider .page.sign-up > .container > .row { margin-inline: 0; }
    .auth-ux-provider .body-container > .row > [class*="col-"],
    .auth-ux-provider .page.sign-up > .container > .row > [class*="col-"] { flex-basis: 100%; width: 100%; max-width: 100%; padding-inline: 0; }
    .auth-ux-provider .card { padding-inline: 3px !important; }
    .auth-ux-provider div.card > form { padding-inline: 13px; }
    .auth-ux-provider form.card > :is(h1, h2, .auth-account-context) { margin-inline: 13px; }
    .auth-ux-provider form.card > .row { margin-inline: 0; }
    body.auth-ux-client .register-page.auth-access-page { padding-inline: 4px; }
    body.auth-ux-client .register-card.auth-access-card { padding-inline: 3px; }
    body.auth-ux-client .register-card > form { padding-inline: 13px; }
    body.auth-ux-client .register-card > :not(form) { margin-inline: 13px; }
    .ent-main:has(> .auth-ux-client[data-auth-signup]) { padding-inline: 0 !important; }
    .auth-ux-client.auth-access-page.ca-page { padding-inline: 4px; }
    .auth-ux-client[data-auth-signup] .ca-body { padding-inline: 3px; }
    .auth-ux-client[data-auth-signup] .ca-body > .auth-access-title,
    .auth-ux-client[data-auth-signup] #step1,
    .auth-ux-client[data-auth-signup] #step2 > :not(form) { margin-inline: 13px; }
    .auth-ux-client #caForm { padding-inline: 13px; }
    .auth-ux .g-recaptcha { width: 304px; min-width: 304px; max-width: none; padding-inline: 0 !important; margin-inline: calc((100% - 304px) / 2); overflow: visible; }
    .auth-ux .g-recaptcha iframe[width="304"] { width: 304px !important; max-width: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-ux *, .auth-ux *::before, .auth-ux *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
