/* Only the authentication selector for Subway Original and Bubble Win.
   Card geometry, fields, validation and 2FA remain owned by their installed theme. */
body:is([data-theme="original"],[data-theme="bubble"]) #modalBackdrop.is-auth-modal .auth-mode-tabs {
  --auth-tab-bg:#150e2e;
  --auth-tab-line:#3b2a70;
  --auth-tab-text:#c8c2e1;
  --auth-tab-selected:#fff;
  --auth-tab-fill:linear-gradient(135deg,#7c5cff,#5a3df5);
  --auth-tab-focus:#00c2ff;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px;
  padding:5px;
  margin:0 0 20px;
  border:1px solid var(--auth-tab-line);
  border-radius:13px;
  background:var(--auth-tab-bg);
  width:100%;
  min-width:0;
}
body[data-theme="original"] #modalBackdrop.is-auth-modal .auth-mode-tabs {
  --auth-tab-bg:#031522;
  --auth-tab-line:#17658e;
  --auth-tab-text:#bcd9e9;
  --auth-tab-selected:#06243b;
  --auth-tab-fill:linear-gradient(135deg,#ffd43d,#ffb62b);
  --auth-tab-focus:#19c6e7;
}
body:is([data-theme="original"],[data-theme="bubble"]) #modalBackdrop.is-auth-modal .auth-mode-tabs [role="tab"] {
  appearance:none;
  box-sizing:border-box;
  display:flex;
  justify-content:center;
  align-items:center;
  min-width:0;
  min-height:44px;
  width:100%;
  padding:10px 8px;
  margin:0;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:var(--auth-tab-text);
  font:700 15px/1.3 "Segoe UI",system-ui,sans-serif;
  text-transform:none;
  letter-spacing:0;
  cursor:pointer;
  box-shadow:none;
  overflow-wrap:anywhere;
}
body:is([data-theme="original"],[data-theme="bubble"]) #modalBackdrop.is-auth-modal .auth-mode-tabs [aria-selected="true"] {
  color:var(--auth-tab-selected);
  background:var(--auth-tab-fill);
  box-shadow:0 3px 10px #0003;
}
body:is([data-theme="original"],[data-theme="bubble"]) #modalBackdrop.is-auth-modal .auth-mode-tabs [role="tab"]:focus-visible {
  outline:2px solid var(--auth-tab-focus)!important;
  outline-offset:2px;
}
body:is([data-theme="original"],[data-theme="bubble"]) #modalBackdrop.is-auth-modal .auth-mode-tabs [role="tab"]:disabled {
  cursor:wait;
  opacity:.65;
}
body:is([data-theme="original"],[data-theme="bubble"]) #modalBackdrop.is-auth-modal .auth-mode-panel {
  min-width:0;
  width:100%;
}
body:is([data-theme="original"],[data-theme="bubble"]) #modalBackdrop.is-auth-modal :is(.auth-mode-panel[hidden],.auth-mode-legacy-switch) {
  display:none!important;
}
@media(max-width:360px),(max-height:600px) {
  body:is([data-theme="original"],[data-theme="bubble"]) #modalBackdrop.is-auth-modal .auth-mode-tabs {margin-bottom:16px}
}
