/* Auth pages (/signup, /login): a cinematic stage beside the form. Injected by the worker after btc-theme.css.
   Only .btc-auth-stage* selectors plus the two pseudo-elements it replaces. Motion respects prefers-reduced-motion and the site's Pause video setting (html[data-motion=off]). */
html body main#main > div:has(> .btc-auth-stage)::before, html body main#main > div:has(> .btc-auth-stage)::after { content: none; display: none; }
html body main#main > div:has(> .auth-brand) > .btc-auth-stage { grid-column: 1; grid-row: 1 / -1; align-self: start; position: sticky; top: var(--btc-bar); height: calc(100dvh - var(--btc-bar)); min-height: 620px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; color: #fff; background: var(--btc-ink); font-family: var(--btc-body); }

.btc-auth-stage__film { position: absolute; inset: 0; z-index: -2; margin: 0; }
.btc-auth-stage__film img, .btc-auth-stage__film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.btc-auth-stage::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 31, 63, .97) 0%, rgba(10, 31, 63, .86) 38%, rgba(10, 31, 63, .35) 70%, rgba(10, 31, 63, .2) 100%),
    linear-gradient(90deg, rgba(10, 31, 63, .55), rgba(10, 31, 63, 0) 60%); }
.btc-auth-stage::before { content: ''; position: absolute; left: 0; top: 0; width: 34%; height: 30%; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .22) 1.1px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 0 0, #000, transparent 70%); mask-image: radial-gradient(ellipse at 0 0, #000, transparent 70%); }

.btc-auth-stage__copy { position: relative; display: grid; gap: 22px; max-width: 46rem; padding: 40px clamp(32px, 5vw, 72px) clamp(36px, 5vw, 64px); }
.btc-auth-stage__kicker { margin: 0; display: flex; align-items: center; gap: 12px; font: 650 .9rem/1 var(--btc-body); letter-spacing: .08em; text-transform: uppercase; color: var(--btc-red-light); }
.btc-auth-stage__kicker::before { content: ''; width: 40px; height: 4px; border-radius: 2px; background: var(--btc-red); }
.btc-auth-stage__title { margin: 0; font: 700 clamp(2.4rem, 3.9vw, 4rem)/1.02 var(--btc-display); letter-spacing: -.035em; text-wrap: balance; color: #fff; }

.btc-auth-stage__points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .18); }
.btc-auth-stage__points li { margin: 0; padding: 16px 18px 0 0; font-size: .95rem; line-height: 1.45; color: #d3dceb; }
.btc-auth-stage__points li + li { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .18); }
.btc-auth-stage__points b { display: block; margin-bottom: 4px; font: 700 1.08rem/1.2 var(--btc-display); letter-spacing: -.01em; color: #fff; }

/* the product in one glance: a screened call */
.btc-auth-stage__demo { margin: 0; width: min(100%, 420px); display: grid; gap: 10px; padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.btc-auth-stage__top { display: flex; align-items: center; gap: 10px; font: 650 .9rem/1 var(--btc-body); color: #dfe7f2; }
.btc-auth-stage__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--btc-red-light); flex: none; }
.btc-auth-stage__line { margin: 0; padding: 11px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.4; }
.btc-auth-stage__line span { display: block; margin-bottom: 3px; font: 700 .8rem/1.2 var(--btc-body); letter-spacing: .02em; opacity: .85; }
.btc-auth-stage__line--ask { background: var(--btc-blue); margin-right: 32px; }
.btc-auth-stage__line--reply { background: #fff; color: var(--btc-ink); margin-left: 32px; }
.btc-auth-stage__choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btc-auth-stage__choice span { display: grid; place-items: center; min-height: 40px; border-radius: 999px; font: 650 .9rem/1 var(--btc-body); border: 1.5px solid rgba(255, 255, 255, .45); }
.btc-auth-stage__choice .is-go { background: var(--btc-red); border-color: var(--btc-red); }
.btc-auth-stage__fine { margin: 0; font-size: .875rem; color: #b9c6d8; }

@keyframes btcAuthPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 143, .7); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255, 122, 143, 0); } }
@keyframes btcAuthStep { 0%, 10% { opacity: 0; transform: translateY(8px) scale(.98); } 18%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes btcAuthRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion=off]) .btc-auth-stage__pulse { animation: btcAuthPulse 1.6s infinite; }
  html:not([data-motion=off]) .btc-auth-stage__line--reply { animation: btcAuthStep 9s .4s infinite both; }
  html:not([data-motion=off]) .btc-auth-stage__choice { animation: btcAuthStep 9s 1.4s infinite both; }
  html:not([data-motion=off]) .btc-auth-stage__copy > * { animation: btcAuthRise .8s cubic-bezier(.2, .7, .2, 1) both; }
  html:not([data-motion=off]) .btc-auth-stage__copy > :nth-child(2) { animation-delay: .08s; }
  html:not([data-motion=off]) .btc-auth-stage__copy > :nth-child(3) { animation-delay: .16s; }
  html:not([data-motion=off]) .btc-auth-stage__copy > :nth-child(4) { animation-delay: .24s; }
  html:not([data-motion=off]) .btc-auth-stage__copy > :nth-child(5) { animation-delay: .32s; }
}
/* The film is driven by /js/site.js: it plays only when the site's video setting is on and reduced motion is not requested. */

/* short desktop screens: the demo card yields first */
@media (min-width: 901px) and (max-height: 860px) { .btc-auth-stage__demo { display: none; } }
@media (min-width: 901px) and (max-width: 1240px) {
  .btc-auth-stage__points { grid-template-columns: 1fr; }
  .btc-auth-stage__points li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 12px; }
}

/* tablet and phone: the stage becomes a cinematic header above the form */
@media (max-width: 900px) {
  html body main#main > div:has(> .auth-brand) > .btc-auth-stage { grid-column: 1; grid-row: 1; position: relative; top: 0; height: auto; min-height: 0; }
  .btc-auth-stage__copy { padding: 120px 20px 56px; gap: 16px; }
  .btc-auth-stage__title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .btc-auth-stage__demo { display: none; }
  .btc-auth-stage__points { grid-template-columns: 1fr; }
  .btc-auth-stage__points li { padding: 10px 0 0; font-size: .92rem; }
  .btc-auth-stage__points li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 10px; }
  .btc-auth-stage__fine { display: none; }
}
@media (max-width: 600px) { .btc-auth-stage__points { display: none; } .btc-auth-stage__copy { padding: 96px 20px 52px; } }
/* narrow desktop/tablet stage: the kicker would wrap beside its rule, so the rule sits above it */
@media (min-width: 901px) and (max-width: 1240px) { .btc-auth-stage__kicker { flex-direction: column; align-items: flex-start; letter-spacing: .06em; line-height: 1.3; } }
