.mc-public-page {
    margin: 0;
    min-height: 100vh;
    line-height: 1.55;
    color: #233244;
    background: #f5f7fa;
    font-family: system-ui, sans-serif;
}
.mc-public-page *, .mc-public-page *::before, .mc-public-page *::after { box-sizing: border-box; }
.mc-auth-backdrop, .mc-auth-shade { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mc-auth-backdrop { object-fit: cover; }
.mc-auth-shade { background: rgb(12 35 23 / 32%); }
.mc-auth-main { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 1.25rem; }
.mc-auth-card, .legal-page {
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 1rem;
    box-shadow: 0 16px 48px rgb(22 37 53 / 14%);
}
.mc-auth-card { width: min(100%, 30rem); padding: clamp(1.25rem, 5vw, 2rem); overflow-wrap: anywhere; }
.mc-auth-card .mc-page-title, .legal-page .mc-page-title { font-size: clamp(1.6rem, 5vw, 2.15rem); }
.mc-auth-logo { display: block; width: fit-content; margin: 0 auto 1.25rem; }
.mc-auth-logo img { display: block; max-width: min(17rem, 100%); max-height: 7rem; }
.mc-auth-form { display: grid; gap: .9rem; margin-top: 1.25rem; }
.mc-auth-field { display: grid; gap: .3rem; }
.mc-auth-field > label { font-weight: 600; }
.mc-auth-field > label span, .mc-auth-field-error, .mc-auth-error { color: var(--mc-error, #b42318); }
.mc-auth-field > input {
    width: 100%; min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid #718197;
    border-radius: .5rem; color: inherit; background: #fff; font: inherit;
}
.mc-auth-field > input[aria-invalid="true"] { border-color: var(--mc-error, #b42318); }
.mc-auth-field-error { margin: 0; font-size: .9rem; }
.mc-auth-check { display: flex; align-items: center; gap: .6rem; width: fit-content; }
.mc-auth-check input { width: 1.2rem; height: 1.2rem; accent-color: var(--mc-brand-accent, #144377); }
.mc-auth-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .8rem 1rem; margin-top: .5rem; }
.mc-auth-card a, .mc-auth-link, .legal-page a { color: var(--mc-brand-primary, #123a61); text-underline-offset: .15em; }
.mc-auth-button, .mc-auth-link { min-height: 2.75rem; font: inherit; font-weight: 600; cursor: pointer; }
.mc-auth-button {
    padding: .5rem 1rem; border: 0; border-radius: .55rem;
    background: var(--mc-brand-accent, #144377); color: var(--mc-on-accent, #fff);
}
.mc-auth-button:hover { filter: brightness(.92); }
.mc-auth-link { background: transparent; padding: .35rem; border: 0; text-decoration: underline; }
.mc-public-page :focus-visible { outline: 2px solid var(--mc-brand-primary, #123a61); outline-offset: 3px; }
.mc-auth-notice { margin: .75rem 0; padding: .65rem .9rem; border-radius: .4rem; background: #eef4fa; }
.mc-auth-error { background: #fff3f1; }
.mc-auth-error ul { margin: 0; padding-left: 1.15rem; }
.legal-page { width: min(calc(100% - 2rem), 56rem); margin: clamp(1rem, 5vw, 3rem) auto; padding: clamp(1.25rem, 5vw, 2.5rem); }
.legal-page__back { display: inline-block; margin-bottom: 1rem; }
.legal-page__content { line-height: 1.65; overflow-wrap: anywhere; }
.legal-page__content img { max-width: 100%; height: auto; }
