/* ╔══════════════════════════════════════════════════════════════════╗
   ║  VTEX Wallet — Le papier clair des écrans d'entrée                ║
   ║  Le guide d'installation et la première connexion quittent le     ║
   ║  fond noir et prennent la matière de l'écran de connexion :       ║
   ║  papier platinum (#F0EEE6 → #CFCCC0), encre #0a0d1e, CTA navy.    ║
   ║                                                                   ║
   ║  Le cycle LEGDAY porte les socles :                               ║
   ║    forest #4C9D63 → #327044  le pas franchi, ce qui est acquis    ║
   ║    blue   #2F3670 → #171B3D  la marque, l'action principale       ║
   ║    brick  #A04841 → #73302C  ce qui demande une décision          ║
   ║    platinum #E5E3DA → #CFCCC0  les surfaces neutres               ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* ────────────────────────── Le registre ────────────────────────── */
#view-premiere-connexion,
#view-acces,
#acces-screen,
.acces-card,
#acces-install {
  --plat-1: #E5E3DA; --plat-2: #DCDAD0; --plat-3: #CFCCC0; --paper: #F0EEE6;
  --ink: #0a0d1e; --ink2: #4d5378; --ink3: #6b7396; --navy: #0E1230;
  --forest-ink: #2F6E41; --red-ink: #B23A32;
  --g-platinum: linear-gradient(158deg, #E5E3DA 0%, #DCDAD0 55%, #CFCCC0 100%);
  --g-forest: linear-gradient(158deg, #4C9D63 0%, #3E8B54 55%, #327044 100%);
  --g-blue: linear-gradient(158deg, #2F3670 0%, #252B5B 55%, #171B3D 100%);
  --g-brick: linear-gradient(158deg, #A04841 0%, #8E3B36 55%, #73302C 100%);
  --s-forest: #97CE5E; --s-blue: #8ea9ff; --s-brick: #E5903F;
  --sh-card: 0 10px 28px -10px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .16);
  --sh-socle: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 4px rgba(0, 0, 0, .12), 0 3px 8px -2px rgba(0, 0, 0, .28);
  --sh-paper: 0 2px 6px -2px rgba(14, 18, 48, .16), 0 12px 26px -18px rgba(14, 18, 48, .34);
  --hair: rgba(14, 18, 48, .10);
  --hair-2: rgba(14, 18, 48, .16);

  background: var(--g-platinum) !important;
  color: var(--ink) !important;
}

/* La carte d'accès porte le papier ; les surfaces sombres du guide cèdent. */
.acces-card,
.acces-card .inst-block,
#view-acces .acces-card {
  background: transparent !important;
  border-color: var(--hair-2) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}
.acces-card::-webkit-scrollbar-thumb { background: rgba(14, 18, 48, .22) !important; }

/* ──────────────── 1. La première connexion (les gestes) ──────────────── */
#view-premiere-connexion .fr-hero {
  border: 1px solid var(--hair-2) !important;
  background: linear-gradient(180deg, #F4F2EB, #E7E5DC) !important;
  box-shadow: var(--sh-paper) !important;
}
/* Le halo doré du fond noir n'a plus de sens sur le papier : la lumière
   devient celle du vert, la couleur du pas franchi. */
#view-premiere-connexion .fr-hero::after {
  background: radial-gradient(circle, rgba(151, 206, 94, .18) 0%, transparent 68%) !important;
}
#view-premiere-connexion .fr-hero * { color: inherit !important; }
#view-premiere-connexion .fr-hero-kicker,
#view-premiere-connexion .fr-kicker {
  color: var(--forest-ink) !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}
#view-premiere-connexion .fr-hero-title { color: var(--ink) !important; }
#view-premiere-connexion .fr-hero-sub,
#view-premiere-connexion .fr-hero-lead { color: var(--ink2) !important; }

/* Les gestes : des lignes de papier, séparées par un filet, jamais des dalles. */
#view-premiere-connexion .fr-row {
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .5)) !important;
  border: 1px solid var(--hair-2) !important;
  box-shadow: var(--sh-socle) !important;
  color: var(--ink) !important;
}
#view-premiere-connexion .fr-row-title,
#view-premiere-connexion .fr-row b,
#view-premiere-connexion .fr-row strong { color: var(--ink) !important; }
#view-premiere-connexion .fr-row-sub,
#view-premiere-connexion .fr-row small { color: var(--ink3) !important; }

/* Le geste à faire est une action : navy, en relief. */
#view-premiere-connexion .fr-row-cta {
  background: var(--g-blue) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow: var(--sh-card) !important;
  color: #fff !important;
}
#view-premiere-connexion .fr-row-cta:hover { filter: brightness(1.06) !important; }
#view-premiere-connexion .fr-row-cta:focus-visible { outline: 3px solid rgba(142, 169, 255, .5) !important; outline-offset: 3px !important; }

/* Les règles qui ne changent pas : du papier, un jeton vert, du texte. */
#view-premiere-connexion .fr-rules {
  background: linear-gradient(180deg, #F4F2EB, #E7E5DC) !important;
  border: 1px solid var(--hair-2) !important;
  box-shadow: var(--sh-paper) !important;
}
#view-premiere-connexion .fr-rule { border-bottom: 1px solid var(--hair) !important; }
#view-premiere-connexion .fr-rule-main { color: var(--ink) !important; }
#view-premiere-connexion .fr-rule-main + *,
#view-premiere-connexion .fr-rule small { color: var(--ink3) !important; }
#view-premiere-connexion .fr-rule-ic {
  background: var(--g-forest) !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  box-shadow: var(--sh-socle) !important;
  color: #fff !important;
}

/* ─────────────── 2. Le guide d'installation en tant qu'application ─────────────── */
.inst-head,
.inst-guide { color: var(--ink) !important; }
.inst-kicker,
.inst-guide-kicker {
  color: var(--forest-ink) !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}
.inst-title,
.inst-guide-title { color: var(--ink) !important; }
.inst-lead,
.inst-guide-lead { color: var(--ink2) !important; }

/* Le guide principal : le papier le plus clair de l'écran. */
.inst-guide,
.inst-guide.is-main {
  background: linear-gradient(180deg, #F6F4ED, #EBE9E0) !important;
  border: 1px solid var(--hair-2) !important;
  box-shadow: var(--sh-paper) !important;
}

/* Les jalons : un rail, des pastilles numérotées, dans l'ordre du cycle. */
.inst-guide-steps { border-left-color: var(--hair-2) !important; }
.inst-guide-steps li,
.inst-guide-steps .inst-step { color: var(--ink) !important; }
.inst-guide-steps li::before,
.inst-guide-steps .inst-step::before {
  background: var(--g-forest) !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  box-shadow: var(--sh-socle) !important;
  color: #fff !important;
}
.inst-guide-steps small,
.inst-guide-steps .inst-step-sub { color: var(--ink3) !important; }

/* L'action d'installation : navy, la même main que le CTA de la connexion. */
.inst-install {
  background: var(--g-blue) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow: var(--sh-card) !important;
  color: #fff !important;
}
.inst-install:hover { filter: brightness(1.06) !important; }
.inst-install:focus-visible { outline: 3px solid rgba(142, 169, 255, .5) !important; outline-offset: 3px !important; }

.inst-actions { color: var(--ink) !important; }
.inst-manual { color: var(--ink2) !important; }

/* « Les autres appareils » : un tiroir de papier, refermé par défaut. */
.inst-more {
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .46)) !important;
  border: 1px solid var(--hair-2) !important;
  box-shadow: var(--sh-socle) !important;
  color: var(--ink) !important;
}
.inst-more[open] { background: linear-gradient(180deg, #F4F2EB, #E7E5DC) !important; }
.inst-more summary,
.inst-more > *:first-child { color: var(--ink) !important; }
.inst-more-body { color: var(--ink2) !important; }
.inst-note { color: var(--ink3) !important; }

/* Le geste accompli : vert, jamais criard. */
.inst-done,
.inst-done * { color: var(--forest-ink) !important; }
.inst-done::before { background: var(--g-forest) !important; color: #fff !important; }

@media (prefers-reduced-motion: reduce) {
  #view-premiere-connexion .fr-row-cta,
  .inst-install,
  .inst-more { transition: none !important; }
}
/* ───────────── 3. Ce qui garde encore l'encre du fond noir ─────────────
   Les deux écrans ont été écrits pour un fond noir : les textes, les en-têtes
   et les cartes y portent donc des blancs. Sur le papier, l'encre reprend ses
   droits — sauf là où la couleur porte l'action. */

/* L'écran d'accès pose son propre halo sombre : le papier le remplace. */
#acces-screen { background: var(--g-platinum) !important; }
#acces-screen .acces-card { background: transparent !important; }

/* Le guide : tout le texte passe à l'encre, l'action reste blanche. */
#acces-install,
#acces-install * { color: var(--ink, #0a0d1e) !important; }
#acces-install .inst-install,
#acces-install .inst-install * { color: #fff !important; }
#acces-install .inst-kicker,
#acces-install .inst-guide-kicker { color: var(--forest-ink, #2F6E41) !important; }
#acces-install .inst-lead,
#acces-install .inst-note,
#acces-install .inst-more-body { color: var(--ink2, #4d5378) !important; }

/* La première connexion : même règle, puis on rend le blanc aux seuls
   moments qui appellent un geste. */
#view-premiere-connexion,
#view-premiere-connexion * { color: var(--ink, #0a0d1e) !important; }
#view-premiere-connexion .fr-hero-cta,
#view-premiere-connexion .fr-hero-cta * { color: #fff !important; }
#view-premiere-connexion .fr-row-cta,
#view-premiere-connexion .fr-row-cta * { color: #fff !important; }
#view-premiere-connexion .fr-rule-ic,
#view-premiere-connexion .fr-rule-ic * { color: #fff !important; }

/* La carte d'attente « Vérification de votre espace… » était une dalle noire. */
#view-premiere-connexion .fr-checklist,
#view-premiere-connexion .card.tex {
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .5)) !important;
  border: 1px solid var(--hair-2) !important;
  box-shadow: var(--sh-socle) !important;
}
#view-premiere-connexion .switch-sub,
#view-premiere-connexion .switch-lbl { color: var(--ink2, #4d5378) !important; }

/* Le geste à faire : la même main que le CTA de la connexion. */
#view-premiere-connexion .fr-hero-cta {
  background: var(--g-blue) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow: var(--sh-card) !important;
}
#view-premiere-connexion .fr-hero-cta-dot {
  background: linear-gradient(180deg, #fff, #DCDAD0) !important;
  border: 1px solid rgba(255, 255, 255, .5) !important;
  box-shadow: var(--sh-socle) !important;
}
/* Le pas franchi porte le vert du cycle, la coche passe au blanc. */
#view-premiere-connexion .fr-hero-ic {
  background: var(--g-forest) !important;
  border: 1px solid rgba(255, 255, 255, .24) !important;
  box-shadow: var(--sh-socle) !important;
}
#view-premiere-connexion .fr-hero-ic svg { stroke: #fff !important; }

/* Les intitulés de section gardent leur lettrage, avec l'encre douce. */
#view-premiere-connexion .settings-group-lbl,
.view#view-acces .settings-group-lbl,
#acces-screen .settings-group-lbl { color: var(--ink3, #6b7396) !important; }

/* L'en-tête des deux écrans : papier, touches claires, titre à l'encre. */
.view#view-premiere-connexion .vx-header,
.view#view-acces .vx-header { background: transparent !important; border-bottom-color: var(--hair) !important; }
.view#view-premiere-connexion .vx-page-title,
.view#view-acces .vx-page-title { color: var(--ink) !important; }
.view#view-premiere-connexion .hd-round,
.view#view-acces .hd-round {
  background: linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .44)) !important;
  border: 1px solid var(--hair-2) !important;
  color: var(--navy) !important;
  box-shadow: var(--sh-socle) !important;
}

@media (prefers-reduced-motion: reduce) {
  #view-premiere-connexion .fr-row-cta,
  #view-premiere-connexion .fr-hero-cta,
  .inst-install,
  .inst-more { transition: none !important; }
}

/* Le guide peut s'ouvrir hors du portage des jetons : chaque matière y est
   donc posée avec son repli, jamais avec une variable seule. */
#acces-install .inst-guide,
#acces-install .inst-guide.is-main {
  background: var(--g-paper, linear-gradient(180deg, #F6F4ED, #EBE9E0)) !important;
}
#acces-install .inst-install {
  background: var(--g-blue, linear-gradient(158deg, #2F3670 0%, #252B5B 55%, #171B3D 100%)) !important;
}
#acces-install .inst-guide-steps li::before,
#acces-install .inst-guide-steps .inst-step::before {
  background: var(--g-forest, linear-gradient(158deg, #4C9D63 0%, #3E8B54 55%, #327044 100%)) !important;
  color: #fff !important;
}
#acces-install .inst-guide-steps { border-left-color: var(--hair-2, rgba(14, 18, 48, .16)) !important; }
#acces-install .inst-more {
  background: rgba(255, 255, 255, .72) !important;
  border: 1px solid var(--hair-2, rgba(14, 18, 48, .16)) !important;
  color: var(--ink, #0a0d1e) !important;
}

/* La ligne d'attente ne doit pas ressembler à un champ de saisie : c'est une
   phrase, pas une case. La carte porte la surface, la ligne reste nue. */
#view-premiere-connexion .fr-checklist .fr-row {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#view-premiere-connexion .fr-checklist .fr-row + .fr-row { border-top: 1px solid var(--hair, rgba(14, 18, 48, .10)) !important; }

/* ===== PARCOURS AVANT L'ACCUEIL — PAPIER DU LOGIN =====
   Le login et l'OTP partagent le registre clair et le même langage
   graphique : capsule navy pour le signe, mesh cristallin navy sur fond
   ivoire, carte posée au centre. La scène OTP hérite de la mise en page
   flex centrée de .auth-bg (wallet-base.css §AUTH) — plus de marge en dur
   qui désalignait la carte. */
#view-otp {
  padding: 0 !important;
  /* Le dégradé vit sur la vue : il couvre le shell entier même quand la
     carte est plus courte que l'écran. */
  background:
    radial-gradient(42% 32% at 82% 16%, rgba(90, 107, 216, .14), transparent 72%),
    radial-gradient(38% 30% at 10% 108%, rgba(42, 91, 132, .08), transparent 72%),
    linear-gradient(158deg, #ffffff 0%, #fafaf9 55%, #f1f0ea 100%) !important;
  color: #0a0d1e !important;
  isolation: isolate;
}
#view-otp .auth-bg {
  padding: 72px 22px 32px !important;
  background: transparent !important;
}
#view-otp .auth-layer--bloom {
  /* Halos très diffus : une teinte d'atmosphère, pas une tache de couleur. */
  background:
    radial-gradient(46% 36% at 80% 10%, rgba(90, 107, 216, .10), transparent 74%),
    radial-gradient(42% 34% at 8% 96%, rgba(42, 91, 132, .07), transparent 76%) !important;
}
#view-otp .auth-layer--mesh {
  color: #2a5b84 !important;
  opacity: .42 !important;
  -webkit-mask-image: radial-gradient(130% 110% at 50% 34%, #000 42%, transparent 92%);
          mask-image: radial-gradient(130% 110% at 50% 34%, #000 42%, transparent 92%);
}
#view-otp .auth-layer--mesh .auth-mesh { inset: 0 !important; width: 100% !important; height: 100% !important; transform: none; }
#view-otp .auth-layer--mesh .auth-facet {
  stroke-width: .8 !important;
  vector-effect: non-scaling-stroke;
  opacity: .14 !important;
}
#view-otp .auth-layer--mesh .auth-node { opacity: .28 !important; }

/* Bouton retour — même gabarit que le login : chip clair sur ivoire. */
#view-otp .auth-back {
  top: 22px !important;
  left: 20px !important;
  background: rgba(255, 255, 255, .86) !important;
  color: #0a0d1e !important;
  box-shadow: inset 0 0 0 1px rgba(10, 13, 30, .10), 0 5px 14px -8px rgba(16, 20, 45, .30) !important;
}

/* Carte OTP — matière ivoire, centrée par le flex parent, pas de marge en dur. */
#view-otp .auth-card {
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto !important;
  padding: 30px 26px !important;
  background: linear-gradient(158deg, #ffffff 0%, #f7f5f0 100%) !important;
  border: 1px solid rgba(10, 13, 30, .08) !important;
  box-shadow: 0 24px 54px -22px rgba(16, 20, 45, .34), inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

/* Le petit chip VTEX réutilise la capsule noire du login — même garantie de
   contraste sur fond ivoire, même rythme visuel que la vidéo d'ouverture. */
/* Lockup navy posé directement sur la carte ivoire, sans capsule ajoutée. */
#view-otp .auth-lockup {
  display: block;
  width: 132px;
  height: auto;
  margin: 0 auto 22px;
}

#view-otp .auth-eye { color: #6b7396 !important; }
#view-otp .auth-title,
#view-otp .status-title { color: #0a0d1e !important; font-weight: 800 !important; letter-spacing: -.03em !important; }
#view-otp .auth-sub,
#view-otp .status-sub,
#view-otp .auth-state,
#view-otp .resend { color: #4d5378 !important; }
#view-otp .auth-state[data-state="error"] { color: #b23a32 !important; }
#view-otp .auth-state[data-state="success"] { color: #2f6e41 !important; }

#view-otp .otp-dot {
  background: rgba(10, 13, 30, .08) !important;
  box-shadow: inset 0 0 0 1px rgba(10, 13, 30, .14) !important;
  font: 700 13px/1 var(--f-mono, 'JetBrains Mono', monospace) !important;
  color: transparent !important;
  text-align: center !important;
  line-height: 14px !important;
}
#view-otp .otp-dot.filled {
  background: #5a6bd8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 4px rgba(90, 107, 216, .16) !important;
}
/* Mode « code révélé » — déclenché par le bouton œil ; les chiffres saisis
   remplacent le point dessiné, sur une pastille plus large qui respire. */
#view-otp .otp-dots[data-reveal="true"] { gap: 8px !important; }
#view-otp .otp-dots[data-reveal="true"] .otp-dot {
  width: 30px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: rgba(10, 13, 30, .04) !important;
  box-shadow: inset 0 0 0 1px rgba(10, 13, 30, .14) !important;
  color: #0a0d1e !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 34px !important;
}
#view-otp .otp-dots[data-reveal="true"] .otp-dot.filled {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(90, 107, 216, .55), 0 0 0 3px rgba(90, 107, 216, .14) !important;
  color: #0a0d1e !important;
}

#view-otp .otp-key {
  background: linear-gradient(158deg, #ffffff 0%, #f1f0ea 55%, #e5e3da 100%) !important;
  border: 1px solid rgba(10, 13, 30, .10) !important;
  color: #0a0d1e !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 6px 14px -4px rgba(16, 20, 45, .22) !important;
}
#view-otp .otp-key:hover { background: #ffffff !important; }
/* Retour tactile : la touche s'enfonce au doigt comme au clic. Le `:active`
   seul ne suffit pas sur iOS (il part au touchend) : vtex-api.js pose aussi
   `.is-pressed` sur pointerdown, ce qui rend l'appui immédiat. Le ripple
   naît sous le doigt, pas au centre de la touche. */
#view-otp .otp-key {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  transition: transform .13s cubic-bezier(.2, .8, .2, 1), box-shadow .13s ease, background-color .13s ease;
}
#view-otp .otp-key:active,
#view-otp .otp-key.is-pressed {
  transform: scale(.93);
  background: #ffffff !important;
  box-shadow: inset 0 2px 7px rgba(16, 20, 45, .20), 0 2px 5px -3px rgba(16, 20, 45, .35) !important;
}
#view-otp .otp-key:focus-visible {
  outline: 3px solid rgba(90, 107, 216, .42);
  outline-offset: 2px;
}
#view-otp .otp-key--delete:active,
#view-otp .otp-key--delete.is-pressed {
  background: #f8e6e1 !important;
  box-shadow: inset 0 2px 7px rgba(178, 58, 50, .24), 0 2px 5px -3px rgba(178, 58, 50, .3) !important;
}
#view-otp .otp-ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: rgba(10, 13, 30, .16);
  pointer-events: none;
  animation: otp-ripple .46s cubic-bezier(.2, .7, .3, 1) forwards;
}
#view-otp .otp-key--delete .otp-ripple { background: rgba(178, 58, 50, .22); }
@keyframes otp-ripple {
  from { transform: scale(.4); opacity: .9; }
  to { transform: scale(9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #view-otp .otp-key { transition: none; }
  #view-otp .otp-ripple { animation-duration: .01ms; }
}
#view-otp .otp-key.ghost { background: transparent !important; color: #6b7396 !important; box-shadow: none !important; border: none !important; }
/* Touche « Effacer » : même gabarit que les chiffres, mais une matière
   terracotta propre à l'action destructive. Le rouge de la marque sert
   d'encre, jamais de fond plein : la touche reste calme à côté des chiffres. */
#view-otp .otp-key--delete {
  background: linear-gradient(158deg, #fdf3f0 0%, #f8e6e1 55%, #f0d6cf 100%) !important;
  border: 1px solid rgba(178, 58, 50, .22) !important;
  color: #b23a32 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 6px 14px -4px rgba(178, 58, 50, .26) !important;
}
#view-otp .otp-key--delete:hover {
  background: #ffffff !important;
  border-color: rgba(178, 58, 50, .38) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 8px 18px -6px rgba(178, 58, 50, .34) !important;
}
#view-otp .otp-key--delete:active {
  transform: scale(.92);
  box-shadow: inset 0 2px 6px rgba(178, 58, 50, .22) !important;
}
#view-otp .otp-key--delete:disabled { opacity: .42; }
#view-otp .otp-delete-ic { width: 24px; height: 24px; display: block; margin: auto; }
#view-otp .resend b { color: #0a0d1e !important; }

/* Bouton œil = la case qui était vide dans la grille. Un vrai bouton
   visible (cercle ivoire + œil navy), aria-pressed porte l'état, et la
   barre `.otp-reveal-slash` passe/disparaît pour signaler le mode. */
#view-otp .otp-reveal { padding: 0 !important; }
#view-otp .otp-reveal .otp-reveal-ic {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #2a5b84;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#view-otp .otp-reveal[aria-pressed="true"] {
  background: linear-gradient(158deg, #2a5b84 0%, #22496a 100%) !important;
  border-color: rgba(10, 13, 30, .18) !important;
  color: #ffffff !important;
}
#view-otp .otp-reveal[aria-pressed="true"] .otp-reveal-ic { stroke: #ffffff; }
#view-otp .otp-reveal .otp-reveal-slash { opacity: 0; }
#view-otp .otp-reveal[aria-pressed="true"] .otp-reveal-slash { opacity: 1; }

#view-otp .status-ring {
  border-color: rgba(47, 110, 65, .28) !important;
  width: 92px !important;
  height: 92px !important;
  margin: 28px auto 20px !important;
}
#view-otp .status-ring .check path { stroke: #2f6e41 !important; }
#view-otp .status-ring.ok {
  background: radial-gradient(circle, rgba(47, 110, 65, .18) 0%, transparent 72%) !important;
  box-shadow: 0 0 0 8px rgba(47, 110, 65, .08) !important;
}

/* Écran de validation OTP — deux variantes, même matière, finitions différentes :
   la première connexion reçoit un chiffon capitale, les retours gardent un
   ton plus bref. Les typographies suivent le charter LEGDAY §2.3. */
#view-otp #otp-stage-success { padding-top: 4px; padding-bottom: 8px; }
#view-otp #otp-stage-success .auth-eye {
  color: #2f6e41 !important;
  background: rgba(47, 110, 65, .10);
  border-radius: 999px;
  padding: 6px 12px;
  margin-top: 4px;
  display: inline-block;
}
#view-otp #otp-stage-success[data-variant="first"] .auth-eye {
  color: #22496a !important;
  background: rgba(42, 91, 132, .10);
}
#view-otp #otp-stage-success .status-title {
  font-size: 22px !important;
  letter-spacing: -.03em !important;
  margin: 4px 0 6px;
}
#view-otp #otp-stage-success .status-sub {
  font-size: 13px !important;
  line-height: 1.55 !important;
  max-width: 30ch;
  margin: 0 auto;
}

@media (max-width: 560px) {
  #view-otp .auth-bg { padding: 56px 16px 28px !important; }
  #view-otp .auth-card { max-width: 360px !important; padding: 26px 20px !important; border-radius: 24px !important; }
}
@media (min-width: 768px) {
  #view-otp .auth-card { max-width: 460px !important; }
}
