/* The imported document owns page layout; only canonical auth controls adapt. */
.wmgce-imported-login .wmgce-imported-auth {width:100%;min-width:0}
.wmgce-imported-login .wmgce-auth-card {width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;color:inherit;font-family:inherit;--wmgce-text:var(--ink,currentColor);--wmgce-muted:var(--muted,#666);--wmgce-line:var(--line,#bbb);--wmgce-bg:transparent;--wmgce-panel:var(--paper,#fff);--wmgce-panel-2:var(--surface,#fff);--wmgce-accent:var(--gold,#ffd415)}
.wmgce-imported-login .auth-card .wmgce-auth-brand {display:none}
.wmgce-imported-login .wmgce-auth-card :is(input,select,button,a,label) {font-family:inherit}
.wmgce-imported-login .wmgce-auth-card .wmgce-auth-tabs {display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;width:100%;min-width:0;padding:3px;border:1px solid var(--line,#bbb);border-radius:var(--radius,.35rem);background:var(--surface,#fff);box-sizing:border-box}
.wmgce-imported-login .wmgce-auth-card .wmgce-auth-tabs button {width:100%;min-width:0;min-height:44px;margin:0;padding:10px 2px;border:0;border-radius:2px;box-shadow:none;background:transparent;color:inherit;font-size:clamp(.625rem,2.8vw,.82rem);line-height:1.2;letter-spacing:0;text-transform:none;white-space:nowrap;box-sizing:border-box}
.wmgce-imported-login .wmgce-auth-card .wmgce-auth-tabs button[aria-selected=true] {background:var(--gold,#ffd415);box-shadow:none;color:#050505}
.wmgce-imported-login .wmgce-auth-card .wmgce-auth-tabs button:focus-visible {outline:2px solid var(--gold,#ffd415);outline-offset:2px}
.wmgce-imported-login .wmgce-auth-card input:not([type=checkbox]):not([type=hidden]) {border-radius:var(--radius,.35rem);background:var(--surface,#fff);color:var(--ink,#111)}
.wmgce-imported-login .wmgce-auth-card .wmgce-btn-primary {background:var(--gold,#ffd415);color:var(--wmgce-imported-button-ink,#050505);border-radius:0;border-color:var(--gold,#ffd415);box-shadow:none;clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%)}
.wmgce-imported-login .wmgce-auth-message.is-error {color:var(--danger,#b42318);background:transparent}
.wmgce-imported-login .wmgce-auth-message.is-success {color:var(--success,#176b44);background:transparent}
.wmgce-imported-login .wmgce-auth-card [hidden] {display:none!important}

.wmgce-imported-login [data-wmgce-theme-submit] {width:100%}

/* Canonical OTP password recovery inside the same imported login presentation.
   Scope and specificity intentionally override OTP's later default theme CSS.
   Token/field/stage ownership stays with OTP Integration, not this adapter. */
.wmgce-imported-login .wmgce-imported-recovery {width:100%;min-width:0;color:var(--ink,#111);font-family:inherit}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-password-experience {width:100%;max-width:none;margin:0;min-width:0}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card.wmg-otp-password-recovery-card {
  --wmg-primary:var(--gold,#ffd415)!important;
  --wmg-surface:transparent!important;
  --wmg-text:var(--ink,#111)!important;
  --wmg-muted:var(--muted,#666)!important;
  --wmg-label:var(--ink,#111)!important;
  --wmg-heading:var(--ink,#111)!important;
  --wmg-description:var(--muted,#666)!important;
  --wmg-link:var(--ink,#111)!important;
  --wmg-field-bg:var(--surface,#fff)!important;
  --wmg-field-text:var(--ink,#111)!important;
  --wmg-field-placeholder:var(--muted,#666)!important;
  --wmg-field-border:var(--line,#bbb)!important;
  --wmg-field-focus:var(--gold,#ffd415)!important;
  --wmg-button-bg:var(--gold,#ffd415)!important;
  --wmg-button-hover:var(--gold-strong,#f2c500)!important;
  --wmg-button-active:var(--gold-strong,#f2c500)!important;
  --wmg-button-disabled:var(--gold,#ffd415)!important;
  --wmg-on-primary:var(--wmgce-imported-button-ink,#050505)!important;
  --wmg-status-bg:transparent!important;
  --wmg-status-border:var(--line,#bbb)!important;
  --wmg-error:#a61b1b!important;
  --wmg-success:#176b44!important;
  width:100%;max-width:none;min-width:0;margin:0;padding:0;
  border:0;border-radius:0;background:transparent;box-shadow:none;
  color:var(--ink,#111);font-family:inherit;backdrop-filter:none;
}
.wmgce-imported-login[data-theme=dark] .wmgce-imported-recovery .wmg-otp-card.wmg-otp-password-recovery-card,
[data-theme=dark] .wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card.wmg-otp-password-recovery-card {
  --wmg-error:#ff8a80!important;--wmg-success:#74d99c!important;
}
.wmgce-imported-login .wmgce-imported-recovery :is(input,select,button,a,label,legend) {font-family:inherit;box-sizing:border-box}
.wmgce-imported-login .wmgce-imported-recovery [hidden] {display:none!important}
.wmgce-imported-login .wmgce-imported-recovery [data-wmg-password-recovery-stage] {min-width:0;display:block}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-password-recovery-description {color:var(--muted,#666);font:inherit;line-height:1.6;margin:0 0 1.5rem;overflow-wrap:anywhere}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-password-recovery-heading {font-size:clamp(1.35rem,4vw,1.85rem);line-height:1.2;margin:0 0 .75rem;letter-spacing:.025em;color:var(--ink,#111)}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card label {display:block;margin:0 0 1rem;font-weight:700;color:var(--ink,#111);font-size:1rem}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card label>span:not(.wmg-otp-password-input) {font-size:.82rem;letter-spacing:.06em;text-transform:uppercase}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card input:not([type=radio]):not([type=checkbox]):not([type=hidden]) {width:100%;min-height:48px;margin-top:.5rem;padding:.85rem 1rem;border:1px solid var(--line,#bbb);border-radius:var(--radius,.35rem);background:var(--surface,#fff);color:var(--ink,#111);font-size:1rem;line-height:1.5;box-shadow:none}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card input:focus-visible {outline:2px solid var(--gold,#ffd415);outline-offset:2px}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card .wmg-otp-channel-choice {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0 0 1.5rem;padding:0;border:0;border-bottom:1px solid var(--line,#bbb);min-width:0}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card .wmg-otp-channel-choice legend {padding:0 0 .5rem;color:var(--muted,#666);font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card .wmg-otp-channel-choice label {position:relative;display:block;margin:0;min-width:0;cursor:pointer}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card .wmg-otp-channel-choice input {position:absolute;width:1px;height:1px;padding:0;margin:0;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card .wmg-otp-channel-choice label>span {display:flex;justify-content:center;align-items:center;min-height:48px;padding:.75rem .5rem;margin:0;background:transparent;color:var(--ink,#111);border:0;border-bottom:3px solid transparent;border-radius:0;box-shadow:none;text-align:center;font-size:.8rem;letter-spacing:.06em}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card .wmg-otp-channel-choice input:checked+span {background:transparent;color:var(--ink,#111);border-bottom-color:var(--gold,#ffd415);box-shadow:none}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card .wmg-otp-channel-choice input:focus-visible+span {outline:2px solid var(--gold,#ffd415);outline-offset:-2px}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card button:not(.wmg-otp-link-button):not(.wmg-otp-secondary):not(.wmg-otp-password-toggle) {min-height:48px;width:100%;margin-top:.5rem;padding:.9rem 1.15rem;border:1px solid var(--gold,#ffd415);border-radius:0;background:var(--gold,#ffd415);color:var(--wmgce-imported-button-ink,#050505);font:inherit;font-weight:700;line-height:1.4;box-shadow:none;cursor:pointer}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card button:not(.wmg-otp-link-button):not(.wmg-otp-secondary):not(.wmg-otp-password-toggle):hover {background:var(--gold-strong,#f2c500);border-color:var(--gold-strong,#f2c500);box-shadow:none;transform:none}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card button:disabled {opacity:.55;cursor:wait;transform:none}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card button:focus-visible {outline:2px solid var(--gold,#ffd415);outline-offset:3px}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card button.wmg-otp-secondary {display:block;justify-self:start;min-height:48px;width:fit-content;max-width:100%;margin:1.25rem 0 0;padding:.6rem 0;border:0!important;border-bottom:2px solid var(--gold,#ffd415)!important;border-radius:0;background:transparent;color:var(--ink,#111)!important;font-size:.82rem;line-height:1.5;font-weight:800;letter-spacing:.05em;text-transform:uppercase;box-shadow:none}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card button.wmg-otp-secondary:hover {background:transparent;color:var(--ink,#111);border-bottom-color:var(--gold-strong,#f2c500);transform:none}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-password-input {position:relative;display:block;width:100%}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card .wmg-otp-password-input input {padding-right:3.4rem}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card button.wmg-otp-password-toggle {position:absolute;right:.35rem;top:50%;transform:translateY(-50%);min-width:40px;min-height:40px;width:40px;height:40px;margin:0;padding:.6rem;background:transparent;color:var(--muted,#666);border:0;border-radius:var(--radius,.35rem);box-shadow:none}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-card button.wmg-otp-password-toggle:hover {background:transparent;color:var(--ink,#111)}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-status {color:var(--ink,#111);margin:1rem 0 0;font-size:.95rem;line-height:1.55;overflow-wrap:anywhere}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-status:not(:empty) {padding:.9rem 1rem;border:1px solid var(--line,#bbb);border-radius:var(--radius,.35rem);background:transparent}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-status[data-state=error] {color:var(--wmg-error,#a61b1b);border-color:currentColor}
.wmgce-imported-login .wmgce-imported-recovery .wmg-otp-status[data-state=success] {color:var(--wmg-success,#176b44);border-color:currentColor}
.wmgce-imported-login[data-wmgce-auth-surface=password-recovery] .auth-card>.eyebrow {color:var(--muted,#666)}
.wmgce-imported-login[data-wmgce-auth-surface=password-recovery][data-theme=dark] .auth-card>.eyebrow,
[data-theme=dark] .wmgce-imported-login[data-wmgce-auth-surface=password-recovery] .auth-card>.eyebrow {color:var(--gold,#ffd415)}
@media (prefers-reduced-motion:reduce) {.wmgce-imported-login .wmgce-imported-recovery * {transition:none!important;animation:none!important}}

@media(min-width:1024px){
 .wmgce-imported-login .auth-page{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
 .wmgce-imported-login .auth-intro,.wmgce-imported-login .auth-card{min-width:0;text-align:left;padding-inline:clamp(24px,4vw,72px);box-sizing:border-box;display:flex;flex-direction:column;align-items:center}
 .wmgce-imported-login .auth-intro>*{width:100%;max-width:600px;text-align:left;box-sizing:border-box}
 .wmgce-imported-login .auth-card>*{width:100%;max-width:480px;text-align:left;box-sizing:border-box}
 .wmgce-imported-login .wmgce-imported-auth{width:100%;max-width:480px;margin-inline:0}
}
.wmgce-imported-login .auth-card:has(.wmgce-imported-auth)>.auth-help{display:none}
.wmg-menu-badge{font-size:.7em;border:1px solid currentColor;border-radius:20px;padding:2px 6px;margin-left:6px}
.wmgce-temporary-access {color:var(--ink,#111);font-family:inherit;min-width:0}
.wmgce-temporary-access h2 {font-family:inherit;font-size:1.35rem;line-height:1.3;overflow-wrap:anywhere}
.wmgce-temporary-access-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}
.wmgce-temporary-access-facts>div {padding:14px;border:1px solid var(--line,#bbb);background:var(--surface,#fff)}
.wmgce-temporary-access-facts dt {font-weight:700;font-size:.8rem;text-transform:uppercase;color:var(--muted,#666)}
.wmgce-temporary-access-facts dd {margin:6px 0 0;overflow-wrap:anywhere}
.wmgce-temporary-access form {margin:0;padding:0;border:0;background:transparent}
.wmgce-temporary-access button {width:100%;min-height:48px}
.wmgce-temporary-access-note {font-size:.85rem;line-height:1.6;color:var(--muted,#666)}
@media(max-width:420px){.wmgce-temporary-access-facts{grid-template-columns:1fr}}
