/* P116 entry screens: existing approved wordmark and platform field, no new artwork. */
body.mirai-auth-root.mirai-auth-root,
html[data-theme] body:has(.login-wrap) {
  background-color: var(--s-bg-page, #1B1D22) !important;
  background-image: var(--platform-field) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-attachment: fixed !important;
  font-family: Arial, Helvetica, sans-serif !important;
}
body.mirai-auth-root .mirai-auth-card,
.login-wrap .login-card {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.mirai-auth-root .mirai-auth-shell,
.login-wrap { max-width: 352px !important; }
body.mirai-auth-root .mirai-auth-header { margin-bottom: 32px; }
body.mirai-auth-root .mirai-auth-header h1 { font-size: 18px !important; font-weight: 500 !important; }
body.mirai-auth-root .mirai-auth-header img { width: 260px !important; height: 88px !important; margin-bottom: 20px !important; }
body.mirai-auth-root .mirai-auth-card input:not([type="hidden"]):not([type="checkbox"]) {
  min-height: 48px !important;
  background: var(--auth-input) !important;
}
body.mirai-auth-root .mirai-auth-card button[type="submit"] { min-height: 48px !important; }
body.mirai-auth-root .mirai-auth-footer { margin-top: 32px !important; }
@media(max-height:520px) {
  body.mirai-auth-root.mirai-auth-root { padding-top: 64px !important; place-items: start center !important; }
  body.mirai-auth-root .mirai-auth-header { margin-bottom: 20px; }
}

/* Current operator login parity (8 October); pinned 14 October. */
/* Operator login matches the pilot's entry geometry; authentication is unchanged. */
body.mirai-auth-root .mirai-auth-header img {
  width: 180px !important;
  height: auto !important;
}
body.mirai-auth-root .mirai-auth-card input:not([type="hidden"]):not([type="checkbox"]) {
  background: transparent !important;
  box-shadow: none !important;
  -webkit-text-fill-color: var(--auth-text);
  caret-color: var(--auth-text);
}
body.mirai-auth-root .mirai-auth-card input:-webkit-autofill {
  -webkit-box-shadow: none !important;
  transition: background-color 9999s ease-out;
}
/* Retain the still as a no-JS/canvas fallback, never behind a painted canvas. */
html[data-theme] body.mirai-auth-root.login-background-ready {
  background-image: none !important;
}
.login-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
body.mirai-auth-root .mirai-auth-shell {
  position: relative;
  z-index: 1;
}

/* Pilot mounts the same drawing in a disposable background host. */
body.mirai-auth-root:has(#login-background canvas) { background-image:none!important; }
#login-background { position:fixed;inset:0;pointer-events:none;z-index:0; }
#login-background canvas { position:absolute;inset:0;width:100%;height:100%;opacity:1; }
