/* X Dimension — login / register / password pages ("city at the hour" scene).
   Everything is scoped to body.xa so the app's own styles are not affected. */
body.xa {
  --xa-pink: #e0479a; --xa-pink2: #c3337b; --xa-violet: #7c5cff; --xa-navy: #0f1430;
  --xa-glass: rgba(16, 20, 46, .62); --xa-line: rgba(255, 255, 255, .14);
  --xa-text: #f3f4fb; --xa-muted: #b9bdd6;
  margin: 0; min-height: 100vh; font-family: Inter, system-ui, sans-serif; color: var(--xa-text);
  background: var(--xa-navy); overflow-x: hidden;
}
body.xa *, body.xa *::before, body.xa *::after { box-sizing: border-box; }

/* ---------- sky (the phase sets the colours) ---------- */
.xa-scene { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.xa-scene[data-phase="dawn"]  { --s1:#2b2a5e; --s2:#b85c8f; --s3:#ffb38a; --orb:#ffd7a8; --orbY:62%; --orbX:72%; --lit:.55; --star:0;   --haze:#ff9f8a; }
.xa-scene[data-phase="day"]   { --s1:#3d7be0; --s2:#7fb5f5; --s3:#d9ecff; --orb:#fff4c2; --orbY:18%; --orbX:62%; --lit:.12; --star:0;   --haze:#ffffff; }
.xa-scene[data-phase="dusk"]  { --s1:#2a1f5c; --s2:#a8327a; --s3:#ff8a5c; --orb:#ffb36b; --orbY:66%; --orbX:30%; --lit:.75; --star:.35; --haze:#ff6aa8; }
.xa-scene[data-phase="night"] { --s1:#070a1f; --s2:#141a45; --s3:#3b2a6b; --orb:#e9ecff; --orbY:16%; --orbX:78%; --lit:1;   --star:1;   --haze:#7c5cff; }
.xa-sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 55%, var(--s3) 100%); transition: background 1.2s; }
.xa-orb { position: absolute; left: var(--orbX); top: var(--orbY); width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff 0, var(--orb) 45%, transparent 70%);
  box-shadow: 0 0 80px 30px color-mix(in srgb, var(--orb) 45%, transparent); transition: all 1.4s cubic-bezier(.4,.1,.2,1); }
.xa-stars { position: absolute; inset: 0 0 40% 0; opacity: var(--star); transition: opacity 1.2s; }
.xa-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: xa-tw 3s infinite ease-in-out; }
@keyframes xa-tw { 50% { opacity: .25; } }
.xa-haze { position: absolute; left: -10%; right: -10%; bottom: 16%; height: 40%;
  background: radial-gradient(60% 60% at 50% 100%, color-mix(in srgb, var(--haze) 40%, transparent), transparent 70%); transition: background 1.2s; }

/* ---------- city ---------- */
.xa-city { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; }
.xa-city svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.xa-city .win { fill: #ffd9a8; opacity: calc(var(--lit) * .9); transition: opacity 1.2s; }
.xa-city .win.p { fill: #ff9fcf; }
.xa-city .win.off { opacity: calc(var(--lit) * .15); }
.xa-road { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(180deg, #0a0e24, #05071a); }
.xa-road::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 28px, transparent 28px 60px); animation: xa-lane 2.4s linear infinite; }
@keyframes xa-lane { to { background-position: -60px 0; } }
.xa-car { position: absolute; bottom: 12px; width: 46px; height: 3px; border-radius: 3px; }
.xa-car.a { background: linear-gradient(90deg, transparent, #ffe7b0); animation: xa-drive 7s linear infinite; }
.xa-car.b { background: linear-gradient(270deg, transparent, #ff6a8f); bottom: 26px; animation: xa-drive2 9s linear infinite 1.5s; }
.xa-car.c { background: linear-gradient(90deg, transparent, #ffe7b0); animation: xa-drive 11s linear infinite 4s; }
@keyframes xa-drive { from { left: -60px; } to { left: 105%; } }
@keyframes xa-drive2 { from { left: 105%; } to { left: -60px; } }

/* floating event pins */
.xa-pin { position: absolute; display: flex; gap: 9px; align-items: center; padding: 8px 13px 8px 9px; border-radius: 14px;
  background: rgba(12,16,40,.72); border: 1px solid var(--xa-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  animation: xa-float 6s ease-in-out infinite, xa-pop .7s cubic-bezier(.2,1.4,.4,1) both; }
.xa-pin b { display: block; font-weight: 600; font-size: 13px; }
.xa-pin small { display: block; color: var(--xa-muted); font-size: 11.5px; }
.xa-pin .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; }
.xa-pin::after { content: ""; position: absolute; left: 22px; bottom: -7px; width: 12px; height: 12px; background: inherit;
  border-right: 1px solid var(--xa-line); border-bottom: 1px solid var(--xa-line); transform: rotate(45deg); border-radius: 0 0 3px 0; }
@keyframes xa-float { 50% { transform: translateY(-8px); } }
@keyframes xa-pop { from { opacity: 0; transform: translateY(14px) scale(.9); } }
.xa-pin.p1 { left: 5%; bottom: 21%; animation-delay: 0s, .4s; }
.xa-pin.p2 { left: 47%; top: 24%; animation-delay: 1.2s, 1.1s; }
.xa-pin.p3 { left: 49%; top: 47%; animation-delay: 2.4s, 1.8s; }

/* ---------- top bar ---------- */
.xa-top { position: absolute; left: 56px; right: 56px; top: 28px; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.xa-logo { height: 34px; width: auto; display: block; }
.xa-clock { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--xa-muted); }
.xa-dial { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid var(--xa-line); gap: 2px; }
.xa-dial button { border: 0; background: transparent; color: var(--xa-muted); font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.xa-dial button.on { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- layout ---------- */
.xa-wrap { position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, 460px);
  gap: 40px; padding: 96px 56px 56px; align-items: center; }
.xa-hero { align-self: start; margin-top: calc(15vh - 62px); max-width: 660px; }
.xa-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #ffd1e6; padding: 6px 12px; border-radius: 999px; background: rgba(224,71,154,.16); border: 1px solid rgba(224,71,154,.35); }
.xa-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--xa-pink); box-shadow: 0 0 0 3px rgba(224,71,154,.25); }
.xa-h1 { font-family: "Inter Display", "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: clamp(48px, 6.2vw, 92px); white-space: nowrap; line-height: .95;
  letter-spacing: -.045em; margin: 16px 0 14px; color: #fff; text-shadow: 0 6px 40px rgba(0,0,0,.25); }
.xa-h1 span { background: linear-gradient(90deg, #fff 10%, #ffc2e0 60%, #c9b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xa-lede { font-size: 17px; color: #e6e7f3; line-height: 1.5; margin: 0 0 22px; max-width: 520px; }
.xa-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.xa-stat { display: flex; gap: 10px; align-items: baseline; padding: 10px 16px; border-radius: 14px; background: rgba(10,14,36,.45);
  border: 1px solid var(--xa-line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.xa-stat b { font-family: "Inter Display", "Inter Tight", Inter, sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.xa-stat span { font-size: 12.5px; color: var(--xa-muted); }

/* day: the sky is light, so the headline goes dark */
.xa-scene[data-phase="day"] ~ .xa-wrap .xa-lede { color: #0f1430; }
.xa-scene[data-phase="day"] ~ .xa-wrap .xa-h1 { color: #0f1430; text-shadow: none; }
.xa-scene[data-phase="day"] ~ .xa-wrap .xa-h1 span { background: linear-gradient(90deg, #0f1430 10%, #c3337b 70%); -webkit-background-clip: text; background-clip: text; }

/* ---------- glass card ---------- */
.xa-card { position: relative; padding: 30px 30px 22px; border-radius: 24px; background: var(--xa-glass); border: 1px solid var(--xa-line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; color: var(--xa-text); }
.xa-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--xa-pink), var(--xa-violet), #3ec6ff); }
.xa-spot { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(224,71,154,.22), transparent 65%);
  left: var(--mx, 70%); top: var(--my, -20%); transform: translate(-50%, -50%); pointer-events: none; transition: left .15s, top .15s; }
.xa-secure { position: absolute; right: 20px; top: 22px; display: inline-flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #9ef0c0; padding: 5px 10px; border-radius: 999px; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); }
.xa-secure svg { width: 12px; height: 12px; }
body.xa .xa-card a { color: #ffc2e0; }
body.xa .xa-card .alert { position: relative; margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45;
  background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.35); color: #c9f7dc; }
body.xa .xa-card .xa-secure + .alert { margin-top: 40px; }
body.xa .xa-card .pt-btn { color: #c9cbe0; }
body.xa .xa-card .pt-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
body.xa .xa-card .alert-danger { background: rgba(239,68,68,.14); border-color: rgba(248,113,113,.45); color: #ffd0d0; }

/* titles used by every auth page */
body.xa .xa-card .auth-wrap, body.xa .xa-card .auth-card { all: unset; display: block; }
body.xa .xa-card .auth-card[style] { text-align: inherit !important; }
body.xa .xa-card .auth-title, body.xa .xa-card h2.auth-title { position: relative; font-family: "Inter Display", "Inter Tight", Inter, sans-serif; font-size: 32px; font-weight: 800;
  letter-spacing: -.03em; margin: 4px 0 4px; padding-right: 96px; color: #fff; line-height: 1.15; }
body.xa .xa-card .auth-sub { position: relative; color: var(--xa-muted); font-size: 14px; margin: 0 0 22px; }

/* floating-label fields (login) */
.xa-f { position: relative; margin-bottom: 14px; }
.xa-f input { width: 100%; height: 58px; padding: 22px 64px 8px 46px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  color: #fff; font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.xa-f input:focus { border-color: var(--xa-pink); box-shadow: 0 0 0 4px rgba(224,71,154,.22); background: rgba(255,255,255,.09); }
.xa-f input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #262a52 inset; caret-color: #fff; }
.xa-f label { position: absolute; left: 46px; top: 19px; color: var(--xa-muted); font-size: 14.5px; pointer-events: none; transition: all .15s; margin: 0; font-weight: 400; }
.xa-f input:focus + label, .xa-f input:not(:placeholder-shown) + label, .xa-f input:-webkit-autofill + label { top: 9px; font-size: 11.5px; color: #ffc2e0; }
.xa-f .fi { position: absolute; left: 15px; top: 19px; width: 20px; height: 20px; color: #c9cbe0; pointer-events: none; }
.xa-f .eye { position: absolute; right: 10px; top: 12px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,.14);
  background: transparent; color: #e6e7f3; font: inherit; font-size: 12.5px; cursor: pointer; }
.xa-f .eye:hover { background: rgba(255,255,255,.08); }
.xa-f.bad input { border-color: rgba(248,113,113,.7); }
.xa-caps { display: none; gap: 6px; align-items: center; font-size: 12.5px; color: #ffd38a; margin: -6px 0 12px; }
.xa-caps.on { display: flex; }
.xa-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: #e6e7f3; margin: 6px 0 18px; }
.xa-row label { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-weight: 400; font-size: 13.5px; color: #e6e7f3; }
.xa-row a { text-decoration: none; border-bottom: 1px dashed rgba(255,194,224,.5); }
.xa-row input { accent-color: var(--xa-pink); width: 16px; height: 16px; margin: 0; }

/* the main button (also restyles .btn-brand on register / forgot / reset) */
.xa-btn, body.xa .xa-card .btn-brand { position: relative; display: block; width: 100%; height: 54px; border: 0; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 700;
  color: #fff; cursor: pointer; background: linear-gradient(90deg, var(--xa-pink2), var(--xa-pink) 45%, var(--xa-violet));
  box-shadow: 0 14px 30px -12px rgba(224,71,154,.7); overflow: hidden; }
.xa-btn::after, body.xa .xa-card .btn-brand::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: xa-shine 3.5s infinite; }
.xa-btn:hover, body.xa .xa-card .btn-brand:hover { filter: brightness(1.06); color: #fff; }
.xa-btn[disabled] { opacity: .75; cursor: wait; }
@keyframes xa-shine { 60%, 100% { transform: translateX(100%); } }
.xa-alt { position: relative; text-align: center; color: var(--xa-muted); font-size: 13.5px; margin: 16px 0 14px; }
.xa-alt a { color: #fff; font-weight: 600; text-decoration: none; }
.xa-tip { position: relative; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #d8daea; min-height: 48px; }
.xa-tip .tag { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #c9b8ff; padding: 3px 8px; border-radius: 999px; background: rgba(124,92,255,.18); white-space: nowrap; }
.xa-tip #xaTip { transition: opacity .35s; }

/* plain forms on register / forgot / reset — same glass look */
body.xa .xa-card .auth-form { position: relative; display: grid; gap: 14px; }
body.xa .xa-card .auth-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: #e6e7f3; }
body.xa .xa-card .input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  color: #fff; font: inherit; font-size: 14.5px; outline: none; }
body.xa .xa-card .input::placeholder { color: rgba(185,189,214,.6); }
body.xa .xa-card .input:focus { border-color: var(--xa-pink); box-shadow: 0 0 0 4px rgba(224,71,154,.22); background: rgba(255,255,255,.09); }
body.xa .xa-card .input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #262a52 inset; }
body.xa .xa-card .hint, body.xa .xa-card .muted { color: var(--xa-muted) !important; }
body.xa .xa-card input[type=checkbox] { accent-color: var(--xa-pink); }
body.xa .xa-card .auth-form .btn { height: 54px; }
body.xa .xa-card > div:not(.alert), body.xa .xa-card > form { position: relative; }

.xa-foot { position: relative; z-index: 3; display: flex; justify-content: space-between; gap: 12px; padding: 0 56px 14px; margin-top: -40px;
  font-size: 12px; color: rgba(255,255,255,.6); }
.xa-foot a { color: inherit; }

/* ---------- phone / small tablet ---------- */
@media (max-width: 900px) {
  .xa-wrap { grid-template-columns: 1fr; padding: 84px 16px 60px; gap: 18px; align-items: start; min-height: 0; }
  .xa-top { left: 16px; right: 16px; top: 16px; }
  .xa-clock .t, .xa-dial { display: none; }
  .xa-logo { height: 28px; }
  .xa-orb { width: 40px; height: 40px; left: auto; right: 18px; top: 14px; box-shadow: 0 0 30px 10px color-mix(in srgb, var(--orb) 40%, transparent); }
  .xa-hero { margin: 0; }
  .xa-h1 { font-size: 46px; margin: 12px 0 8px; white-space: normal; }
  .xa-lede { font-size: 15px; margin-bottom: 14px; }
  .xa-stats { gap: 8px; } .xa-stat { padding: 8px 11px; gap: 7px; } .xa-stat b { font-size: 19px; } .xa-stat span { font-size: 11.5px; }
  .xa-pin.p2, .xa-pin.p3 { display: none; }
  .xa-pin.p1 { left: 16px; bottom: 24%; }
  .xa-city { height: 40%; }
  .xa-foot { justify-content: center; gap: 14px; padding: 0 16px 16px; margin-top: 0; flex-wrap: wrap; }
  .xa-card { padding: 24px 20px 18px; }
  body.xa .xa-card .auth-title { font-size: 27px; }
}
@media (max-width: 380px) { .xa-h1 { font-size: 40px; } .xa-row { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { body.xa * { animation: none !important; transition: none !important; } }
body.xa .xa-card .auth-wrap + .xa-tip { margin-top: 18px; }
@media (min-width: 901px) and (max-width: 1340px) { .xa-pin.p2, .xa-pin.p3 { left: auto; right: calc(min(460px, 36vw) + 96px); } .xa-pin.p3 { display: none; } }
