/* Login & sign-up (auth-ui.js) — Binance-style card: dark, big fields, gold primary button, step by step. */
#loginPage.bfa-host { background: transparent !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; padding: 0 !important; }
#loginPage.bfa-host > :not(#bfAuth) { display: none !important; }
.auth-page-active:has(#bfAuth) .top-bar .logo-area { visibility: hidden; }   /* the logo is inside the card, like Binance */

.bfa { --bfa-bg: #181a20; --bfa-line: #2b3139; --bfa-field: #474d57; --bfa-t1: #eaecef; --bfa-t2: #848e9c; --bfa-gold: #fcd535; --bfa-gold-h: #f0b90b;
  --bfa-up: #0ecb81; --bfa-dn: #f6465d; max-width: 425px; margin: 8px auto 24px; color: var(--bfa-t1); font-family: var(--pb-font, inherit); }
.bfa *, .bfa *::before { box-sizing: border-box; }
.bfa-card { background: var(--bfa-bg); border: 1px solid var(--bfa-line); border-radius: 24px; padding: 32px 24px 24px; }
@media (min-width: 480px) { .bfa-card { padding: 40px 32px 28px; } }
.bfa-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.bfa-brand img { width: 30px; height: 30px; border-radius: 8px; }
.bfa-brand b { color: var(--bfa-gold-h); font-size: 1.15rem; letter-spacing: .3px; }

.bfa-view { display: none; }
.bfa-view.on { display: block; animation: bfaIn .25s ease; }
@keyframes bfaIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
[dir="ltr"] .bfa-view.on { animation-name: bfaInL; }
@keyframes bfaInL { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.bfa h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 6px; line-height: 1.25; color: var(--bfa-t1); }
.bfa-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 22px; color: var(--bfa-up); font-size: .82rem; font-weight: 600;
  background: rgba(14,203,129,.08); border: 1px solid rgba(14,203,129,.25); border-radius: 20px; padding: 4px 11px; }
.bfa-sub { color: var(--bfa-t2); font-size: .86rem; line-height: 1.7; margin: 4px 0 20px; }
.bfa label:not(.bfa-check) { display: block; color: var(--bfa-t1); font-size: .84rem; margin: 0 0 8px; }
.bfa input[type=email], .bfa input[type=text], .bfa input[type=password] {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--bfa-field); background: transparent; color: var(--bfa-t1);
  font-size: .98rem; outline: none; transition: border-color .15s; font-family: inherit; margin-bottom: 18px; text-align: left; }
.bfa input:hover { border-color: #5e6673; }
.bfa input:focus { border-color: var(--bfa-gold-h); }
.bfa input::placeholder { color: #5e6673; }

.bfa-primary { width: 100%; height: 48px; border: 0; border-radius: 10px; background: var(--bfa-gold); color: #181a20; font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit; position: relative; transition: background .15s; }
.bfa-primary:hover { background: var(--bfa-gold-h); }
.bfa-primary:disabled { opacity: .7; cursor: default; }
.bfa-primary.loading { color: transparent; }
.bfa-primary.loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(24,26,32,.25); border-top-color: #181a20; animation: bfaSpin .7s linear infinite; }
@keyframes bfaSpin { to { transform: rotate(360deg); } }

.bfa-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--bfa-t2); font-size: .8rem; }
.bfa-or::before, .bfa-or::after { content: ''; flex: 1; height: 1px; background: var(--bfa-line); }
.bfa-google { display: flex; justify-content: center; min-height: 44px; }
.bfa-google > * { width: 100%; display: flex; justify-content: center; }

.bfa-back { border: 0; background: transparent; color: var(--bfa-t2); font-size: 1.1rem; cursor: pointer; padding: 0 0 14px; }
[dir="ltr"] .bfa-back i { transform: rotate(180deg); }
.bfa-chip { display: flex; align-items: center; gap: 10px; background: #1e2329; border: 1px solid var(--bfa-line); border-radius: 10px; padding: 10px 12px; margin: 10px 0 20px; }
.bfa-chip i { color: var(--bfa-t2); }
.bfa-chip span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; text-align: left; }
.bfa-chip button { border: 0; background: transparent; color: var(--bfa-gold-h); font-weight: 600; cursor: pointer; font-size: .82rem; font-family: inherit; }

.bfa-pass { position: relative; }
.bfa-pass input { padding-inline-end: 14px; padding-right: 46px !important; }
.bfa-eye { position: absolute; top: 0; right: 4px; height: 48px; width: 40px; border: 0; background: transparent; color: var(--bfa-t2); cursor: pointer; }

.bfa-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -4px 0 20px; flex-wrap: wrap; }
.bfa-check { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--bfa-t2); font-size: .82rem; cursor: pointer; line-height: 1.6; }
.bfa-check input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--bfa-gold-h); flex: none; }
.bfa-agree { margin: -4px 0 20px; }
.bfa-link { border: 0; background: transparent; color: var(--bfa-gold-h); font-weight: 600; font-size: .84rem; cursor: pointer; padding: 0; font-family: inherit; }
.bfa-link:hover { text-decoration: underline; }

.bfa-rules { list-style: none; margin: -8px 0 16px; padding: 0; display: grid; gap: 6px; }
.bfa-rules li { display: flex; align-items: center; gap: 8px; color: var(--bfa-t2); font-size: .8rem; transition: color .15s; }
.bfa-rules li i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #5e6673; display: grid; place-items: center; font-style: normal; font-size: 9px; flex: none; }
.bfa-rules li.ok { color: var(--bfa-up); }
.bfa-rules li.ok i { border-color: var(--bfa-up); background: var(--bfa-up); }
.bfa-rules li.ok i::before { content: '✓'; color: #0b0e11; font-weight: 900; }
.bfa-ref-toggle { border: 0; background: transparent; color: var(--bfa-t1); font-size: .84rem; cursor: pointer; padding: 0; margin: 0 0 10px; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; }
.bfa-ref-toggle i { font-size: .7rem; color: var(--bfa-t2); transition: transform .2s; }
.bfa-ref-toggle.open i { transform: rotate(180deg); }
#bfaRef { text-transform: uppercase; }
#bfaRegGo, #bfaResetGo { margin-top: 4px; }

.bfa-big-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 0 16px; font-size: 1.6rem;
  color: var(--bfa-gold-h); background: rgba(240,185,11,.1); border: 1px solid rgba(240,185,11,.3); }

/* message banner at the top of the card (errors red, success green, info neutral) */
.bfa-msg { min-height: 0; }
.bfa-msg .bfa-note:not(:empty) { display: flex; align-items: flex-start; gap: 10px; margin: -8px 0 20px; padding: 12px 14px; border-radius: 12px;
  font-size: .86rem; line-height: 1.65; text-align: start; background: #1e2329; color: var(--bfa-t1); border: 1px solid var(--bfa-line); animation: bfaMsgIn .25s ease; }
.bfa-msg .bfa-note:not(:empty)::before { font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free'; font-weight: 900; content: '\f05a'; color: var(--bfa-t2); font-size: 1rem; line-height: 1.5; flex: none; }
.bfa-msg .bfa-note.err { color: #ffb3bd; border-color: rgba(246,70,93,.45); background: rgba(246,70,93,.10); }
.bfa-msg .bfa-note.err::before { content: '\f06a'; color: var(--bfa-dn); }
.bfa-msg .bfa-note.ok { color: #b9f3dc; border-color: rgba(14,203,129,.45); background: rgba(14,203,129,.10); }
.bfa-msg .bfa-note.ok::before { content: '\f058'; color: var(--bfa-up); }
.bfa-msg .bfa-note .bfa-link { font-size: .86rem; margin-inline-start: 4px; }
@keyframes bfaMsgIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.bfa-switch { text-align: center; margin: 18px 0 10px; color: var(--bfa-t2); font-size: .88rem; }
.bfa-switch .bfa-link { font-size: .88rem; }
.bfa-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; color: #5e6673; font-size: .72rem; margin-top: 6px; }
.bfa-trust b { font-weight: 500; }
.bfa-trust i { color: var(--bfa-up); margin-inline-end: 3px; }

/* step animation: the next screen slides in a little and fades */
.bfa-view.on { animation-duration: .35s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
@keyframes bfaIn { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes bfaInL { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- "Complete your details" — same card look; no country and no date of birth ---------- */
#profileCompletionPage .input-group:has(#profileCountry),
#profileCompletionPage .input-group:has(#profileBirthDay) { display: none !important; }
#profileCompletionPage.active { max-width: 425px; margin: 8px auto 24px; background: #181a20 !important; border: 1px solid #2b3139 !important;
  border-radius: 24px !important; box-shadow: none !important; backdrop-filter: none !important; padding: 28px 24px 24px !important; }
#profileCompletionPage .auth-title { font-size: 1.5rem; font-weight: 700; color: #eaecef; }
#profileCompletionPage .auth-sub { color: #848e9c; margin-bottom: 18px; }
#profileCompletionPage .input-group input, #profileCompletionPage .input-group select { height: 48px; border-radius: 10px !important; border: 1px solid #474d57 !important;
  background: transparent !important; color: #eaecef !important; font-size: .95rem !important; }
#profileCompletionPage .input-group input:focus { border-color: #f0b90b !important; }
#profileCompletionPage .input-group select option { background: #181a20; }
#profileCompletionPage #completeProfileBtn { height: 48px; border-radius: 10px; background: #fcd535 !important; color: #181a20 !important; font-weight: 700; border: 0; box-shadow: none !important; }

.bfa-tag-gold { color: var(--bfa-gold-h); background: rgba(240,185,11,.08); border-color: rgba(240,185,11,.3); margin-bottom: 12px; }

/* ---------- Face ID / fingerprint login button (passkey.js) ---------- */
.bfp-login { width: 100%; height: 48px; margin: 12px 0 0; border-radius: 10px; border: 1px solid var(--bfa-field); background: transparent; color: var(--bfa-t1);
  font-size: .95rem; font-weight: 600; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: border-color .15s; }
.bfp-login:hover { border-color: var(--bfa-gold-h); }
.bfp-login:disabled { opacity: .6; }
.bfp-login i, .bfp-login .bfp-face { color: var(--bfa-gold-h); font-size: 1.2rem; }
.bfp-face { width: 22px; height: 22px; color: var(--bfa-gold-h, #f0b90b); vertical-align: middle; }
#bfaGoogleLogin { margin-top: 10px; }
/* My account → Security */
#profilePage .bfp-ic { display: inline-grid; place-items: center; }
#profilePage .bfp-ic i, #profilePage .bfp-ic .bfp-face { width: 18px; height: 18px; color: var(--pb-t2, #848e9c); }
#profilePage .bfp-hint { color: var(--pb-t2, #848e9c); font-size: .76rem; line-height: 1.7; margin: 0 0 10px; }
#profilePage .bfp-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--pb-line2, rgba(255,255,255,.1)); border-radius: 12px; margin-bottom: 8px; }
#profilePage .bfp-item > i { color: var(--pb-acc, #0ecb81); }
#profilePage .bfp-item div { flex: 1; min-width: 0; display: grid; }
#profilePage .bfp-item b { font-size: .84rem; color: var(--pb-t1, #eaecef); }
#profilePage .bfp-item small { font-size: .7rem; color: var(--pb-t3, #5e6673); direction: ltr; text-align: start; }
#profilePage .bfp-item button { border: 1px solid rgba(246,70,93,.4); background: transparent; color: #f6465d; border-radius: 8px; padding: 5px 10px; font-size: .74rem; cursor: pointer; font-family: inherit; }
#profilePage .bfp-enable { width: 100%; border: 0; border-radius: 12px; padding: 11px; font-weight: 700; font-size: .85rem; cursor: pointer; font-family: inherit;
  background: var(--pb-acc, #0ecb81); color: var(--pb-on-acc, #06140d); display: flex; align-items: center; justify-content: center; gap: 8px; }
#profilePage .bfp-enable .bfp-face, #profilePage .bfp-enable i { color: inherit; }
#profilePage .bfp-enable:disabled { opacity: .6; }
#profilePage .bfp-msg { font-size: .75rem; margin-top: 8px; line-height: 1.6; }
#profilePage .bfp-msg.ok { color: var(--pb-acc, #0ecb81); } #profilePage .bfp-msg.err { color: #f6465d; }

/* ---------- Sign-up details, step by step (signup-steps.js) ---------- */
#profileCompletionPage.bfs-host, #profileCompletionPage.bfs-host.active { background: transparent !important; border: 0 !important; box-shadow: none !important;
  backdrop-filter: none !important; padding: 0 !important; max-width: none; }
#profileCompletionPage.bfs-host > :not(#bfSteps) { display: none !important; }
.auth-page-active:has(#profileCompletionPage.active #bfSteps) .top-bar .logo-area { visibility: hidden; }
.bfs-bar { display: flex; gap: 6px; margin: -10px 0 22px; }
.bfs-bar i { flex: 1; height: 4px; border-radius: 4px; background: var(--bfa-line); transition: background .3s; }
.bfs-bar i.on { background: var(--bfa-gold); }
.bfs-step { color: var(--bfa-t2); font-size: .78rem; margin: 0 0 6px; }
.bfs-phone { display: flex; gap: 8px; margin-bottom: 18px; }
.bfs-phone input { margin-bottom: 0 !important; flex: 1; min-width: 0; letter-spacing: .5px; }
.bfs-cc { flex: none; height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--bfa-field);
  background: #1e2329; color: var(--bfa-t1); cursor: pointer; font-family: inherit; font-size: .95rem; }
.bfs-cc:hover { border-color: var(--bfa-gold-h); }
.bfs-cc span { font-size: 1.2rem; line-height: 1; }
.bfs-cc i { font-size: .65rem; color: var(--bfa-t2); }
.bfs-search { position: relative; margin-bottom: 10px; }
.bfs-search i { position: absolute; top: 0; inset-inline-start: 14px; height: 48px; display: grid; place-items: center; color: var(--bfa-t2); }
.bfa .bfs-search input { width: 100%; height: 48px; padding: 0 14px; padding-inline-start: 40px; border-radius: 10px; border: 1px solid var(--bfa-field);
  background: transparent; color: var(--bfa-t1); font-size: .95rem; outline: none; font-family: inherit; text-align: start; }
.bfa .bfs-search input:focus { border-color: var(--bfa-gold-h); }
.bfs-list { max-height: min(52vh, 440px); overflow-y: auto; margin: 0 -8px; padding: 0 8px; overscroll-behavior: contain; }
.bfs-lh { color: var(--bfa-t2); font-size: .72rem; font-weight: 700; padding: 12px 4px 6px; }
.bfs-c { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--bfa-t1);
  cursor: pointer; font-family: inherit; font-size: .92rem; text-align: start; }
.bfs-c:hover { background: #1e2329; }
.bfs-c.on { background: rgba(240,185,11,.08); }
.bfs-c .f { font-size: 1.25rem; line-height: 1; }
.bfs-c .n { flex: 1; }
.bfs-c b { color: var(--bfa-t2); font-weight: 500; font-size: .85rem; }
.bfs-empty { text-align: center; color: var(--bfa-t2); padding: 24px 0; font-size: .86rem; }
.bfs-two { display: flex; gap: 10px; }
.bfs-two > div { flex: 1; min-width: 0; }
.bfa .bfs-two input, .bfa #bfsCity { text-align: start; }
.bfs-bio-ic { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; margin: 4px 0 18px; font-size: 2.4rem; color: var(--bfa-gold-h);
  background: rgba(240,185,11,.08); border: 1px solid rgba(240,185,11,.3); }
.bfs-bio-ic .bfp-face { width: 46px; height: 46px; }
.bfs-points { list-style: none; padding: 0; margin: -4px 0 22px; display: grid; gap: 10px; }
.bfs-points li { display: flex; align-items: center; gap: 10px; color: var(--bfa-t1); font-size: .86rem; }
.bfs-points i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #1e2329; color: var(--bfa-up); font-size: .8rem; flex: none; }
.bfs-later { width: 100%; height: 44px; margin-top: 8px; border: 0; background: transparent; color: var(--bfa-t2); font-weight: 600; font-size: .92rem; cursor: pointer; font-family: inherit; }
.bfs-later:hover { color: var(--bfa-t1); }
#profileCompletionPage.bfs-host { width: 100% !important; max-width: 425px !important; min-width: 0; margin: 8px auto 24px !important; }
#profileCompletionPage.bfs-host .bfa { margin: 0 auto; }
.bfa .bfs-phone input[type=tel] { background: transparent !important; color: var(--bfa-t1) !important; border: 1px solid var(--bfa-field) !important; border-radius: 10px !important;
  height: 48px; padding: 0 14px !important; font-size: 1rem !important; box-shadow: none !important; }
.bfa .bfs-phone input[type=tel]:focus { border-color: var(--bfa-gold-h) !important; }

/* copyright at the very end of the login / sign-up page */
.bf-copy { text-align: center; color: #5e6673; font-size: .72rem; margin: 22px 0 8px; direction: ltr; letter-spacing: .2px; }
