/* BackComTrader app — public auth pages (login, register, forgot/reset, verify, complete profile, callbacks).
   OWNER: app builder 1. Geometry from the app.backcom.io auth screens (REA screens/auth-*), gold re-tone. */
body.au-page { min-height: 100vh; background: #070708; overflow-x: hidden; }
html[data-theme=light] body.au-page { background: #F2F1EC; }
.au-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(120% 70% at 50% -10%, rgb(var(--ap-p-rgb) / .0), transparent); }
.au-bg i { position: absolute; border-radius: 50%; filter: blur(80px); }
.au-bg i:nth-child(1) { left: -12%; top: -30%; width: 60vw; height: 60vh; background: radial-gradient(closest-side, rgb(var(--ap-p-rgb) / .75), transparent); }
.au-bg i:nth-child(2) { left: 30%; top: -35%; width: 70vw; height: 55vh; background: radial-gradient(closest-side, rgb(var(--ap-p-rgb) / .38), transparent); }
.au-bg i:nth-child(3) { right: -15%; top: 10%; width: 45vw; height: 60vh; background: radial-gradient(closest-side, rgb(201 148 0 / .28), transparent); }
html[data-skin=source] .au-bg i:nth-child(1) { background: radial-gradient(closest-side, rgb(141 255 8 / .7), transparent); }
html[data-skin=source] .au-bg i:nth-child(2) { background: radial-gradient(closest-side, rgb(16 185 129 / .75), transparent); }
html[data-skin=source] .au-bg i:nth-child(3) { background: radial-gradient(closest-side, rgb(16 185 129 / .35), transparent); }
html[data-theme=light] .au-bg i { opacity: .45; }

.au-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem 0; }
.au-langbtn { display: flex; align-items: center; gap: .5rem; padding: .375rem .25rem; font-size: .9375rem; font-weight: 500; color: #E6E5E0; }
html[data-theme=light] .au-langbtn { color: #26241F; }
.au-langbtn .ap-ic { width: 16px; height: 16px; opacity: .7; }
.au-langbtn .ap-flag { width: 24px; height: 16px; border-radius: 2px; box-shadow: none; }
.au-back { display: inline-flex; align-items: center; gap: .5rem; font-size: 1rem; color: #A9A8A3; }
.au-back-ic { transform: rotate(180deg); width: 22px !important; height: 22px !important; }

.au-wrap { position: relative; z-index: 2; display: flex; min-height: calc(100vh - 3.5rem); align-items: center; justify-content: center; padding: 1rem 1rem 9rem; box-sizing: border-box; }
.au-card { position: relative; width: 100%; max-width: 1024px; border-radius: 1rem; border: 1px solid var(--ap-line); overflow: hidden; box-shadow: 0 30px 80px -30px rgb(0 0 0 / .9); background: linear-gradient(180deg, #19191b, #121213); color: var(--ap-text); }
html[data-theme=light] .au-card { background: #fff; box-shadow: 0 30px 80px -40px rgb(18 17 16 / .45); }
.au-card.is-split { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .au-card.is-split { grid-template-columns: 1fr 1fr; min-height: 720px; } }
.au-card.is-single { max-width: 448px; border-color: rgb(var(--ap-p-rgb) / .35); box-shadow: 0 0 0 1px rgb(var(--ap-p-rgb) / .05), 0 30px 80px -30px rgb(0 0 0 / .9), 8px 0 30px -18px rgb(var(--ap-p-rgb) / .6); }
html[data-theme=light] .au-card.is-single { box-shadow: 0 30px 80px -40px rgb(18 17 16 / .45); }
.au-side { position: relative; display: flex; flex-direction: column; justify-content: center; }
.au-side::before { content: ""; position: absolute; left: 50%; top: 0; width: 70%; height: 160px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(var(--ap-p-rgb) / .1), transparent); pointer-events: none; }
.au-panel { position: relative; padding: 2.5rem 2.5rem 2.5rem; box-sizing: border-box; width: 100%; max-width: 512px; margin: 0 auto; }
.au-card.is-single .au-panel { padding: 2.25rem 2.5rem 2.5rem; }
@media (max-width: 639px) { .au-panel, .au-card.is-single .au-panel { padding: 1.75rem 1.25rem 2rem; } }
.au-logo { display: flex; justify-content: center; margin-bottom: 2rem; }
.au-logo img { height: 23px; width: auto; }
.au-logo-l { display: none; } html[data-theme=light] .au-logo-l { display: block; } html[data-theme=light] .au-logo-d { display: none; }
.au-title { text-align: center; font-size: 1.5rem; line-height: 2rem; font-weight: 700; letter-spacing: -.02em; color: var(--ap-text); }
.au-sub { margin-top: .75rem !important; text-align: center; font-size: .9375rem; color: var(--ap-g400); }
.au-lead { font-size: .9375rem; line-height: 1.45; color: var(--ap-g400); }
.au-form { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
[data-register].au-form { margin-top: 1.5rem; }
.au-f { display: flex; flex-direction: column; }
.au-in { height: 2.5rem; border-radius: .375rem; background: rgb(255 255 255 / .03); font-size: .9375rem; }
.au-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.au-pw { position: relative; }
.au-pw .au-in { padding-right: 2.75rem; }
.au-eye { position: absolute; right: .5rem; top: 50%; display: flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; transform: translateY(-50%); color: var(--ap-g500); }
.au-eye .ap-ic { width: 16px; height: 16px; }
.au-eye-off { display: none !important; } .au-eye.is-on .au-eye-on { display: none !important; } .au-eye.is-on .au-eye-off { display: block !important; }
.au-sugwrap { position: relative; }
.au-clear { position: absolute; right: .625rem; top: 50%; display: flex; transform: translateY(-50%); color: #ef4444; }
.au-clear .ap-ic { width: 16px; height: 16px; }
.au-sug { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; overflow: hidden; border-radius: .5rem; border: 1px solid var(--ap-line); background: #141416; box-shadow: 0 16px 40px -12px rgb(0 0 0 / .8); }
html[data-theme=light] .au-sug { background: #fff; }
.au-sug li { display: flex; align-items: center; gap: .75rem; padding: .625rem .875rem; font-size: .9375rem; color: var(--ap-g200); cursor: pointer; }
.au-sug li svg { width: 16px; height: 16px; color: var(--ap-g500); flex-shrink: 0; }
.au-sug li:hover, .au-sug li[aria-selected=true] { background: var(--ap-w5); color: var(--ap-text); }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: -.25rem; }
.au-switch { display: inline-flex; align-items: center; gap: .625rem; font-size: .9375rem; color: var(--ap-g200); cursor: pointer; }
.au-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.au-switch-t { position: relative; width: 36px; height: 20px; border-radius: 9999px; background: #3A3A40; transition: background .2s; flex-shrink: 0; }
.au-switch-t::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #0b0b0c; transition: transform .2s; box-shadow: 0 1px 2px rgb(0 0 0 / .4); }
.au-switch input:checked + .au-switch-t { background: var(--ap-p); }
.au-switch input:focus-visible + .au-switch-t { outline: 2px solid var(--ap-p); outline-offset: 2px; }
.au-switch input:checked + .au-switch-t::after { transform: translateX(16px); }
html[data-theme=light] .au-switch-t { background: #D2D0C8; } html[data-theme=light] .au-switch-t::after { background: #fff; }
.au-link { font-size: .9375rem; font-weight: 600; color: var(--ap-pt); background: none; border: 0; cursor: pointer; padding: 0; }
.au-link:hover { text-decoration: underline; }
.au-link.is-muted { color: var(--ap-g400); font-weight: 500; text-align: center; }
.au-submit { height: 2.75rem; width: 100%; border-radius: .5rem; font-size: .9375rem; }
.au-or { display: flex; align-items: center; gap: .75rem; color: var(--ap-g500); font-size: .8125rem; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--ap-line); }
.au-or.is-text { margin: 1.25rem 0 0; }
.au-google { display: flex; height: 2.75rem; width: 100%; align-items: center; justify-content: center; gap: .75rem; border-radius: .5rem; border: 1px solid rgb(0 0 0 / .08); background: #F5F5F2; font-size: .9375rem; font-weight: 500; color: #1f1f1f; transition: background .15s; cursor: pointer; }
.au-google:hover { background: #fff; }
.au-g-ic { width: 18px !important; height: 18px !important; }
[data-auth=register] .au-google { margin-top: 2rem; }
.au-alt { text-align: center; font-size: .9375rem; color: var(--ap-g400); }
.au-alt a { font-weight: 600; color: var(--ap-pt); }
.au-alt.is-sm { font-size: .8125rem; margin-top: -.5rem; }
.au-alt a.is-muted { color: var(--ap-g400); font-weight: 500; }
.au-alert { margin-top: 1.25rem; display: flex; align-items: flex-start; gap: .625rem; border-radius: .625rem; border: 1px solid rgb(var(--ap-red-rgb) / .35); background: rgb(var(--ap-red-rgb) / .08); padding: .75rem .875rem; font-size: .875rem; color: var(--ap-text); }
.au-alert.is-ok { border-color: rgb(52 211 153 / .35); background: rgb(52 211 153 / .08); }
.au-alert.is-warn { border-color: rgb(var(--ap-amber-rgb) / .35); background: rgb(var(--ap-amber-rgb) / .08); flex-wrap: wrap; }
.au-alert p { flex: 1; min-width: 0; }
.au-alert-act { font-size: .8125rem; font-weight: 600; color: var(--ap-pt); text-decoration: underline; }
.au-demo { margin-top: 1rem !important; border-radius: .5rem; border: 1px dashed rgb(var(--ap-p-rgb) / .45); background: rgb(var(--ap-p-rgb) / .06); padding: .5rem .75rem; font-size: .75rem; line-height: 1.45; color: var(--ap-g300); }
.au-hint { margin-top: .375rem !important; font-size: .75rem; color: var(--ap-g500); }
.au-code { text-align: center; letter-spacing: .4em; font-family: var(--font-mono); font-size: 1.125rem; height: 3rem; }
.au-2fa-ic { display: flex; width: 3.25rem; height: 3.25rem; margin: 0 auto 1rem; align-items: center; justify-content: center; border-radius: 1rem; background: rgb(var(--ap-p-rgb) / .12); color: var(--ap-pt); }
.au-2fa-ic .ap-ic { width: 26px; height: 26px; }
/* register */
.au-phone { display: flex; height: 2.75rem; border-radius: .5rem; border: 1px solid var(--ap-line); background: rgb(255 255 255 / .03); overflow: hidden; }
.au-phone:focus-within { border-color: rgb(var(--ap-p-rgb) / .55); box-shadow: 0 0 0 3px rgb(var(--ap-p-rgb) / .15); }
html[data-theme=light] .au-phone { background: #fff; border-color: rgb(0 0 0 / .15); }
.au-cc { position: relative; display: flex; align-items: center; gap: .5rem; padding: 0 .75rem; border-right: 1px solid var(--ap-line); font-size: .9375rem; color: var(--ap-text); cursor: pointer; flex-shrink: 0; }
.au-cc .ap-ic { width: 14px; height: 14px; color: var(--ap-g500); }
.au-cc select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.au-cc-flag { display: inline-flex; min-width: 22px; height: 16px; align-items: center; justify-content: center; border-radius: 2px; background: #DA251D; color: #FFDD00; font-size: 9px; font-weight: 800; letter-spacing: .02em; }
.au-phone-in { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 .875rem; font: inherit; font-size: .9375rem; color: var(--ap-text); outline: none; }
.au-phone-in::placeholder { color: var(--ap-g500); }
.au-at { position: relative; }
.au-at > span { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); color: var(--ap-g400); font-size: .9375rem; }
.au-at .au-in { padding-left: 2rem; }
.au-step { display: flex; flex-direction: column; gap: 1.25rem; }
.au-step-t { font-size: 1rem; font-weight: 600; color: var(--ap-text); margin-bottom: -.75rem !important; }
.au-step-d { font-size: .8125rem; color: var(--ap-g400); }
.au-rules { display: grid; grid-template-columns: 1fr 1fr; gap: .375rem .75rem; margin-top: -.5rem; }
.au-rules li { display: flex; align-items: center; gap: .375rem; font-size: .75rem; color: var(--ap-g500); transition: color .15s; }
.au-rules .ap-ic { width: 14px; height: 14px; opacity: .35; }
.au-rules li.is-ok { color: var(--ap-pt); } .au-rules li.is-ok .ap-ic { opacity: 1; }
.au-check { display: flex; align-items: flex-start; gap: .625rem; font-size: .875rem; color: var(--ap-g300); cursor: pointer; }
.au-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.au-check-b { display: flex; width: 18px; height: 18px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 4px; border: 1px solid var(--ap-edge, rgb(255 255 255 / .25)); margin-top: 1px; color: transparent; transition: background .15s, border-color .15s; }
.au-check-b .ap-ic { width: 13px; height: 13px; }
.au-check input:checked + .au-check-b { background: var(--ap-p); border-color: var(--ap-p); color: var(--ap-p-ink); }
.au-check input:focus-visible + .au-check-b { outline: 2px solid var(--ap-p); outline-offset: 2px; }
.au-dots { display: flex; justify-content: center; gap: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--ap-line); }
.au-dots i { width: 2.5rem; height: 4px; border-radius: 9999px; background: var(--ap-w10); transition: background .2s; }
.au-dots i.is-on { background: var(--ap-p); }
.au-btns { display: flex; gap: .5rem; }
.au-btns .au-submit { flex: 1; }
.au-btns .ap-btn:disabled { background-image: none; background: rgb(var(--ap-p-rgb) / .45); color: rgb(18 17 16 / .75) !important; opacity: 1; }
html[data-skin=source] .au-btns .ap-btn:disabled { background: #4d8a06; }
.au-prev { height: 2.75rem; border-radius: .5rem; padding: 0 1.25rem; }
.au-seg { display: flex; gap: .5rem; }
.au-seg label { flex: 1; }
.au-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.au-seg span { display: flex; height: 2.5rem; align-items: center; justify-content: center; border-radius: .5rem; border: 1px solid var(--ap-line); font-size: .875rem; color: var(--ap-g300); cursor: pointer; }
.au-seg input:checked + span { border-color: rgb(var(--ap-p-rgb) / .6); background: rgb(var(--ap-p-rgb) / .1); color: var(--ap-text); }
/* forgot done state */
.au-done { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
.au-done-ic { display: flex; width: 3.25rem; height: 3.25rem; align-items: center; justify-content: center; border-radius: 1rem; background: rgb(var(--ap-p-rgb) / .12); color: var(--ap-pt); }
.au-done-ic .ap-ic { width: 26px; height: 26px; }
.au-done-t { font-size: 1.125rem; font-weight: 700; color: var(--ap-text); }
.au-done-d { font-size: .875rem; color: var(--ap-g300); }
.au-done-tip { font-size: .75rem; color: var(--ap-g500); }
.au-resend { width: 100%; height: 2.75rem; }

/* hero (right half, >= 1024 px) */
.au-hero { position: relative; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 2rem 2rem; overflow: hidden; background: #050505; text-align: center; isolation: isolate; color: #F7F6F2; }
@media (min-width: 1024px) { .au-hero { display: flex; } }
.au-hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.au-hero-fx i { position: absolute; display: block; }
.au-hero-fx i:nth-child(1) { left: -10%; top: -18%; width: 70%; height: 45%; background: linear-gradient(140deg, rgb(var(--ap-p-rgb) / .85), rgb(var(--ap-p-rgb) / 0) 60%); transform: skewX(-24deg); filter: blur(2px); clip-path: polygon(0 0, 100% 0, 30% 100%, 0 70%); }
.au-hero-fx i:nth-child(2) { left: 18%; top: 30%; width: 64%; height: 42%; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--ap-p-rgb) / .45), transparent); filter: blur(30px); transform: rotate(-35deg); }
.au-proof { display: inline-flex; align-items: center; gap: .625rem; border-radius: 9999px; border: 1px solid rgb(255 255 255 / .12); background: rgb(0 0 0 / .55); padding: .5rem 1.125rem .5rem .5rem; font-size: .875rem; box-shadow: 0 0 0 1px rgb(var(--ap-p-rgb) / .05), 0 10px 30px -10px rgb(var(--ap-p-rgb) / .35); }
.au-proof img { width: 28px; height: 28px; }
.au-proof b { font-weight: 700; color: #F7F6F2; }
.au-hero-img img { width: 300px; height: 300px; object-fit: contain; margin: 1rem auto .5rem; filter: drop-shadow(0 20px 40px rgb(0 0 0 / .6)); }
.au-hl { display: flex; flex-direction: column; font-size: 2.25rem; line-height: 1; font-weight: 800; letter-spacing: -.045em; text-transform: uppercase; color: #F7F6F2; }
.au-hl .is-accent { color: var(--ap-p); }
.au-hero-p { margin-top: 1.25rem !important; max-width: 19rem; font-size: .9375rem; line-height: 1.55; color: #E6E5E0; }
.au-partners-t { margin-top: 2rem !important; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #A9A8A3; }
.au-partners { margin-top: 1rem; width: 100%; max-width: 420px; overflow: hidden; }
.au-partners-track { display: flex; width: max-content; }
.au-partners-track > div { display: flex; align-items: center; gap: 2.25rem; padding-right: 2.25rem; }
.au-partners img { height: 22px; width: auto; max-width: 96px; object-fit: contain; filter: grayscale(1) brightness(1.9) contrast(.8); opacity: .75; }

/* mobile intro step (< 1024 px) */
.au-intro { display: none; }
@media (max-width: 1023px) {
  .au-page .au-wrap { align-items: flex-start; padding-top: 0; }
  .au-card.is-split { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  html[data-theme=light] .au-card.is-split { background: transparent; box-shadow: none; }
  .au-card.is-split .au-side::before { display: none; }
  .au-card.is-split .au-panel { padding: 1rem .5rem 2rem; }
  .is-intro .au-intro { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .5rem .75rem 2rem; }
  .is-intro [data-panel] { display: none; }
  .au-intro-img img { width: 240px; height: 240px; object-fit: contain; }
  .au-hl.is-intro { margin-top: 1.25rem; font-size: 1.875rem; }
  html[data-theme=light] .au-hl.is-intro { color: #121110; }
  html[data-theme=light] .au-intro .au-hero-p { color: #3A3833; }
  .au-intro-btn { margin-top: 2.5rem; width: 100%; max-width: 22rem; height: 3rem; border-radius: .75rem; font-size: 1rem; box-shadow: 0 10px 30px -12px rgb(var(--ap-p-rgb) / .8); }
  .au-intro .au-alt { margin-top: 1.25rem; }
}
.au-page .bc-ck-bar { z-index: 1200; }

/* busy pages (google callback, logout, root) */
.au-busy { display: flex; flex-direction: column; align-items: center; gap: 1rem; color: var(--ap-g300); font-size: .9375rem; }
.au-spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgb(var(--ap-p-rgb) / .2); border-top-color: var(--ap-p); animation: au-spin .8s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
