/* MMG OS 0.91 (lane k91): the Sales Hub look: the glass-black band on a fine hairline, the form as the lead card (the gold
   edge and a faint glow, 14 px corners), the gold primary button, light or dark by the device (dark on the marble).
   MMG OS 0.53.1: the sign-in, forgot-password and choose-password pages (wp-login.php) in the brand (docs/wave531-email.md).
   0.55.0 (the AM Hub look, docs/wave55-design.md): the paper page under the black header band with the gold MMG mark and
   the 2 px gold rule, a white card with a 4 px gold top edge, the page's name in Futura Extra Bold Condensed (the page
   titles login_title already gives: Sign in, Forgot password, Choose a new password), labels in the label type, the black
   primary button with white text, and a gold focus ring. app.css is not loaded on these pages, so the tokens it uses are
   set here with the same values (frontend/src/ui/ui.css), and the brand fonts are declared here too. Only looks change: no
   markup, no redirect, nothing SiteGround Security adds is hidden. */
@font-face { font-family: "Futura XBold Cond"; src: url(fonts/futura-xbold-cond.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Helvetica LT"; src: url(fonts/helvetica-lt-roman.otf) format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Helvetica LT"; src: url(fonts/helvetica-lt-bold.otf) format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Oswald; src: url(oswald-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --page: #f4f2ee;
  --page-ink: #100808;
  --page-muted: #5a5750;
  --black: #100808;
  --band: #100f0e;
  --hairline: #615f5a9e;
  --card: #ffffff;
  --ink: #100808;
  --muted: #5a5750;
  --line: #e4e0d6;
  --line-strong: #827f77;
  --accent: #daa620;
  --accent-hover: #e5b43a;
  --on-accent: #0a0908;
  --accent-mark: #a87400;
  --primary-hover: #e5b43a;
  --danger-fill: #b00020;
  --radius: 14px;
  --radius-control: 8px;
  --shadow-card: 0 1px 2px #1008080d, 0 10px 28px -12px #1008081f;
  --glow: 0 0 26px #daa62033;
  --page-bg: var(--page);
  --font: "Helvetica LT", Helvetica, "Helvetica Neue", Arial, sans-serif;
  --display: "Futura XBold Cond", Oswald, "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  color-scheme: light dark;
}
/* 0.91 (lane k91, the Sales Hub look; docs/wave91-look-design.md): the page follows the device, light unless it prefers
   dark; dark is the app's: the Brand Kit marble under a 58% veil of the near-black and the edge shading, a glass card. */
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0a09;
    --page-ink: #ffffff;
    --page-muted: #b3afa5;
    --card: #1a1917e6;
    --ink: #ffffff;
    --muted: #b3afa5;
    --line: #615f5a9e;
    --line-strong: #8f8b82;
    --accent-mark: #daa620;
    --shadow-card: 0 10px 30px #00000073;
    --page-bg: radial-gradient(at 50% 0%, #100f0e00 0%, #100f0e4d 70%, #100f0e8c 100%) fixed, linear-gradient(#100f0e94, #100f0e94) fixed, #100f0e url(brand/marble-bg.jpg) center / cover no-repeat fixed;
  }
}
html, body.login { background: var(--page-bg); }
body.login { color: var(--page-ink); font-family: var(--font); font-size: 15px; position: relative; }
/* The header band: the brand black, 72 px, the gold rule; the logo sits in it, top left. */
body.login::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 72px; background: var(--band); border-bottom: 1px solid var(--hairline); }
body.login div#login { width: 440px; max-width: 100%; box-sizing: border-box; padding: 128px 16px 24px; }
body.login div#login h1 a {
  position: absolute;
  top: 16px;
  left: 32px;
  background-image: url(mmg-logo-gold.png);
  background-size: 91px 40px;
  background-position: center;
  width: 91px;
  height: 40px;
  margin: 0;
}
body.login div#login h1 a:focus { outline: 2px solid var(--accent); outline-offset: 4px; box-shadow: none; }
body.login form {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card), var(--glow);
  padding: 38px 36px 34px;
  margin: 0 0 16px;
}
/* The page's name over its form, in the display face (the same words as the browser tab, login_title). */
body.login form::before { display: block; margin: 0 0 24px; color: var(--ink); font-family: var(--display); font-size: 50px; font-weight: 800; line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
body.login-action-login #loginform::before { content: "Sign in"; }
body.login-action-lostpassword #lostpasswordform::before, body.login-action-retrievepassword #lostpasswordform::before { content: "Forgot password"; }
body.login-action-rp #resetpassform::before, body.login-action-resetpass #resetpassform::before { content: "Choose a new password"; font-size: 40px; }
body.login label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
body.login form .forgetmenot label { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
body.login form .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  box-shadow: none;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  min-height: 44px;
  padding: 8px 12px;
}
body.login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus,
body.login input[type="checkbox"]:focus {
  border-color: var(--accent-mark);
  box-shadow: 0 0 0 2px var(--accent-mark);
  outline: 2px solid transparent;
}
body.login input.password-input { font-family: var(--font); }
body.login input[type="checkbox"] { border-color: var(--line-strong); border-radius: 4px; background: var(--card); } /* 0.92.1: the card tone, never a white square on the dark sign-in card */
body.login input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
body.login input[type="checkbox"]:checked::before { filter: brightness(0); }
/* Buttons: core sizes them with ".wp-core-ui .button.button-large" (and 40 px under 782 px), so these rules name the body's
   own classes to stay ahead; 44 px tall everywhere (the phone touch target). */
body.login.wp-core-ui .button,
body.login.wp-core-ui .button.button-large { border-radius: var(--radius-control); min-height: 44px; line-height: 42px; font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 0; }
/* The show-password eye sits inside the field: no fill or edge of its own (it also carries .button-secondary). */
body.login.wp-core-ui .button.wp-hide-pw,
body.login.wp-core-ui .button.wp-hide-pw:hover { background: transparent; border: 1px solid transparent; box-shadow: none; color: var(--ink); min-height: 44px; height: 44px; line-height: normal; padding: 0 10px; border-radius: var(--radius-control); }
body.login.wp-core-ui .button.wp-hide-pw:focus { background: transparent; border-color: var(--accent-mark); box-shadow: 0 0 0 2px var(--accent-mark); }
body.login.wp-core-ui .button-primary,
body.login.wp-core-ui .button-primary.button-large {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--on-accent);
  text-shadow: none;
  box-shadow: none;
  padding: 0 20px;
}
body.login.wp-core-ui .button-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-accent); }
body.login.wp-core-ui .button-primary:focus { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-accent); box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--accent-mark); outline: 2px solid transparent; }
body.login.wp-core-ui .button-secondary,
body.login.wp-core-ui .reset-pass-submit .wp-generate-pw { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); padding: 0 16px; }
body.login.wp-core-ui .button-secondary:hover,
body.login.wp-core-ui .reset-pass-submit .wp-generate-pw:hover { background: var(--card); border-color: var(--accent-mark); color: var(--ink); }
body.login.wp-core-ui .button-secondary:focus,
body.login.wp-core-ui .reset-pass-submit .wp-generate-pw:focus { border-color: var(--accent-mark); box-shadow: 0 0 0 2px var(--accent-mark); color: var(--ink); outline: 2px solid transparent; }
/* The new-password field and its strength meter: core colours them red, yellow, green and blue; here the field keeps the
   control line and the gold focus ring, and the meter is the neutral pill with a mark on its left: danger for too weak,
   gold for medium, the ink for strong (docs/visual-standard.md: no green or blue). */
body.login #pass1,
body.login #pass1-text,
body.login #pass1.short, body.login #pass1.bad, body.login #pass1.good, body.login #pass1.strong,
body.login #pass1-text.short, body.login #pass1-text.bad, body.login #pass1-text.good, body.login #pass1-text.strong { border-color: var(--line-strong); }
body.login #pass1:focus,
body.login #pass1-text:focus { border-color: var(--accent-mark); box-shadow: 0 0 0 2px var(--accent-mark); outline: 2px solid transparent; }
body.login #pass-strength-result { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-control); color: var(--ink); margin-top: 8px; padding: 8px 12px; }
body.login #pass-strength-result.short,
body.login #pass-strength-result.bad { background: var(--card); border-color: var(--line-strong); border-left: 4px solid var(--danger-fill); }
body.login #pass-strength-result.good { background: var(--card); border-color: var(--line-strong); border-left: 4px solid var(--accent-mark); }
body.login #pass-strength-result.strong { background: var(--card); border-color: var(--line-strong); border-left: 4px solid var(--ink); }
body.login .message,
body.login .notice,
body.login .success {
  background: var(--card);
  color: var(--ink);
  border-left: 4px solid var(--accent-mark);
  border-radius: var(--radius-control);
  box-shadow: none;
  padding: 8px 16px;
  margin-bottom: 16px;
}
body.login .message p,
body.login .notice p,
body.login .success p { font-size: 14px; line-height: 20px; }
body.login .notice-error,
body.login #login_error { border-left-color: var(--danger-fill); }
body.login .message a,
body.login .notice a,
body.login .success a,
body.login form a { color: var(--ink); text-decoration: underline; }
body.login #nav,
body.login #backtoblog { padding: 0 8px; font-size: 14px; }
body.login #nav { margin: 16px 0 0; text-align: center; }
body.login #nav a,
body.login .privacy-policy-page-link a { color: var(--page-ink); text-decoration: underline; }
body.login #nav a:hover,
body.login .privacy-policy-page-link a:hover { color: var(--accent-mark); }
body.login #nav a:focus,
body.login .privacy-policy-page-link a:focus,
body.login form a:focus { outline: 2px solid var(--accent-mark); outline-offset: 2px; box-shadow: none; color: var(--page-ink); }
body.login form a:focus { outline-color: var(--accent-mark); color: var(--ink); }
/* "Go to <site title>" leads to the WordPress front page, not the workspace; the logo above the form opens MMG OS. */
body.login #backtoblog { display: none; }
body.login .description,
body.login .indicator-hint { color: var(--muted); font-size: 13px; line-height: 20px; }
body.login .pw-weak label { font-weight: 400; }
/* Generate and Save on the choose-password page: one full-width button each, 8 px apart. */
body.login.wp-core-ui .reset-pass-submit { display: flex; flex-direction: column; gap: 8px; }
body.login.wp-core-ui .reset-pass-submit .button { width: 100%; margin: 0; }
@media screen and (max-width: 640px) {
  body.login::before { height: 56px; }
  body.login div#login { width: 100%; padding: 88px 14px 24px; }
  body.login div#login h1 a { top: 12px; left: 14px; width: 73px; height: 32px; background-size: 73px 32px; }
  body.login form { padding: 28px 22px; }
  body.login form::before { font-size: 40px; }
  body.login-action-rp #resetpassform::before, body.login-action-resetpass #resetpassform::before { font-size: 34px; }
}
/* 0.96.0 b (docs/wave96-client-invite.md; the client walkthrough W-07 to W-09): the client's "Choose your password" card and
   the new-link card on the sign-in page's own frame; the line that says who the sign-in is for. */
body.login-action-mmg_setpass #mmgsetpass::before { content: "Choose your password"; font-size: 40px; }
body.login-action-mmg_newlink #mmgnewlink::before { content: "Link expired"; font-size: 40px; }
body.login .mmg-i96-line { margin: 8px 0 16px; color: var(--muted); font-size: 14px; line-height: 20px; }
body.login .mmg-i96-pass { display: flex; gap: 8px; align-items: stretch; }
body.login .mmg-i96-pass input { flex: 1 1 auto; min-width: 0; margin: 0; }
body.login.wp-core-ui .mmg-i96-pass .mmg-i96-show { position: static; flex: 0 0 auto; width: auto; min-width: 72px; min-height: 44px; height: auto; padding: 0 14px; letter-spacing: 0; text-transform: none; font-weight: 700; line-height: 1; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: transparent; color: var(--ink); font-size: 14px; }
body.login #mmgsetpass .submit .button, body.login #mmgnewlink .submit .button { width: 100%; float: none; }
body.login .mmg-i96-for { margin: 0 0 16px; color: var(--page-ink); font-size: 15px; line-height: 22px; text-align: center; }
@media screen and (max-width: 640px) {
  body.login-action-mmg_setpass #mmgsetpass::before, body.login-action-mmg_newlink #mmgnewlink::before { font-size: 34px; }
}
