/* ---------------------------------------------------------------------------
 * Wyzen-branded portal pages for the Wyzen caddy-security portals (the
 * flux-wyzen, schematic-wyzen, fuse-wyzen, live-wyzen, and energy-wyzen
 * portals and the local-validation portal in
 * `services/proxy/config/dev/Caddyfile`; issue #855).
 *
 * Served by the plugin's custom-CSS lane (ui { custom css path ... }), which
 * links this stylesheet from every portal page that emits the plugin's
 * custom_css_required branch (each page template emits its own <link>; the
 * plugin does not inject the tag itself). Three pages are overridden, and
 * every rule here is scoped under the body class its override template sets
 * (services/proxy/ui/login.template, generic.template, sandbox.template):
 *
 *   .wyzen-login    — the login page (template login);
 *   .wyzen-generic  — the unauthorized/error page (template generic — the
 *                     page the portal renders for 401/403/404/500);
 *   .wyzen-sandbox  — the password prompt page (template sandbox, the
 *                     password_auth view; the page also serves the MFA and
 *                     sandbox error views).
 *
 * Register/profile/whoami/portal stay plugin-default: they carry no wyzen-*
 * body class, so every rule in this file is inert on them. There must be no
 * unscoped style rule in this file, ever. (The @font-face below is a font
 * declaration, not a style rule: it registers a family and styles nothing
 * by itself.)
 *
 * Whenever this file's content changes, bump the ?v= cache-buster on the
 * custom.css link in ALL THREE branded templates (the plugin serves the
 * stylesheet at a stable URL with a 2-hour cache lifetime).
 *
 * The design mirrors the product's own auth card (packages/ui/components/
 * _login_form.html + _input.html + _button.html + _social_button.html, laid
 * out by _auth_layout.html) so the portal reads as the same design family as
 * the product's forms:
 *
 *   - card      = the product form card: white surface, border token,
 *                 radius 1rem (rounded-2xl), soft shadow, p-6 / sm:p-8;
 *   - watermark = the _auth_layout.html background pattern: a full-height
 *                 partially transparent Wyzen logo behind the card, done as
 *                 body::before so the template DOM stays untouched;
 *   - inputs    = the product input: no icon, 0.5rem radius, border token,
 *                 px-4 py-2.5 text-base, muted placeholder, teal focus ring;
 *   - buttons   = the product buttons: primary bg-accent shadow-soft with
 *                 the -translate-y-1 hover, secondary bordered surface;
 *   - links     = the product auth links: muted ink, content + underline on
 *                 hover;
 *   - focus     = the product focus states: inputs use border-accent +
 *                 ring-accent/20, everything else the global 3px focus-token
 *                 outline (packages/ui/src/input.css :focus-visible).
 *
 * Values are the light-theme tokens from packages/ui/tokens/tokens.css (:root —
 * this page has no theme switcher), hand-written per the platform convention:
 * no packages/ui import. The main face (Inter — the face the repo's regular
 * components use, see services/api/src/static/src/input.css and
 * packages/ui/tailwind.config.js's body family) is self-hosted the site way —
 * a byte-identical copy of packages/fonts/Inter/Inter-VariableFont_opsz_wght.ttf
 * under ui/fonts/, served by the plugin's static_asset lane and declared here
 * with a stylesheet-relative URL; the principal text (title, labels, buttons)
 * carries it over a system-ui fallback so the page stays readable before the
 * font loads. Non-principal text (inputs, links) keeps the same Inter-first
 * body stack.
 *
 * The watermark and font URLs are stylesheet-relative on purpose: custom.css
 * is served at <ActionEndpoint>/assets/css/custom.css, so ../img/wyzen-logo.svg
 * and ../fonts/Inter-VariableFont_opsz_wght.ttf resolve to the portal's own
 * static assets (static_asset "assets/img/wyzen-logo.svg" /
 * "assets/fonts/Inter-VariableFont_opsz_wght.ttf") on every host and path
 * prefix — /auth/assets/... on the live portal, /assets/... on a bare-portal
 * render — without hardcoding either.
 *
 * Delivery: baked into the caddy image at /etc/caddy/ui/ (services/proxy/
 * Dockerfile and flux.Dockerfile COPY ui/) — the plugin's static-content
 * staging (services/proxy/static/) does not cover portal-internal assets.
 *
 * Override survival: when `caddy build-info` reports the resolved
 * CADDY_SECURITY_VERSION moved, re-diff services/proxy/ui/login.template,
 * generic.template, and sandbox.template against that version's upstream
 * pkg/authn/ui/page_templates/basic/ templates before redeploying — the
 * selectors below target those templates' DOM.
 * --------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
 * Main face — Inter (issue #855, round 4).
 *
 * @font-face is a font DECLARATION, not a style rule: it registers the
 * family for lookup and styles nothing by itself, so the no-unscoped-rule
 * invariant above (every style rule scoped under .wyzen-login) is intact —
 * no page but the login page references the family. The URL is
 * stylesheet-relative (same pattern as the watermark URL above): custom.css
 * is served at <ActionEndpoint>/assets/css/custom.css, so ../fonts/ resolves
 * to the portal's static_asset-served font on every host and path prefix.
 * The file is the Inter variable font (weights 400-700), so the declared
 * weight range covers every weight the page uses (500 labels, 600 buttons,
 * 700 title) from the single file. font-display: swap keeps the page
 * readable on the system fallback while the ~854KB face loads.
 * ------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-VariableFont_opsz_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

/* --- Page canvas ---------------------------------------------------------- */

/* bg token; content ink; the Inter main face over system fallbacks. Shared
   by all three branded pages (issue #855 operator-directed scope extension:
   unauthorized + password prompt pages join the login page). */
body.wyzen-login,
body.wyzen-generic,
body.wyzen-sandbox {
  background-color: rgb(250 251 252);
  color: rgb(18 18 18);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* Full-height Wyzen MARK behind the card — the _auth_layout.html pattern
   (fixed, pointer-events-none, behind all content). Shared by all three
   branded pages (login, unauthorized, password prompt). Round 4: the background
   shows ONLY the logo's illustrative mark, cropped CSS-only out of the
   already-served full-logo SVG (no cropped asset; ui/wyzen-logo.svg stays
   byte-identical to packages/logo/Colour_Logo.svg for the in-card use).

   The SVG (viewBox 0 0 449 488) stacks the colourful mark (y 0-367.54,
   measured off the path/transform arithmetic in the file) above the "Wyzen"
   wordmark (y 402.5-487.6). Scaling the image to 133vh maps the mark to
   133 * 367.54/488 = 100.2vh — it fills the page top-to-bottom — and puts
   the wordmark's top edge at 133 * 402.5/488 = 109.7vh, below the viewport
   bottom, so the text is never visible. background-position center top pins
   the image's top edge (the mark's top) to the viewport top; the wordmark
   overflows the fixed ::before window at the bottom and is clipped there.
   On narrow (portrait) viewports the same scaling makes the image wider
   than the window, so the crop is horizontal too, centred on the mark's
   centre — the crop edges sit outside the viewport, so no seam is visible.

   The card is an opaque white surface, so form legibility is unaffected;
   the watermark shows only on the page background around it. z-index -1
   keeps it under every in-flow element; opacity 0.06 keeps it present but
   quiet. */
body.wyzen-login::before,
body.wyzen-generic::before,
body.wyzen-sandbox::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("../img/wyzen-logo.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto 133vh;
  opacity: 0.06;
  pointer-events: none;
}

/* --- The card -------------------------------------------------------------- */

/* Round 4: the card drop is gone — a plain 3rem offset from the stack's
   top edge (the operator-tested value) replaces the round-3 30vh drop and
   its >=sm QR-chip compensation. The plugin's .app-page is a flex column
   whose min-height: 100% resolves against body's definite height (body
   carries the plugin's h-full class, resolved against the viewport), so
   the round-3 auto block margins still centre the stack the safe flexbox
   way: with the 3rem offset the card sits in the upper part of the page
   (top ~22%vh at 900px), and auto margins collapse to 0 when the stack is
   taller than the viewport, so the card's top never becomes unreachable by
   scrolling (justify-content: center would clip it). The >=sm QR-chip
   compensation is gone with the tuned 65vh target it served: the chip
   (#bookmarks, 48px, >=sm only) follows the card inside the same stack and
   only shifts the centred stack by half its height — immaterial at the
   simple offset. */
body.wyzen-login .app-content {
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* The product form card (_login_form.html: rounded-2xl border border-border
   bg-surface p-6 shadow-soft sm:p-8). Opaque white — this is what keeps the
   watermark off the form. */
body.wyzen-login .app-container {
  background-color: rgb(255 255 255);
  border: 1px solid rgb(225 232 239);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgb(15 23 42 / 0.08);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  body.wyzen-login .app-container {
    padding: 2rem;
  }
}

/* Logo + title: centered above the form, display stack on the content ink.
   Round 3: the in-card logo is 2x the round-1 size (9rem vs 4.5rem height,
   ~132px rendered width vs ~66px) — it still clears the card's content box
   at 390px mobile (~324px wide). */
body.wyzen-login .logo-box {
  margin-bottom: 2rem;
  text-align: center;
}

body.wyzen-login .logo-img {
  height: 9rem;
  width: auto;
}

/* Title — the Inter main face over a system fallback (readable pre-load
   via font-display: swap). */
body.wyzen-login .logo-txt {
  font-family: "Inter", system-ui, sans-serif;
  color: rgb(18 18 18);
  font-weight: 700;
}

/* --- Form fields ----------------------------------------------------------- */

/* Username label (_input.html: text-sm font-medium text-content, left).
   Principal text — the Inter main face (round 4). */
body.wyzen-login .app-inp-lbl {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgb(18 18 18);
}

/* Input wrapper: the product input carries no wrapper shadow; the wrapper
   takes the mt-2 gap the product puts between label and field. */
body.wyzen-login .app-inp-box {
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: none;
}

/* Product inputs have no leading icon — drop the plugin's user-icon chip
   and its 3rem left padding with it. */
body.wyzen-login .app-inp-prf-img {
  display: none;
}

/* Text input (_input.html: rounded-lg border border-border bg-surface
   px-4 py-2.5 text-content placeholder:text-muted). */
body.wyzen-login .app-inp-txt {
  background-color: rgb(255 255 255);
  border: 1px solid rgb(225 232 239);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: rgb(18 18 18);
}

body.wyzen-login .app-inp-txt::placeholder {
  color: rgb(75 85 99);
}

/* Input focus (_input.html: focus:border-accent focus:ring-2 ring-accent/20
   focus:outline-none). */
body.wyzen-login .app-inp-txt:focus {
  border-color: rgb(61 168 190);
  outline: none;
  box-shadow: 0 0 0 2px rgb(61 168 190 / 0.2);
}

/* --- Buttons ---------------------------------------------------------------- */

/* Primary (Proceed) button — the product submit (_login_form.html): bg-accent
   rounded-lg px-6 py-3 text-base font-semibold shadow-soft, hover lift +
   accent-hover. Round 3: the plugin's 1.75rem line-height is inconsistent
   with the 1rem face and sits the label a hair high inside the flex-centred
   children — pin line-height to the font size (1.5rem) so the label's glyph
   box centres exactly between the paddings; the plugin's own
   display:flex + align-items:center does the centring. Principal text —
   the Inter main face (round 4). */
body.wyzen-login .app-btn-pri {
  background-color: rgb(61 168 190);
  border-radius: 0.5rem;
  color: rgb(255 255 255);
  padding: 0.75rem 1.5rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 24px rgb(15 23 42 / 0.08);
  transition: all 300ms;
}

body.wyzen-login .app-btn-pri:hover {
  background-color: rgb(50 146 164);
  transform: translateY(-4px);
}

/* Secondary (Back) button — the product secondary variant (_button.html):
   bordered white surface, content ink, hover surface-elevated + lift.
   Same round-3 treatment as the primary: consistent line-height + the
   Inter main face. */
body.wyzen-login .app-btn-sec {
  background-color: rgb(255 255 255);
  border: 1px solid rgb(225 232 239);
  border-radius: 0.5rem;
  color: rgb(18 18 18);
  padding: 0.75rem 1.5rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  transition: all 300ms;
}

body.wyzen-login .app-btn-sec:hover {
  background-color: rgb(245 247 249);
  transform: translateY(-4px);
}

/* Button focus — the product's global :focus-visible (3px focus-token
   outline, packages/ui/src/input.css). */
body.wyzen-login .app-btn-pri:focus,
body.wyzen-login .app-btn-sec:focus {
  outline: 3px solid rgb(39 159 229);
  outline-offset: 2px;
}

/* Authenticator buttons (the Google button) — the product social button
   (_social_button.html): bordered white surface card, content ink, semibold,
   hover lift + surface-elevated. The icon chip keeps its data-driven brand
   colour from the template's inline classes. */
body.wyzen-login .app-login-btn-box {
  border: 1px solid rgb(225 232 239);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 300ms;
}

body.wyzen-login .app-login-btn-box:hover {
  transform: translateY(-4px);
}

/* Round 3: the plugin stretches this text cell to the icon chip's height
   (the box is a flex row with align-items normal) while its own line box
   hugs the top — the label renders ~13px above the chip's centre. Centre
   the label in the stretched cell (flex + align-items center; the span is
   the single flex item) and pin the line box to the font size: the
   template's leading-loose class (line-height: 2) must not win over the
   cell's line-height. Principal text — the Inter main face (round 4). */
body.wyzen-login .app-login-btn-txt {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255 255 255);
  padding: 0.75rem 1.5rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-transform: none;
  color: rgb(18 18 18);
}

body.wyzen-login .app-login-btn-txt span {
  line-height: inherit;
}

body.wyzen-login .app-login-btn-txt:hover {
  background-color: rgb(245 247 249);
}

/* --- Links ------------------------------------------------------------------ */

/* Register / forgot-username / contact-support links — the product auth
   links (_login_form.html): muted ink, content + underline on hover. */
body.wyzen-login #user_actions a {
  color: rgb(75 85 99);
}

body.wyzen-login #user_actions a:hover {
  color: rgb(18 18 18);
  text-decoration: underline;
}

body.wyzen-login #user_actions a:focus {
  outline: 3px solid rgb(39 159 229);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* --- Reduced motion ----------------------------------------------------------
   The product disables transitions and hover lifts under
   prefers-reduced-motion (packages/ui/src/input.css); mirror it. */
@media (prefers-reduced-motion: reduce) {
  body.wyzen-login .app-btn-pri,
  body.wyzen-login .app-btn-sec,
  body.wyzen-login .app-login-btn-box,
  body.wyzen-sandbox .app-btn-pri,
  body.wyzen-sandbox .app-btn-sec,
  body.wyzen-generic .app-gen-btn-txt {
    transition: none;
  }

  body.wyzen-login .app-btn-pri:hover,
  body.wyzen-login .app-btn-sec:hover,
  body.wyzen-login .app-login-btn-box:hover,
  body.wyzen-sandbox .app-btn-pri:hover,
  body.wyzen-sandbox .app-btn-sec:hover,
  body.wyzen-generic .app-gen-btn-txt:hover {
    transform: none;
  }
}

/* ===========================================================================
 * Branded page: UNAUTHORIZED (template generic) — issue #855 scope extension.
 *
 * The portal renders this page (page name "generic") for every error code —
 * 401 Unauthorized (anonymous hits on protected portal routes such as
 * /profile/, malformed login POSTs), 403 Forbidden, 404, 500. The upstream
 * template's DOM is: .app-page > .app-content (md:max-w-2xl) > a white
 * utility-classed box > an inner box > main.sm:flex (logo + banner text +
 * go-back button). The card is the white outer box; its inner utility box
 * is neutralized so the card padding matches the login card.
 * =========================================================================== */

/* Center the error card in the page the same way the login card sits
   (safe flexbox: auto margins collapse to 0 when the stack is taller than
   the viewport, so nothing is clipped). */
body.wyzen-generic .app-content {
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* The card: the product form card treatment (white surface, border token,
   radius 1rem, soft shadow, p-6 / sm:p-8). Opaque white — this is what
   keeps the watermark off the message. */
body.wyzen-generic .app-content > div {
  background-color: rgb(255 255 255);
  border: 1px solid rgb(225 232 239);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgb(15 23 42 / 0.08);
  padding: 1.5rem;
}

/* Neutralize the upstream inner utility box's large py-16/px-4 padding so
   the card's padding is the card rule above (the inner box is otherwise
   white-on-white). */
body.wyzen-generic .app-content > div > div {
  padding: 0;
}

@media (min-width: 640px) {
  body.wyzen-generic .app-content > div {
    padding: 2rem;
  }
}

/* The upstream layout places the logo left of the banner text (main is a
   block that becomes a flex row at >=sm) — a smaller mark than the login
   card's 9rem keeps the row balanced while staying the same family. */
body.wyzen-generic .logo-img {
  height: 4.5rem;
  width: auto;
}

/* Status headline (the plugin sets .PageTitle, e.g. "Unauthorized") —
   the Inter main face, content ink, bold. */
body.wyzen-generic .app-gen-banner-header {
  font-family: "Inter", system-ui, sans-serif;
  color: rgb(18 18 18);
  font-weight: 700;
}

/* Message line (set for 403/404; unset on 401, where the override's
   {{ if .Data.message }} guard keeps the upstream nil value off the page) —
   muted ink. */
body.wyzen-generic .app-gen-banner-message {
  font-family: "Inter", system-ui, sans-serif;
  color: rgb(75 85 99);
}

/* Go back / retry link — the teal primary button treatment (the product
   submit button). The upstream element is an <a class="app-gen-btn-txt">. */
body.wyzen-generic .app-gen-btn-box {
  margin-top: 1.5rem;
}

body.wyzen-generic .app-gen-btn-txt {
  display: inline-block;
  background-color: rgb(61 168 190);
  border-radius: 0.5rem;
  color: rgb(255 255 255);
  padding: 0.75rem 1.5rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 24px rgb(15 23 42 / 0.08);
  transition: all 300ms;
}

body.wyzen-generic .app-gen-btn-txt:hover {
  background-color: rgb(50 146 164);
  transform: translateY(-4px);
}

body.wyzen-generic .app-gen-btn-txt:focus {
  outline: 3px solid rgb(39 159 229);
  outline-offset: 2px;
}

/* ===========================================================================
 * Branded page: PASSWORD PROMPT (template sandbox, password_auth view) —
 * issue #855 scope extension.
 *
 * After the login POST the portal redirects to /sandbox/<id>; this page
 * prompts for the user-pass password (the password_auth view) and also
 * serves the MFA and sandbox error views. The DOM matches the login page's
 * vocabulary (.app-content > .app-container card, .logo-box, .app-inp-*,
 * .app-btn-*), so the rules mirror the login card treatment above.
 * =========================================================================== */

/* Same safe-flexbox centring as the login card stack. */
body.wyzen-sandbox .app-content {
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* The card: identical treatment to the login card (white surface, border
   token, radius 1rem, soft shadow, p-6 / sm:p-8). */
body.wyzen-sandbox .app-container {
  background-color: rgb(255 255 255);
  border: 1px solid rgb(225 232 239);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgb(15 23 42 / 0.08);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  body.wyzen-sandbox .app-container {
    padding: 2rem;
  }
}

/* Logo + title: centered above the form, the same family as the login
   card but at 6rem — a step-in-the-flow page stays subordinate to the
   login page's 9rem hero logo. */
body.wyzen-sandbox .logo-box {
  margin-bottom: 2rem;
  text-align: center;
}

body.wyzen-sandbox .logo-img {
  height: 6rem;
  width: auto;
}

body.wyzen-sandbox .logo-txt {
  font-family: "Inter", system-ui, sans-serif;
  color: rgb(18 18 18);
  font-weight: 700;
}

/* Instructional text (MFA views, error/terminate views) — muted ink,
   the Inter main face. */
body.wyzen-sandbox .app-txt-section p {
  font-family: "Inter", system-ui, sans-serif;
  color: rgb(75 85 99);
}

/* Label (the password prompt's "Please provide your password" — the
   plugin centers it) — same treatment as the login label. */
body.wyzen-sandbox .app-inp-lbl {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgb(18 18 18);
}

/* Input wrapper: no wrapper shadow, mt-2 gap. */
body.wyzen-sandbox .app-inp-box {
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: none;
}

/* Product inputs have no leading icon — drop the plugin's icon chip
   (the password view's key icon) and its 3rem left padding with it. */
body.wyzen-sandbox .app-inp-prf-img {
  display: none;
}

/* Text/password input — same treatment as the login input. */
body.wyzen-sandbox .app-inp-txt {
  background-color: rgb(255 255 255);
  border: 1px solid rgb(225 232 239);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-family: "Inter", system-ui, sans-serif;
  color: rgb(18 18 18);
}

body.wyzen-sandbox .app-inp-txt:focus {
  border-color: rgb(61 168 190);
  outline: none;
  box-shadow: 0 0 0 2px rgb(61 168 190 / 0.2);
}

/* MFA passcode input (the .app-inp-code-txt the code views use) — the
   same input treatment, Inter over the plugin's Montserrat arbitrary-value
   class (the higher-specificity scoped rule wins). */
body.wyzen-sandbox .app-inp-code-txt {
  background-color: rgb(255 255 255);
  border: 1px solid rgb(225 232 239);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  color: rgb(18 18 18);
}

body.wyzen-sandbox .app-inp-code-txt:focus {
  border-color: rgb(61 168 190);
  outline: none;
  box-shadow: 0 0 0 2px rgb(61 168 190 / 0.2);
}

/* Realm/token selects (MFA registration views) — the same bordered white
   surface as the inputs. */
body.wyzen-sandbox .app-inp-sel {
  background-color: rgb(255 255 255);
  border: 1px solid rgb(225 232 239);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  color: rgb(18 18 18);
}

/* Primary (Authenticate/Verify/Add/Try Again) button — the same teal
   submit treatment as the login page. */
body.wyzen-sandbox .app-btn-pri {
  background-color: rgb(61 168 190);
  border-radius: 0.5rem;
  color: rgb(255 255 255);
  padding: 0.75rem 1.5rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 24px rgb(15 23 42 / 0.08);
  transition: all 300ms;
}

body.wyzen-sandbox .app-btn-pri:hover {
  background-color: rgb(50 146 164);
  transform: translateY(-4px);
}

/* Secondary (terminate/back, reset) buttons — the same bordered white
   surface treatment as the login page. */
body.wyzen-sandbox .app-btn-sec {
  background-color: rgb(255 255 255);
  border: 1px solid rgb(225 232 239);
  border-radius: 0.5rem;
  color: rgb(18 18 18);
  padding: 0.75rem 1.5rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  transition: all 300ms;
}

body.wyzen-sandbox .app-btn-sec:hover {
  background-color: rgb(245 247 249);
  transform: translateY(-4px);
}

body.wyzen-sandbox .app-btn-pri:focus,
body.wyzen-sandbox .app-btn-sec:focus {
  outline: 3px solid rgb(39 159 229);
  outline-offset: 2px;
}

/* MFA token list links (the Authenticator App / Hardware Token rows) —
   the teal link treatment with the product focus state. */
body.wyzen-sandbox .app-lst-lnk {
  color: rgb(61 168 190);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  text-decoration: none;
}

body.wyzen-sandbox .app-lst-lnk:hover {
  color: rgb(50 146 164);
  text-decoration: underline;
}

body.wyzen-sandbox .app-lst-lnk:focus {
  outline: 3px solid rgb(39 159 229);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* The password view's button row carries THREE buttons (terminate, reset,
   submit), which exceeds a narrow viewport at the product button padding —
   let the row wrap instead of shrinking touch targets. */
body.wyzen-sandbox form .flex.gap-4 {
  flex-wrap: wrap;
}
