/* Cinematic sign-in: a tilted wall of real ZionSpeaks film covers under a dark see-through overlay,
   the brand lockup, the app screens and a frosted-glass form card. Layered on top of auth-premium.css. */
body.zs-auth-page {
  --zs-brand: #28f0b3;
  --zs-accent: #5eead4;
  background: #050708;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: clamp(32px, 5vw, 88px);
  padding: 140px max(4vw, calc((100vw - 1320px) / 2)) 64px;
}

/* Background: covers + overlay, fixed behind everything, slowly drifting. */
.zs-auth-cinema { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #050708; pointer-events: none; }
.zs-auth-cinema::before {
  content: ""; position: absolute; inset: -6%;
  background: url("./auth-collage.webp") center / cover no-repeat;
  filter: saturate(.9);
  animation: zsCinemaDrift 60s ease-in-out infinite alternate;
}
.zs-auth-cinema::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 72% 45%, rgba(5, 7, 8, .55), transparent 70%),
    linear-gradient(90deg, rgba(4, 6, 7, .94) 0%, rgba(4, 6, 7, .86) 38%, rgba(4, 6, 7, .66) 62%, rgba(4, 6, 7, .8) 100%),
    linear-gradient(180deg, rgba(4, 6, 7, .55) 0%, rgba(4, 6, 7, .35) 40%, rgba(4, 6, 7, .9) 100%);
}
@keyframes zsCinemaDrift { from { transform: scale(1.04) translate3d(-1.5%, -1%, 0); } to { transform: scale(1.08) translate3d(1.5%, 1%, 0); } }

/* Top bar sits over the artwork. */
.zs-auth-page .navbar .logo-word, .zs-auth-page .navbar .Plogo-word { color: #fff !important; }
.zs-auth-page .navbar { background: linear-gradient(180deg, rgba(4, 6, 7, .85), rgba(4, 6, 7, 0)) !important; border-bottom: 0 !important; box-shadow: none !important; }
.zs-auth-page .navbar.scrolling-active { background: rgba(4, 6, 7, .92) !important; backdrop-filter: blur(14px); }

/* Left: brand story. */
.zs-auth-page .auth-intro { max-width: 600px; padding: 24px 0; }
.zs-auth-page .auth-intro .zs-auth-logo { display: block; width: clamp(210px, 22vw, 300px); height: auto; margin: 0 0 28px; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .5)); }
.zs-auth-page .auth-intro h1 { font-size: clamp(40px, 4.6vw, 70px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; margin: 0 0 18px; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .55); }
.zs-auth-page .auth-intro h1 em { color: var(--zs-brand); font-style: normal; }
.zs-auth-page .auth-intro .zs-auth-pillars { margin: 0 0 18px; color: #d7dedb; font-size: clamp(14px, 1.2vw, 17px); font-weight: 600; letter-spacing: .01em; }
.zs-auth-page .auth-intro .zs-auth-pillars span { color: var(--zs-brand); margin: 0 .45em; opacity: .8; }
.zs-auth-page .auth-intro > p.zs-auth-lead { max-width: 470px; color: #b9c2bf; font-size: 15.5px; line-height: 1.75; margin: 0 0 22px; }
.zs-auth-page .auth-intro .zs-auth-phones {
  display: block; width: min(100%, 500px); height: auto; margin: 6px 0 0 -10px;
  image-rendering: auto;
}
.zs-auth-page .auth-intro .zs-auth-store { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #eef3f1; font-size: 13px; font-weight: 600; text-decoration: none; backdrop-filter: blur(8px); }
.zs-auth-page .auth-intro .zs-auth-store:hover { background: rgba(255, 255, 255, .1); }
.zs-auth-page .auth-intro .zs-auth-store svg { flex: 0 0 20px; }
.zs-auth-page .auth-support { color: #9fb0ab !important; }

/* Official-style store badges. */
.zs-auth-page .zs-auth-stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 14px; }
.zs-auth-page .zs-store-badge { position: relative; display: inline-flex; align-items: center; gap: 10px; min-width: 168px; height: 54px; padding: 0 16px 0 14px; border-radius: 12px; background: #000; border: 1px solid #a6a6a6; color: #fff; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.zs-auth-page a.zs-store-badge:hover { transform: translateY(-1px); border-color: #fff; }
.zs-auth-page .zs-store-logo { width: 24px; height: 27px; flex: 0 0 24px; }
.zs-auth-page .zs-store-badge span { display: grid; line-height: 1.05; }
.zs-auth-page .zs-store-badge small { font-size: 10.5px; font-weight: 500; letter-spacing: .02em; color: #e6e6e6; }
.zs-auth-page .zs-store-badge strong { font-size: 20px; font-weight: 600; letter-spacing: -.01em; font-family: -apple-system, "SF Pro Display", "Segoe UI", Roboto, sans-serif; }
.zs-auth-page .zs-store-badge.is-soon { cursor: default; }
.zs-auth-page .zs-store-badge.is-soon em { position: absolute; top: -9px; right: -8px; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #03201a; background: var(--zs-brand); border-radius: 999px; padding: 3px 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }

/* Right: frosted-glass card. */
.zs-auth-page .wrapper {
  background: rgba(14, 17, 18, .72) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 26px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
}
.zs-auth-page .form-box h2 { color: #fff; font-weight: 800; }
.zs-auth-page .auth-description { color: #aab6b2 !important; }
.zs-auth-page .input-box { background: rgba(255, 255, 255, .045) !important; border-color: rgba(255, 255, 255, .12) !important; border-radius: 14px !important; }
.zs-auth-page .input-box:focus-within { border-color: rgba(40, 240, 179, .55) !important; box-shadow: 0 0 0 3px rgba(40, 240, 179, .12) !important; }
.zs-auth-page .input-box .icon { color: #9fb0ab !important; }
.zs-auth-page .btn {
  background: var(--zs-brand) !important; color: #03201a !important; border: 0 !important;
  border-radius: 14px !important; font-weight: 800 !important; letter-spacing: .01em;
  box-shadow: 0 10px 30px rgba(40, 240, 179, .22) !important; transition: transform .15s ease, filter .15s ease;
}
.zs-auth-page .btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.zs-auth-page .remember-forgot a, .zs-auth-page .login-register a, .zs-auth-page #backToLoginLink { color: var(--zs-accent) !important; }
.zs-auth-page input[type="checkbox"] { accent-color: var(--zs-brand); }

/* Accent colour for form details: brand aqua instead of the old gold. */
.zs-auth-page .creator-select-trigger::after { color: var(--zs-accent); }
.zs-auth-page .visions-path > input, .zs-auth-page input[type=checkbox], .zs-auth-page input[type=radio] { accent-color: var(--zs-brand); }
.zs-auth-page .visions-path:has(input:checked) { border-color: rgba(40, 240, 179, .5); background: linear-gradient(110deg, rgba(40, 240, 179, .1), rgba(255, 255, 255, .03)); box-shadow: inset 3px 0 var(--zs-brand); }
.zs-auth-page .visions-path:has(input:checked) ion-icon { color: var(--zs-brand); }
.zs-auth-page .visions-path:focus-within, .zs-auth-page a:focus-visible, .zs-auth-page button:focus-visible { outline-color: var(--zs-brand); }
.zs-auth-page .input-box input:-webkit-autofill ~ label, .zs-auth-page .auth-support:hover { color: var(--zs-accent); }

@media (max-width: 900px) {
  body.zs-auth-page { grid-template-columns: minmax(0, 520px); padding: 104px 16px 40px; gap: 22px; }
  .zs-auth-page .auth-intro { text-align: left; padding: 0; }
  .zs-auth-page .auth-intro .zs-auth-logo { width: 200px; margin-bottom: 18px; }
  .zs-auth-page .auth-intro h1 { font-size: clamp(34px, 9vw, 46px); }
  .zs-auth-page .auth-intro .zs-auth-phones { display: none; }
  .zs-auth-cinema::after { background: linear-gradient(180deg, rgba(4, 6, 7, .78) 0%, rgba(4, 6, 7, .86) 45%, rgba(4, 6, 7, .95) 100%); }
}
@media (max-width: 900px) {
  /* Phones: brand + headline, then the card, then the store badges, centred and calm. */
  body.zs-auth-page { display: flex; flex-direction: column; align-items: stretch; }
  .zs-auth-page .auth-intro { display: contents; }
  .zs-auth-page .auth-intro > * { order: 0; }
  .zs-auth-page .wrapper { order: 1; }
  .zs-auth-page .zs-auth-stores { order: 2; justify-content: center; margin: 6px 0 0; }
  .zs-auth-page .auth-support { order: 3; text-align: center; display: block !important; margin-top: 8px; }
  .zs-auth-page .zs-auth-logo { margin: 0 auto 14px !important; }
  .zs-auth-page .auth-intro h1, .zs-auth-page .zs-auth-pillars, .zs-auth-page .zs-auth-lead { text-align: center; margin-left: auto !important; margin-right: auto !important; }
  .zs-auth-page .zs-auth-lead { font-size: 14px !important; margin-bottom: 6px !important; }
}
@media (max-width: 480px) {
  .zs-auth-page .zs-store-badge { min-width: 0; flex: 1 1 150px; height: 50px; justify-content: center; }
  .zs-auth-page .zs-store-badge strong { font-size: 18px; }
  .zs-auth-page .auth-intro .zs-auth-pillars span { margin: 0 .3em; }
  .zs-auth-page .wrapper { border-radius: 20px !important; }
}
@media (prefers-reduced-motion: reduce) { .zs-auth-cinema::before { animation: none; } }

/* ---------- Step-by-step registration ---------- */
.zs-auth-page .zs-reg-progress { display: grid; gap: 10px; margin: 4px 0 18px; }
.zs-auth-page .zs-reg-count { color: var(--zs-accent); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.zs-auth-page .zs-reg-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.zs-auth-page .zs-reg-bars i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); transition: background .35s ease; }
.zs-auth-page .zs-reg-bars i.on { background: linear-gradient(90deg, #28f0b3, #5eead4); box-shadow: 0 0 12px rgba(40, 240, 179, .35); }
.zs-auth-page .zs-reg-step[hidden] { display: none !important; }
.zs-auth-page .zs-reg-step.is-active { animation: zsStepIn .32s ease both; }
@keyframes zsStepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.zs-auth-page .zs-reg-step .input-row { margin-top: 0; }
.zs-auth-page .zs-reg-step .visions-path-title { margin-top: 0; }
.zs-auth-page .zs-reg-step .grid-2.zs-reg-single { grid-template-columns: 1fr; }
.zs-auth-page .zs-reg-step .zs-fieldset { margin: 18px 0 16px !important; }
.zs-auth-page .zs-reg-step .remember-forgot { margin-top: 14px; }
.zs-auth-page .zs-reg-nav { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.zs-auth-page .zs-reg-nav .btn { flex: 1; margin: 0 !important; }
.zs-auth-page .zs-reg-nav .btn[hidden], .zs-auth-page .zs-reg-back[hidden] { display: none !important; }
.zs-auth-page .zs-reg-back { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #dfe7e4; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.zs-auth-page .zs-reg-back:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); }
.zs-auth-page .zs-reg-nav button:disabled { opacity: .6; cursor: progress; }
.zs-auth-page .zs-reg-stepped .login-register { margin-top: 16px; }

/* Verify email */
.zs-auth-page .zs-verify { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 6px 0 2px; }
.zs-auth-page .zs-verify-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(40, 240, 179, .1); border: 1px solid rgba(40, 240, 179, .28); color: var(--zs-brand); font-size: 28px; }
.zs-auth-page .zs-verify-to { margin: 0; color: #b9c4c0; font-size: 14.5px; line-height: 1.5; word-break: break-word; }
.zs-auth-page .zs-verify-to strong { color: #fff; }
.zs-auth-page .zs-code { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); gap: 9px; justify-content: center; width: 100%; }
.zs-auth-page .zs-code input { width: 100%; height: 60px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #fff; text-align: center; font: 800 26px/1 -apple-system, "Segoe UI", Roboto, sans-serif; caret-color: var(--zs-brand); outline: none; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; padding: 0; }
.zs-auth-page .zs-code input:focus { border-color: rgba(40, 240, 179, .7); box-shadow: 0 0 0 3px rgba(40, 240, 179, .16); background: rgba(40, 240, 179, .06); }
.zs-auth-page .zs-code input.filled { border-color: rgba(40, 240, 179, .45); }
.zs-auth-page .zs-code.is-error input { border-color: rgba(255, 107, 107, .75); animation: zsShake .35s ease; }
@keyframes zsShake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.zs-auth-page .zs-verify-actions { display: flex; align-items: center; gap: 10px; color: #6f7d79; font-size: 13.5px; }
.zs-auth-page .zs-link-btn { background: none; border: 0; padding: 4px 2px; color: var(--zs-accent); font: inherit; font-weight: 700; cursor: pointer; }
.zs-auth-page .zs-link-btn:disabled { color: #7d8b87; cursor: default; }
.zs-auth-page .zs-link-btn:not(:disabled):hover { text-decoration: underline; }
.zs-auth-page .zs-verify-note { margin: 0; max-width: 340px; color: #8a9894; font-size: 12.5px; line-height: 1.55; }
@media (max-width: 420px) {
  .zs-auth-page .zs-code { gap: 6px; }
  .zs-auth-page .zs-code input { height: 52px; font-size: 22px; border-radius: 12px; }
  .zs-auth-page .zs-reg-back span { display: none; }
}
