/* Sign-in (password + authenticator app), Two-step sign-in page, and logins in Team & departments */
.sistep { font-size: 1.125rem; margin: 4px 0 4px; }
#signin-body > p.small { text-align: left; width: 100%; }
.siform { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; text-align: left; }
.siform label { font-size: var(--fs-14); font-weight: 600; color: var(--grey-ink); }
.siform input[type="email"], .siform input[type="password"], .siform input[type="text"] { min-height: 44px; border: 1px solid var(--input-strong); border-radius: var(--r-ctl); background: var(--surface); padding: 0 10px; color: var(--ink); font-size: 0.9375rem; width: 100%; }
.siform input:focus { outline: 2px solid var(--blue-btn); outline-offset: 1px; border-color: var(--blue-btn); }
.siform .btn.wide { margin-top: 4px; min-height: 44px; }
.codein { font: 600 1.375rem var(--font); letter-spacing: 0.3em; text-align: center; }
.siform input.codein { font-size: 1.375rem; }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-14); color: var(--muted); }
.rules li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--switch-off, #9AA8A1); margin-right: 8px; vertical-align: middle; }
.rules li.ok { color: var(--good); }
.rules li.ok::before { background: var(--good); }
.tsteps { text-align: left; margin: 8px 0 0; padding-left: 20px; font-size: var(--fs-14); display: flex; flex-direction: column; gap: 6px; width: 100%; }
.qrbox { align-self: center; margin: 12px auto 4px; padding: 10px; background: #fff; border-radius: var(--r-ctl); border: 1px solid var(--line); line-height: 0; width: max-content; }
.qrbox img { width: 184px; height: 184px; display: block; }
.tkey { width: 100%; text-align: left; margin-top: 4px; }
.tkey summary { cursor: pointer; font-size: var(--fs-14); font-weight: 600; color: var(--grey-ink); min-height: 32px; display: flex; align-items: center; }
.keytxt code, .pwtxt code { font: 600 1rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--ground); border: 1px solid var(--divider); padding: 6px 10px; border-radius: 8px; display: inline-block; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.keytxt { margin: 6px 0; }
.loginbox { gap: 6px; grid-column: 1 / -1; max-width: 560px; }
.loginbox p { margin: 0; }
.loginacts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.loginacts .link { min-height: 40px; display: inline-flex; align-items: center; }
.temppw { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-ctl); background: var(--tint-amber, var(--amber-bg)); border: 1px solid var(--line); }
.pwtxt { margin: 0; }
.pwtxt code { font-size: 1.25rem; user-select: all; }
.tscard { display: flex; flex-direction: column; gap: 10px; }
.tscard .siform, .tscard .tsteps { max-width: 420px; }
.tscard .qrbox { margin: 8px 0 4px; }
.tsline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.tscard .signmsg { max-width: 420px; }
.umenu .link .kind { margin-left: auto; }

/* Set-up steps: steps, QR code, "Can't scan it?" stacked; side by side on the wide sign-in card */
.tsgrid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "steps" "qr" "key"; align-items: start; }
.tsgrid .tsteps { grid-area: steps; } .tsgrid .qrbox { grid-area: qr; } .tsgrid .tkey { grid-area: key; }
.sierr { margin: 0; min-height: 20px; font-size: var(--fs-14); line-height: 20px; color: var(--red); }
.sierr:empty::before { content: "\00a0"; }

/* =====================================================================
   Log-in screen. One calm composition on soft grey: the Assistant and the intro line on the left, the card on the right
   (phones: the Assistant small beside the line, then the card full width). The wording is set in Settings > Sign-in wording.
   Stays light in dark mode so the black MCP logo always reads.
   ===================================================================== */
.signin {
  --surface: #FFFFFF; --ink: #16231D; --grey-ink: #3B4A43; --muted: #5B6B63; --input-strong: #7C8A83; --line: #E3E9E4; --link: #3A66AA;
  --red: #A1251B; --red-bg: #FCE8E6; --blue-bg: #E7EFF8; --ground: #F5F7F5; --divider: #EDF1EE; --good: #2F6B55; --switch-off: #9AA8A1;
  /* the Assistant keeps her daytime colours too */
  --m-rail: #2A2D2B; --m-cap: #4A4F4C; --m-fabric: #EEE9DF; --m-weave: #E0D9CC; --m-ink: #1E2420; --m-arm: #2A2D2B; --m-accent: #4471B8; --m-good: #2F6B55;
  --m-warn: #D9A23A; --m-chain: #8C918E; --m-slat-lo: #CFC5B1; --m-edge: rgba(60, 46, 20, 0.32); --m-shadow: rgba(30, 36, 32, 0.14); --m-halo: 0.55;
  color-scheme: light;
  min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #F5F7F5; color: var(--ink);
}
/* Top-aligned at an optical centre, so a message appearing in the card never moves what is above it */
.simain { display: flex; align-items: flex-start; justify-content: center; padding: clamp(32px, calc(50vh - 330px), 180px) 32px 24px; }
.siwrap { width: 100%; max-width: 980px; display: flex; align-items: flex-start; justify-content: center; gap: 64px; }
.siside { flex: 0 1 400px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 96px; }
.simas { width: 210px; height: 230px; }
.simas .mas { display: block; width: 100%; height: 100%; }
.siintro { margin: 0; max-width: 46ch; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.sicard { flex: 0 0 420px; width: 420px; max-width: 100%; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 6px 16px rgba(22, 35, 29, 0.06), 0 1px 3px rgba(22, 35, 29, 0.05); padding: 40px 40px 32px; }
.signin.siwide .sicard { flex-basis: 560px; width: 560px; }
.signin.siwide .siwrap { gap: 48px; }
.silogo { display: block; width: 140px; height: auto; margin: 0 0 32px; }
.sihead { font-size: 1.5rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.sihead:focus { outline: none; }
.sihead:focus-visible { outline: 2px solid #4471B8; outline-offset: 4px; border-radius: 4px; }
.signin #signin-body { display: block; margin: 0; text-align: left; }
.sihelp { margin: 8px 0 0; font-size: var(--fs-14); line-height: 1.45; color: var(--muted); }
.sihelp b { color: var(--ink); overflow-wrap: anywhere; }
.signin .signmsg { margin: 16px 0 0; font-size: var(--fs-14); color: var(--ink); background: var(--blue-bg); }
.signin .signmsg.bad { color: var(--red); background: var(--red-bg); }
.signin .siform { gap: 0; margin-top: 24px; }
.sifld { display: flex; flex-direction: column; gap: 6px; }
.sifld + .sifld { margin-top: 0; }
.signin .siform label { font-size: var(--fs-14); font-weight: 600; color: var(--ink); margin: 0; }
.signin .siform input[type="email"], .signin .siform input[type="password"], .signin .siform input[type="text"] {
  min-height: 48px; border-radius: 10px; padding: 0 14px; font-size: 1rem; background: #FFFFFF; color: var(--ink); border: 1px solid var(--input-strong);
}
.signin .siform input:focus { outline: 2px solid #4471B8; outline-offset: 2px; border-color: #4471B8; }
.signin .siform input[aria-invalid="true"] { border-color: var(--red); }
.signin .siform input[readonly] { background: #F7F8F7; }
.signin .siform input.sr { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.signin .siform input.codein { font: 600 1.5rem var(--font); letter-spacing: 0.3em; font-variant-numeric: tabular-nums; text-align: center; }
.signin .sierr { margin-top: 2px; }
.signin .siform .btn.wide { margin-top: 12px; min-height: 48px; width: 100%; justify-content: center; font-size: 1rem; font-weight: 600; border-radius: 10px; }
.signin .btn.wide[aria-disabled="true"], .signin .btn.wide:disabled { opacity: 1; background: #6F8FC6; border-color: #6F8FC6; color: #FFFFFF; cursor: progress; }
.signin #signin-body > .btn.wide { margin-top: 24px; min-height: 48px; width: 100%; justify-content: center; }
.siformmsg { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #EEF2EF; color: var(--ink); font-size: var(--fs-14); display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.siformmsg p { margin: 0; flex: 1 1 200px; }
.siformmsg.bad { background: var(--red-bg); color: var(--red); }
.siformmsg .btn.small { min-height: 36px; background: #FFFFFF; }
.pwwrap { position: relative; width: 100%; }
.pwwrap input { padding-right: 72px !important; }
.pwshow { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 44px; min-width: 56px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--grey-ink); font: 600 var(--fs-14) var(--font); cursor: pointer; }
.pwshow:hover { background: #ECEFED; }
.pwshow:focus-visible { outline: 2px solid #4471B8; outline-offset: 1px; }
.siforgot { margin-top: 16px; text-align: center; font-size: var(--fs-14); }
.siforgot summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--link); font-weight: 600; cursor: pointer; list-style: none; }
.siforgot summary::-webkit-details-marker { display: none; }
.siforgot summary:hover { text-decoration: underline; }
.siforgot p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; }
.sialt { margin: 8px 0 0; text-align: center; }
.sialt .link.quiet { min-height: 44px; font-size: var(--fs-14); }
.siwait { margin-top: 16px; }
.signin .rules { margin: 4px 0 2px; }
.signin .tsgrid { margin-top: 16px; gap: 0 24px; }
.signin.siwide .tsgrid { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "steps qr" "key qr"; }
.signin .tsteps { margin: 0; color: var(--ink); line-height: 1.45; }
.signin .qrbox { margin: 12px 0 4px; }
.signin.siwide .qrbox { margin: 0; }
.signin .tkey { margin-top: 8px; }
.signin .tkey summary { color: var(--link); }
.sifoot { display: flex; align-items: center; justify-content: center; gap: 8px 32px; flex-wrap: wrap; padding: 8px 16px max(16px, env(safe-area-inset-bottom)); }
.sibrands { display: flex; align-items: center; gap: 24px; opacity: 0.8; }
.sibrands img { height: 18px; width: auto; display: block; }
.sibrands img + img { height: 26px; }
.sifoot .link.quiet { min-height: 44px; padding: 0 4px; color: var(--grey-ink); font-size: var(--fs-14); }
.signin .link:focus-visible, .signin .btn:focus-visible, .signin summary:focus-visible { outline: 2px solid #4471B8; outline-offset: 2px; }

/* Privacy policy, shown in the card in place of the form */
.sipriv { text-align: left; font-size: var(--fs-15); line-height: 1.55; }
.sipriv .sihead { margin: 0 0 4px; }
.sipback { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px 0 8px; }
.sipback .ic { width: 18px; height: 18px; }
.siprivtxt h1, .siprivtxt h2 { font-size: 1.125rem; margin: 16px 0 6px; }
.siprivtxt h3 { font-size: 1rem; margin: 14px 0 4px; }
.siprivtxt p, .siprivtxt ul { margin: 0 0 10px; }

/* Tablets: the Assistant and the line above the card */
@media (max-width: 899px) {
  .simain { padding: 24px 16px 16px; }
  .siwrap { flex-direction: column; align-items: center; gap: 20px; }
  .siside { flex: none; width: 100%; max-width: 560px; flex-direction: row; align-items: center; gap: 16px; padding-top: 0; }
  .simas { width: 96px; height: 106px; flex: none; }
  .siintro { font-size: var(--fs-14); line-height: 1.5; }
  .sicard, .signin.siwide .sicard { flex: none; width: 100%; max-width: 560px; }
}
/* Phones: the card is the page */
@media (max-width: 599px) {
  .simain { padding: 16px 16px 8px; }
  .sicard, .signin.siwide .sicard { border: 0; box-shadow: none; border-radius: 12px; padding: 24px 16px; }
  .silogo { width: 120px; margin-bottom: 24px; }
  .signin.siwide .tsgrid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "steps" "qr" "key"; }
  .signin.siwide .qrbox { margin: 12px 0 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  #signin-body { animation: si-in 0.15s ease-out both; }
  @keyframes si-in { from { opacity: 0; } to { opacity: 1; } }
}

/* Settings > Sign-in wording */
.llcard { padding: 20px; max-width: 720px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
.llcard .simas { width: 96px; height: 106px; }
.llprevtxt { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.llform { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; }
.llform textarea { width: 100%; min-height: 120px; }
.llacts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.llacts .link { min-height: 40px; }
.llcard > p.small { margin: 0; grid-column: 1 / -1; }
.llcard .llprevtxt { align-self: center; }
@media (max-width: 599px) { .llcard { grid-template-columns: 64px minmax(0, 1fr); padding: 16px; } .llcard .simas { width: 64px; height: 72px; } }

/* Log-in screen, centred: the mascot sits above the card, no wording (Oct 2026) */
.siwrap, .signin.siwide .siwrap { flex-direction: column; align-items: center; gap: 0; }
.siside { flex: none; padding: 0; align-items: center; width: auto; max-width: none; flex-direction: column; margin-bottom: -6px; position: relative; z-index: 1; }
.simas { width: 132px; height: 145px; }
.siintro { display: none; }
.sicard { flex: none; }
.signin.siwide .sicard { flex: none; }
.simain { padding-top: clamp(24px, calc(50vh - 380px), 140px); }
@media (max-width: 899px) { .siside { flex-direction: column; } .simas { width: 104px; height: 114px; } }
@media (max-width: 599px) { .simas { width: 88px; height: 97px; } }

/* No mascot on the log-in screen; the MCP logo sits centred at the top of the card */
.siside { display: none; }
.silogo { margin-left: auto; margin-right: auto; }
.simain { padding-top: clamp(24px, calc(50vh - 300px), 160px); }
.signin .sihead, .signin #signin-body > .sihelp { text-align: center; }

/* Remember this computer (code step) and the Remembered computers list (Two-step sign-in page) */
.sitrust { display: flex; flex-direction: column; gap: 4px; margin: 2px 0 6px; }
.sitrust .chkl { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.sitrust .chkl input { width: 18px; height: 18px; margin: 0; }
.sitrust .hint { margin: 0 0 0 26px; font-size: 13px; color: var(--muted); }
.tscard + .tscard { margin-top: 14px; }
.trlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.trlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--divider); }
.trlist li:first-child { border-top: 0; }
.trlist li > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
