/* Scoped form vocabulary: registration and password recovery. */
.ceads--auth .auth-forms-page {
    --auth-ink: #173f43;
    --auth-muted: #526b6b;
    --auth-action: #246b6c;
    --auth-line: #b8cecb;
    color: var(--auth-ink);
    min-height: 100vh;
    background: #f7faf9;
}
.auth-forms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem max(1.25rem, calc((100% - 75rem) / 2));
    background: #fff;
    border-bottom: 1px solid #d7e7e3;
}
.auth-forms-header img { width: 10.6rem; height: auto; }
.auth-forms-page a { color: var(--auth-action); text-underline-offset: .2em; }
.auth-forms-header a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; font-weight: 600; }
.auth-forms-shell { width: min(100% - 2.5rem, 52rem); margin: 2.5rem auto; padding-bottom: 2rem; }
.auth-forms-shell--compact { max-width: 32rem; }
.ceads--auth .auth-forms-page h1 { margin: 0 0 .75rem; color: var(--auth-ink) !important; font-size: 2rem; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.auth-forms-heading p { max-width: 65ch; margin-bottom: .5rem; color: var(--auth-muted); font-size: 1rem; }
.auth-forms-signin { margin: 1rem 0 1.5rem; }
.auth-forms-form { padding: 2rem; border: 1px solid #d7e7e3; border-radius: .5rem; background: #fff; }
.auth-forms-form fieldset { min-width: 0; margin: 0; padding: 0 0 1.75rem; border: 0; }
.auth-forms-form fieldset + fieldset { padding-top: 1.75rem; border-top: 1px solid #d7e7e3; }
.auth-forms-form legend { float: none; width: auto; margin: 0 0 .25rem; color: var(--auth-ink); font-size: 1.25rem; font-weight: 700; }
.auth-forms-section-help { margin: 0 0 1.25rem; color: var(--auth-muted); font-size: .95rem; }
.auth-forms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.auth-forms-field { min-width: 0; }
.auth-forms-field--wide { grid-column: 1 / -1; }
.auth-forms-field label { display: block; margin: 0 0 .4rem; color: var(--auth-ink); font-size: 1rem; font-weight: 600; }
.auth-forms-optional { color: var(--auth-muted); font-weight: 400; }
.auth-forms-hint { margin: -.1rem 0 .5rem; color: var(--auth-muted); font-size: .9rem; }
.auth-forms-control { position: relative; }
.auth-forms-control input, .auth-forms-control select {
    width: 100%; min-width: 0; min-height: 2.875rem; padding: .625rem .75rem;
    border: 1px solid var(--auth-line); border-radius: .375rem;
    background: #fff; color: var(--auth-ink); font: inherit; font-size: 1rem;
}
.auth-forms-control input::placeholder { color: var(--auth-muted); opacity: 1; }
.auth-forms-control input[aria-invalid="true"], .auth-forms-control select[aria-invalid="true"] { border-color: #a32e32; }
.auth-forms-control:has(.auth-forms-password-toggle) input { padding-inline-end: 3.25rem; }
.auth-forms-password-toggle {
    position: absolute; inset-inline-end: 1px; top: 1px; display: grid; place-items: center;
    width: 2.75rem; min-height: 2.75rem; padding: .5rem; border: 0; border-radius: .25rem;
    background: transparent; color: var(--auth-action); cursor: pointer;
}
.auth-forms-password-toggle:hover { background: #edf8f6; }
.auth-forms-page :is(a, button, input, select, [tabindex]):focus-visible { outline: 3px solid #246b6c; outline-offset: 3px; }
.auth-forms-error { margin: .4rem 0 0; color: #a32e32; font-size: .95rem; }
.auth-forms-notice { margin: 1.25rem 0; padding: 1rem; border: 1px solid; border-radius: .375rem; overflow-wrap: anywhere; }
.auth-forms-notice--error { background: #fff4f3; color: #85282b; border-color: #d9a4a4; }
.auth-forms-notice--error a { color: #85282b; }
.auth-forms-notice--success { background: #edf8f0; color: #285b3a; border-color: #a3c5ac; }
.auth-forms-notice ul { margin: .5rem 0 0; padding-inline-start: 1.25rem; }
.auth-forms-notice p { margin: .5rem 0 0; }
.auth-forms-consent { display: flex; align-items: flex-start; gap: .75rem; margin-top: .5rem; }
.auth-forms-consent input { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--auth-action); }
.auth-forms-consent label { min-height: 2.75rem; line-height: 1.5; cursor: pointer; }
.auth-forms-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.auth-forms-primary, .auth-forms-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 2.875rem; padding: .625rem 1.125rem; border: 1px solid var(--auth-action);
    border-radius: .375rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background-color 150ms ease-out, color 150ms ease-out;
}
.ceads--auth .auth-forms-page .auth-forms-primary { background: var(--auth-action); color: #fff !important; }
.ceads--auth .auth-forms-page .auth-forms-primary:hover { background: #185455; }
.auth-forms-secondary { background: #fff; color: var(--auth-action); }
.auth-forms-secondary:hover { background: #edf8f6; }
.auth-forms-primary:disabled, .auth-forms-secondary:disabled { opacity: .65; cursor: wait; }
.auth-forms-status { color: var(--auth-muted); font-size: .95rem; }
.auth-forms-status:empty { display: none; }
.auth-forms-address-lookup { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.auth-forms-address-lookup .auth-forms-field { flex: 1 1 12rem; }
.auth-forms-address-lookup .auth-forms-status { flex-basis: 100%; margin: 0; }
.auth-forms-footer { margin: 1.5rem 0 0; color: var(--auth-muted); font-size: .95rem; }
@media (max-width: 40rem) {
    .auth-forms-shell { width: min(100% - 2rem, 52rem); margin-top: 1.5rem; }
    .auth-forms-form { padding: 1.25rem; }
    .auth-forms-grid { grid-template-columns: minmax(0, 1fr); }
    .auth-forms-page h1 { font-size: 1.75rem; }
    .auth-forms-header { padding-inline: 1rem; }
    .auth-forms-header img { width: 8.75rem; }
}
@media (prefers-reduced-motion: reduce) { .auth-forms-page * { transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) {
    .auth-forms-page :is(button, input, select) { border: 1px solid ButtonText; }
    .auth-forms-page :is(a, button, input, select):focus-visible { outline-color: Highlight; }
}
