/* MitaBase Hub — a product of ETMITA · https://etmita.com
   Copyright © ETMITA. All rights reserved. */
/* public/css/register.css — the standalone registration page.

   Self-contained: loads ONLY /css/tokens.css and this file. No
   framework, no admin cascade, every class namespaced .rg-*.

   It is the LOGIN screen's twin on purpose. A person arriving here has
   usually just left the price page and will be looking at the login
   screen ten minutes from now; a checkout that looks like a different
   company between those two moments is a checkout people abandon. Same
   split, same dark panel, same lime, same card language.

   Micro-interactions only — 150–200 ms hovers, focus rings, a soft card
   parallax. Nothing loops decoratively except the provisioning dot,
   which means "still working" and stops under reduced motion. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Derived for this page only; everything roots in --mb-ink. */
  --rg-canvas: color-mix(in srgb, var(--mb-ink) 62%, black);
  --rg-visual: color-mix(in srgb, var(--mb-ink) 88%, black);
  --rg-panel: var(--mb-ink);
  --rg-input: color-mix(in srgb, var(--mb-ink) 78%, black);
  --rg-line: rgba(255, 255, 255, .09);
  --rg-line-2: rgba(255, 255, 255, .16);
  --rg-text: #f5f5f5;
  --rg-text-2: var(--mb-ondark);
  --rg-muted: var(--mb-faint);
  --rg-glass: rgba(23, 23, 23, .55);
  --rg-glass-line: rgba(255, 255, 255, .12);
  --rg-ease: cubic-bezier(.2, .7, .3, 1);
}

html, body { height: 100%; }

.rg-body {
  font-family: var(--mb-font-sans);
  background: var(--rg-canvas);
  color: var(--rg-text);
  -webkit-font-smoothing: antialiased;
}
html[lang="fa"] .rg-body { font-family: var(--mb-font-fa); }

svg.rg-ic {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.rg-ic-lime { color: var(--mb-lime); }

/* ═══ Shell ══════════════════════════════════════════════════════════ */
.rg-shell { display: flex; min-height: 100dvh; }

/* ═══ Left: the visual panel ═════════════════════════════════════════ */
.rg-visual {
  position: relative; flex: 1.25; min-width: 0; overflow: hidden;
  background: var(--rg-visual);
  display: none; /* shown from 1080px — see the media query at the end */
}
.rg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(1.05) brightness(.88);
}
.rg-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.36) 48%, rgba(0,0,0,.14) 100%),
    linear-gradient(to top, rgba(0,0,0,.58) 0%, transparent 36%),
    radial-gradient(60% 50% at 0% 100%, rgba(164,240,58,.16), transparent 70%);
}
.rg-grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to top, black 12%, transparent 45%);
  -webkit-mask-image: linear-gradient(to top, black 12%, transparent 45%);
}

.rg-brand-row {
  position: absolute; top: 34px; inset-inline-start: 40px;
  display: flex; align-items: center; gap: 12px;
}
.rg-mark-sm { height: 32px; width: auto; }
.rg-lockup { font-weight: 800; font-size: 17px; letter-spacing: .03em; color: #fff; }
.rg-lockup-dot { color: var(--mb-lime-mid); }
.rg-lockup-base { color: var(--mb-faint); font-weight: 600; letter-spacing: .22em; margin-inline-start: 2px; }

.rg-copy { position: absolute; top: 116px; inset-inline-start: 40px; max-width: 470px; }
.rg-headline {
  display: flex; flex-direction: column; gap: 2px;
  font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08;
  font-weight: 800; letter-spacing: -.03em; color: #fff;
}
.rg-headline-lime { color: var(--mb-lime); }
.rg-lead {
  margin-top: 18px; max-width: 40ch;
  font-size: 15px; line-height: 1.65; color: var(--rg-text-2);
}

/* ── the floating cards ──────────────────────────────────────────── */
.rg-card {
  position: absolute; z-index: 2;
  display: flex; flex-direction: column; gap: 6px;
  padding: 15px 17px; min-width: 216px;
  border: 1px solid var(--rg-glass-line); border-radius: 15px;
  background: var(--rg-glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .7);
  transition: transform .4s var(--rg-ease);
}
.rg-card-a { top: 21%; inset-inline-end: 7%; }
.rg-card-b { top: 49%; inset-inline-start: 6%; }
.rg-card-c { bottom: 9%; inset-inline-end: 11%; }

.rg-card-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; color: var(--rg-text-2);
}
.rg-dot-live {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--mb-lime); box-shadow: 0 0 0 3px rgba(164, 240, 58, .18);
}
/* A hostname is Latin and reads left to right, inside a Persian
   sentence as much as a German one. Without this it renders with the
   dots in the wrong places. */
.rg-card-host { font-family: var(--mb-font-mono); font-size: 14px; font-weight: 700; color: #fff; unicode-bidi: isolate; }
.rg-card-host-dim { color: var(--mb-faint); font-weight: 500; }
.rg-card-big { font-family: var(--mb-font-mono); font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.rg-card-cur { font-size: 17px; color: var(--mb-lime); }
.rg-card-row { font-size: 14px; font-weight: 700; color: #fff; }
.rg-card-sub { font-size: 11.5px; color: var(--mb-faint); }

/* ═══ Right: the form panel ══════════════════════════════════════════ */
.rg-panel {
  position: relative; flex: 1; min-width: 0;
  display: flex; align-items: flex-start; justify-content: center;
  background: var(--rg-panel);
  overflow-y: auto;
}
.rg-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 40% at 50% 0%, rgba(164, 240, 58, .07), transparent 70%);
}
.rg-panel-inner {
  position: relative; width: 100%; max-width: 460px;
  padding: 44px 32px 40px;
  display: flex; flex-direction: column; gap: 20px;
}

.rg-head { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.rg-mark { height: 52px; width: auto; filter: drop-shadow(0 0 18px rgba(164, 240, 58, .35)); }
.rg-brand { margin-top: 8px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.rg-tag { font-size: 13.5px; color: var(--rg-muted); }

/* ── the step rail ────────────────────────────────────────────────
   A hairline with a filled dot per step. It is the one piece of
   chrome that earns its place: five requests is long enough that a
   person needs to see the end from the beginning. */
.rg-steps {
  display: flex; align-items: flex-start; list-style: none;
  margin-top: 2px;
}
.rg-steps li {
  flex: 1; min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .01em;
  color: var(--mb-faint);
}
.rg-steps li i {
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--rg-line-2); position: relative; z-index: 1;
  transition: background-color .25s var(--rg-ease), box-shadow .25s var(--rg-ease);
}
/* The connector is drawn on the item, not between them, so it cannot
   drift out of alignment when a label wraps. */
.rg-steps li::before {
  content: ""; position: absolute; top: 4px; height: 1px;
  inset-inline-start: -50%; width: 100%;
  background: var(--rg-line-2);
}
.rg-steps li:first-child::before { display: none; }
.rg-steps li.is-done { color: var(--rg-text-2); }
.rg-steps li.is-done i { background: var(--mb-lime-deep); }
.rg-steps li.is-done::before { background: var(--mb-lime-deep); }
.rg-steps li.is-now { color: var(--mb-lime); }
.rg-steps li.is-now i { background: var(--mb-lime); box-shadow: 0 0 0 4px rgba(164, 240, 58, .16); }
.rg-steps li.is-now::before { background: var(--mb-lime-deep); }
@media (max-width: 420px) { .rg-steps li span { display: none; } }

/* ── the card the form lives in ───────────────────────────────────── */
.rg-card-form {
  display: flex; flex-direction: column; gap: 15px;
  padding: 26px 24px 28px;
  border: 1px solid var(--rg-line); border-radius: 18px;
  background: color-mix(in srgb, var(--mb-ink) 94%, black);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .9);
}
.rg-h1 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.rg-lede { font-size: 13.5px; line-height: 1.65; color: var(--rg-text-2); }
.rg-hint { font-size: 12px; line-height: 1.6; color: var(--rg-muted); }
.rg-loading { font-size: 13.5px; color: var(--rg-muted); }

/* ── fields ───────────────────────────────────────────────────────── */
.rg-field { display: flex; flex-direction: column; gap: 6px; }
.rg-field > span { font-size: 12px; font-weight: 700; color: var(--rg-text-2); }
.rg-field > span em { font-style: normal; font-weight: 500; color: var(--mb-faint); }
.rg-field input {
  width: 100%; min-width: 0; box-sizing: border-box;
  min-height: 46px; padding: 0 14px;
  border: 1px solid var(--rg-line-2); border-radius: 11px;
  background: var(--rg-input); color: var(--rg-text);
  font: inherit; font-size: 14.5px;
  transition: border-color .16s var(--rg-ease), box-shadow .16s var(--rg-ease);
}
.rg-field input::placeholder { color: var(--mb-faint); }
.rg-field input:hover { border-color: rgba(255, 255, 255, .26); }
.rg-field input:focus {
  outline: none; border-color: var(--mb-lime);
  box-shadow: 0 0 0 3px rgba(164, 240, 58, .14);
}
.rg-field.is-bad input { border-color: var(--mb-danger); }
.rg-fielderr { font-size: 11.5px; color: var(--mb-danger); }
.rg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rg-row > * { min-width: 0; }

.rg-slugrow { display: flex; align-items: stretch; }
.rg-slugrow input {
  flex: 1; min-width: 0; border-inline-end: 0;
  border-start-end-radius: 0; border-end-end-radius: 0;
}
.rg-slugsuffix {
  display: flex; align-items: center; padding: 0 12px;
  border: 1px solid var(--rg-line-2); border-inline-start: 0;
  border-start-end-radius: 11px; border-end-end-radius: 11px;
  background: color-mix(in srgb, var(--mb-ink) 70%, black);
  color: var(--mb-faint); font-family: var(--mb-font-mono);
  font-size: 12.5px; white-space: nowrap;
}

/* ── the code box ─────────────────────────────────────────────────── */
.rg-code input {
  font-family: var(--mb-font-mono); font-size: 22px; font-weight: 700;
  letter-spacing: .34em; text-align: center; min-height: 58px;
  padding-inline-start: .34em; /* the tracking pushes the text right */
}

/* Development only. It says out loud why it is there — a test mode
   nobody can see is a test mode that ships. */
.rg-devcode {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-radius: 11px;
  border: 1px dashed rgba(164, 240, 58, .4);
  background: rgba(164, 240, 58, .06);
  font-size: 12px; color: var(--rg-text-2);
}
.rg-devcode b { font-family: var(--mb-font-mono); font-size: 15px; letter-spacing: .18em; color: var(--mb-lime); }
.rg-devcode-fill {
  margin-inline-start: auto; padding: 5px 10px; min-height: 32px;
  border: 1px solid var(--rg-line-2); border-radius: 8px;
  background: transparent; color: var(--rg-text-2);
  font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.rg-devcode-fill:hover { border-color: var(--mb-lime); color: var(--mb-lime); }

.rg-linkrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rg-link {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--mb-lime);
}
.rg-link:disabled { color: var(--mb-faint); cursor: default; }
.rg-link:hover:not(:disabled) { text-decoration: underline; }

/* ── plans ────────────────────────────────────────────────────────── */
.rg-plans { display: flex; flex-direction: column; gap: 9px; }
.rg-plan {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  align-items: flex-start; text-align: start; cursor: pointer;
  padding: 14px 16px;
  border: 1px solid var(--rg-line-2); border-radius: 13px;
  background: var(--rg-input); color: var(--rg-text); font: inherit;
  transition: border-color .16s var(--rg-ease), background-color .16s var(--rg-ease), transform .16s var(--rg-ease);
}
.rg-plan:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.rg-plan.is-on {
  border-color: var(--mb-lime);
  background: color-mix(in srgb, var(--mb-lime) 8%, var(--rg-input));
  box-shadow: 0 0 0 3px rgba(164, 240, 58, .12);
}
.rg-plan:focus-visible { outline: 2px solid var(--mb-lime); outline-offset: 2px; }
.rg-plan-name { font-size: 14.5px; font-weight: 800; color: #fff; }
.rg-plan-price { font-family: var(--mb-font-mono); font-size: 17px; font-weight: 700; color: #fff; }
.rg-plan-price em {
  font-style: normal; font-family: var(--mb-font-sans);
  font-size: 11.5px; font-weight: 500; color: var(--mb-faint);
  margin-inline-start: 6px;
}
.rg-plan-free { font-size: 11.5px; font-weight: 700; color: var(--mb-lime); }
.rg-plan-blurb { font-size: 12px; line-height: 1.5; color: var(--rg-muted); }
.rg-plan-pop {
  position: absolute; top: -8px; inset-inline-end: 14px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--mb-lime); color: var(--mb-ink);
  font-size: 9.5px; font-weight: 800; letter-spacing: .07em;
}

.rg-preview {
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px 16px; border-radius: 13px;
  border: 1px solid rgba(164, 240, 58, .22);
  background: rgba(164, 240, 58, .06);
}
.rg-preview-first { font-size: 13.5px; font-weight: 800; color: var(--mb-lime); }
.rg-preview-then { font-size: 13px; color: var(--rg-text-2); }
.rg-num { font-family: var(--mb-font-mono); font-weight: 700; color: #fff; }

/* ── mandate and consents ─────────────────────────────────────────── */
.rg-mandate {
  padding: 15px 17px; border-radius: 13px;
  border: 1px solid var(--rg-line); background: var(--rg-input);
  max-height: 210px; overflow-y: auto;
}
.rg-mandate h2 { font-size: 12.5px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.rg-mandate p { font-size: 11.8px; line-height: 1.65; color: var(--rg-text-2); margin-bottom: 8px; }
.rg-mandate p:last-child { margin-bottom: 0; }
.rg-mandate-meta { color: var(--mb-faint) !important; }

/* The whole row is the label — 44 px is what a thumb actually hits,
   even though the box itself is 18. */
.rg-check {
  display: flex; align-items: center; gap: 11px; min-height: 44px;
  font-size: 12.5px; line-height: 1.5; color: var(--rg-text-2); cursor: pointer;
}
.rg-check input { width: 18px; height: 18px; flex: none; accent-color: var(--mb-lime); cursor: pointer; }
.rg-check a { color: var(--mb-lime); }

/* ── the button ───────────────────────────────────────────────────── */
.rg-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 22px; margin-top: 3px;
  border: 0; border-radius: 12px;
  background: var(--mb-lime); color: var(--mb-ink);
  font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 0 rgba(164, 240, 58, 0);
  transition: box-shadow .2s var(--rg-ease), transform .16s var(--rg-ease), filter .16s var(--rg-ease);
}
.rg-cta:hover:not(:disabled) {
  filter: brightness(1.05); transform: translateY(-1px);
  box-shadow: 0 10px 30px -8px rgba(164, 240, 58, .45);
}
.rg-cta:active:not(:disabled) { transform: translateY(0); }
.rg-cta:disabled { opacity: .5; cursor: default; }
.rg-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rg-cta .rg-ic { width: 17px; height: 17px; }

.rg-err {
  padding: 11px 14px; border-radius: 11px;
  border: 1px solid rgba(220, 38, 38, .35);
  background: rgba(220, 38, 38, .1);
  color: #fca5a5; font-size: 12.5px; line-height: 1.55;
}

/* ── provisioning and done ────────────────────────────────────────── */
.rg-prov {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 17px; border-radius: 13px;
  border: 1px solid var(--rg-line); background: var(--rg-input);
  font-family: var(--mb-font-mono); font-size: 13px; color: #fff;
}
.rg-dot {
  width: 9px; height: 9px; flex: none; border-radius: 999px;
  background: var(--mb-lime);
  animation: rg-pulse 1.4s ease-in-out infinite;
}
@keyframes rg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }

.rg-done-mark {
  display: grid; place-items: center; width: 54px; height: 54px;
  margin: 2px auto 4px; border-radius: 999px;
  background: rgba(164, 240, 58, .12); color: var(--mb-lime);
}
.rg-done-mark svg { width: 26px; height: 26px; }

.rg-foot {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: 11.5px; color: var(--mb-faint);
}
.rg-foot a { color: inherit; text-decoration: none; }
.rg-foot a:hover { color: var(--rg-text-2); }
.rg-foot-meta { flex-basis: 100%; }
.rg-foot-meta b { color: var(--rg-text-2); letter-spacing: .1em; }

/* ═══ Wide ═══════════════════════════════════════════════════════════ */
@media (min-width: 1080px) {
  .rg-visual { display: block; }
  .rg-panel { flex: 0 0 min(520px, 42%); }
  .rg-panel-inner { padding: 52px 44px 44px; }
}

/* ═══ Motion policy ══════════════════════════════════════════════════
   The pulsing dot is the only thing that loops, and it means "still
   working" — so it rests VISIBLE rather than disappearing. The video
   is decoration and stops entirely. */
@media (prefers-reduced-motion: reduce) {
  .rg-dot { animation: none; }
  .rg-video { display: none; }
  .rg-card, .rg-cta, .rg-plan, .rg-field input, .rg-steps li i { transition: none; }
  .rg-cta:hover:not(:disabled), .rg-plan:hover { transform: none; }
}

/* ── the language menu ─────────────────────────────────────────────
   A menu, not a cycling chip. Cycling suits two languages and misleads
   with three: reaching the third means pressing twice and passing
   through one you cannot read. The chip says where you ARE; the list
   says where you can go, each row in its own language's own name. */
.rg-tools {
  position: absolute; top: 18px; inset-inline-end: 18px;
  display: flex; gap: 8px; z-index: 30;
}
.rg-langwrap { position: relative; }
.rg-tool {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--rg-line-2);
  background: transparent; color: var(--rg-muted); cursor: pointer;
  transition: color .15s, border-color .15s, transform .15s;
}
.rg-tool:hover { color: var(--rg-text); border-color: var(--mb-lime-mid); transform: translateY(-1px); }
.rg-tool:focus-visible { outline: 2px solid var(--mb-lime); outline-offset: 2px; }
.rg-tool[aria-expanded="true"] { color: var(--mb-ink); background: var(--mb-lime); border-color: transparent; }
.rg-tool-text { font: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; }

.rg-langmenu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 176px; padding: 5px;
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--rg-line-2); border-radius: 13px;
  background: color-mix(in srgb, var(--mb-ink) 96%, black);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .8);
}
/* An author `display` beats the UA's `[hidden] { display: none }` no
   matter the specificity, so a flex menu with the attribute set stays
   open and the button looks dead. */
.rg-langmenu[hidden] { display: none; }
.rg-langitem {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 11px; width: 100%;
  border: 0; border-radius: 9px; background: transparent;
  color: var(--rg-text-2); font: inherit; font-size: 13px; cursor: pointer;
  text-align: start;
  transition: background-color .14s var(--rg-ease), color .14s var(--rg-ease);
}
.rg-langitem:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.rg-langitem:focus-visible { outline: 2px solid var(--mb-lime); outline-offset: -2px; }
.rg-langitem.is-on { color: #fff; }
.rg-langitem-code {
  font-family: var(--mb-font-mono); font-size: 10.5px; font-weight: 800;
  letter-spacing: .08em; color: var(--mb-faint); min-width: 22px;
}
.rg-langitem.is-on .rg-langitem-code { color: var(--mb-lime); }
.rg-langitem-name { flex: 1; }
.rg-langitem-tick { margin-inline-start: auto; width: 15px; height: 15px; color: var(--mb-lime); }

/* ── the two ways out ──────────────────────────────────────────────
   One for somebody who already has a panel and landed here by mistake,
   one for somebody who is not ready and would otherwise close the tab.
   Buttons rather than links in a row: at the bottom of a five-step form
   an underlined word reads as fine print, and these are the two exits
   that stop a person from being stuck. */
.rg-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.rg-way {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--rg-line-2); border-radius: 11px;
  background: var(--rg-input); color: var(--rg-text-2); text-decoration: none;
  font-size: 12.5px; font-weight: 700; text-align: center;
  transition: border-color .16s var(--rg-ease), color .16s var(--rg-ease),
              background-color .16s var(--rg-ease), transform .16s var(--rg-ease);
}
.rg-way:hover {
  border-color: var(--mb-lime-mid); color: #fff;
  background: color-mix(in srgb, var(--mb-lime) 6%, var(--rg-input));
  transform: translateY(-1px);
}
.rg-way:focus-visible { outline: 2px solid var(--mb-lime); outline-offset: 2px; }
.rg-way .rg-ic { color: var(--mb-lime); }
/* The arrows mean a real-world direction, so they mirror with the page.
   Everything else here is already logical-property driven. */
[dir="rtl"] .rg-way .rg-ic { transform: scaleX(-1); }
@media (max-width: 420px) { .rg-ways { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .rg-tool, .rg-way, .rg-langitem { transition: none; }
  .rg-tool:hover, .rg-way:hover { transform: none; }
}

/* ── the mandate block, step 5 (2026-09-05) ─────────────────────────
   Creditor id and mandate reference in mono, a ghost button that opens
   the bank's page, and a pill that says whether the signature is in. */
.rg-mandate-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0 4px; font-size: 12.5px; }
.rg-mandate-kv dt { color: var(--rg-muted); }
.rg-mandate-kv dd { margin: 0; font-family: var(--mb-font-mono); color: var(--rg-text); word-break: break-all; }
.rg-cta-ghost { margin-top: 12px; background: transparent; color: var(--rg-text); border: 1px solid var(--rg-line-2); box-shadow: none; text-decoration: none; }
.rg-cta-ghost:hover { border-color: var(--mb-lime-mid); background: rgba(164, 240, 58, .06); }
.rg-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--rg-text-2); border: 1px solid var(--rg-line-2); }
.rg-pill .rg-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--et-warm, #FFBD47); animation: rg-blink 1.4s ease-in-out infinite; }
.rg-pill-ok { color: var(--mb-lime); border-color: rgba(164, 240, 58, .4); background: rgba(164, 240, 58, .1); }
@keyframes rg-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rg-pill .rg-dot { animation: none; } }

/* ── the login door (2026-09-07) ───────────────────────────────────
   Two forms in one card — the Firmen-Code, and the way back in for
   somebody who lost it. The wizard's card gap was tuned for a step
   with several fields; the door has one, so its pieces breathe more. */
.lg-form { display: flex; flex-direction: column; gap: 16px; }
.lg-form[hidden] { display: none; }
.lg-form .rg-lede { margin-top: -6px; }
.lg-form .rg-field { margin-top: 2px; }
.lg-form .rg-field > label { font-size: 12px; font-weight: 700; color: var(--rg-text-2); }
.lg-form .rg-field input { width: 100%; }
.lg-form .rg-cta { margin-top: 6px; width: 100%; }
.lg-links { justify-content: center; margin-top: -2px; }
.lg-links .rg-link { font-size: 13px; font-weight: 700; color: var(--mb-lime); }
.lg-form .rg-hint { margin-top: 2px; text-align: center; }
.lg-rc-sent { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(164, 240, 58, .3); background: rgba(164, 240, 58, .08); color: var(--rg-text); text-align: start; }
.lg-rc-sent[hidden] { display: none; }
/* the door's two ways carry longer sentences than the wizard's — one per row */
.lg-ways { grid-template-columns: 1fr; }

/* ── the phone's autofill paints inputs white; keep them ours ────── */
.rg-field input:-webkit-autofill,
.rg-field input:-webkit-autofill:hover,
.rg-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--rg-input) inset;
  -webkit-text-fill-color: var(--rg-text);
  caret-color: var(--rg-text);
  transition: background-color 9999s ease-out 0s;
}

/* ── the wait, visible (2026-09-07) ────────────────────────────────── */
.rg-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.rg-bar i { display: block; height: 100%; border-radius: inherit; background: var(--mb-lime); box-shadow: 0 0 12px rgba(164, 240, 58, .5); transition: width .6s var(--rg-ease); }
.rg-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rg-stage { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mb-faint); }
.rg-stage i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--rg-line-2); flex: none; }
.rg-stage.is-now { color: var(--rg-text); }
.rg-stage.is-now i { border-color: var(--mb-lime); background: var(--mb-lime); box-shadow: 0 0 0 4px rgba(164, 240, 58, .15); }
.rg-stage.is-done { color: var(--rg-text-2); }
.rg-stage.is-done i { border-color: var(--mb-lime); background: var(--mb-lime); }
.rg-elapsed { font-family: var(--mb-font-mono); text-align: end; margin-top: -4px; }
@media (prefers-reduced-motion: reduce) { .rg-bar i { transition: none; } }
