/* Domestic member authentication failures use the same warning palette as brand sign-in. */
.platform-app :is([data-testid="native-login-form"],[data-testid="native-register-form"],[data-testid="native-reset-form"]) [role="alert"],
.platform-app .platform-content>.platform-panel>p[role="alert"]{color:#b42318!important;background-color:#fff1f0;border:1px solid #f5b5b0;border-radius:10px;padding:12px 14px;font-weight:600;line-height:1.6}

/* Keep authentication controls on the international violet palette despite legacy member theme overrides. */
.platform-app:has([data-testid^="native-"]) {--ink:#2b2845;--ink-soft:#726a89;--muted:#726a89;--line:#e1d8fa;--paper:#fbf9ff;--paper-deep:#f0ebff;--aqua:#7952e8;--aqua-dark:#7952e8;--accent:#7952e8}
.platform-app:has([data-testid^="native-"]) .button.dark,.platform-app :is([data-testid^="native-"],[data-testid^="brand-"]) button[type="submit"] {background:#7952e8!important;border-color:#7952e8!important;color:#fff!important}
.platform-app:has([data-testid^="native-"]) .button.dark:hover,.platform-app :is([data-testid^="native-"],[data-testid^="brand-"]) button[type="submit"]:hover {background:#6840d3!important;border-color:#6840d3!important;color:#fff!important}

/* Clearly distinguish the selected domestic member login method. */
.platform-app [data-testid="native-login-form"] [role="tablist"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid #ded3f6;border-radius:14px;background:#f0ebfa;width:100%;box-sizing:border-box}
.platform-app [data-testid="native-login-form"] [role="tab"]{min-width:0;min-height:44px;margin:0;padding:10px 8px;border:1px solid transparent!important;border-radius:10px;background:transparent!important;color:#625573!important;font-size:14px;font-weight:500;line-height:1.4;text-align:center;box-shadow:none;transition:background-color .15s,color .15s,box-shadow .15s}
.platform-app [data-testid="native-login-form"] [role="tab"][aria-selected="true"]{background:#7952e8!important;border-color:#7952e8!important;color:#fff!important;font-weight:700;box-shadow:0 2px 6px #50338e26}
.platform-app [data-testid="native-login-form"] [role="tab"][aria-selected="false"]:hover{background:#e7def8!important;color:#50338e!important}
.platform-app [data-testid="native-login-form"] [role="tab"]:focus-visible{outline:3px solid #bca4f5;outline-offset:2px}

/* Keep short pages full height without covering long legal or account content. */
.platform-app{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.platform-app>main{flex:1 0 auto;box-sizing:border-box;width:100%}
.platform-app>.platform-header,.platform-app>.platform-footer{flex-shrink:0}
.platform-app>.platform-footer{margin-top:auto}
