/* login.css — the new-look sign-in page, Cawverse galaxy identity (Nerion 2026-11-16, cawverse-portal-style-galaxy-20261116).
   Self-hosted font + images only (P30). Murder Pad pages keep style.css (gold); this file is the Cawverse look. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/archivo-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }
:root {
  /* Cawverse tokens (shared with the landing page) */
  --cv-bg: #07050F; --cv-panel: rgba(17, 12, 34, .88); --cv-panel2: rgba(30, 22, 58, .72); --cv-line: #2E2452; --cv-line2: #43367A;
  --cv-ink: #F1ECFF; --cv-ink2: #D6CCF5; --cv-mute: #A69AC9;
  --cv-acc: #9B7BFF; --cv-acc2: #C3ADFF; --cv-ring: #9B7BFF33; --cv-grad: linear-gradient(135deg, #7B5CFF, #B08CFF); --cv-grad2: linear-gradient(135deg, #8A6EFF, #C3A6FF);
  --cv-green: #4FC3A1; --cv-warn: #F6A06B;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--cv-ink); font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 15px; line-height: 1.45; background: var(--cv-bg); }

/* ===== r1d: the animated galaxy (Nerion cawverse-galaxy-animated-20261116; security rules 2026-11-16).
   CSS only: transform + opacity keyframes; no filter / backdrop-filter; no inline style.
   Static when html.bg-static (login.js adds it only if localStorage cv.bg === 'static') or when the device asks for reduced motion. ===== */
/* r4: a STATIC base that always covers the whole viewport (never moves); the rings turn on top of it and the crow sits still above them. */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #000 url('img/cv-swirl-800.jpg') 50% 28% / cover no-repeat; pointer-events: none; }
/* r3 (r_fc2bd897, brain 2026-11-17): the turning layers use the LOGO-FREE swirl (img/cv-swirl-*.jpg, from cawverse-bg). The old caw-galaxy-*.jpg have the
   knife-crow and the CAW-verse wordmark baked in, so turning them turned the logo. Three rings turn at different speeds (inner 22 s, middle 40 s, outer 80 s),
   which reads as a real vortex. The wordmark (.wordart) is a separate still element. No HTML change: the inner ring is .sky::before.
   r5 (Nerion 2026-11-17): the FULL crow from the original art (body, knife, both legs, claws, the red band), dead centre of the swirl, at 28%, with
   the page content starting just below it (never over it). r4: the knife-crow is BACK and STILL (.sky::after, img/cv-crow-*.png, never animated); arms 12 / 28 / 60 s; rings 160vmax with
   circular masks that are fully transparent before the square's edge, over a static cover base, so no edge or corner of a turning layer can show. */
.sky::before { content: ''; position: absolute; left: 50%; top: 28%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: url('img/cv-swirl-1200.jpg') center / 100% 100% no-repeat;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0, #000 24%, transparent 33%); mask-image: radial-gradient(circle closest-side, #000 0, #000 24%, transparent 33%); will-change: transform; animation: cv-turn1 12s linear infinite; }
.sky .gal { position: absolute; left: 50%; top: 28%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: url('img/cv-swirl-1200.jpg') center / 100% 100% no-repeat;
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 44%, #000 58%, #000 84%, transparent 96%); mask-image: radial-gradient(circle closest-side, transparent 44%, #000 58%, #000 84%, transparent 96%); will-change: transform; animation: cv-turn3 60s linear infinite; }
.sky .gal2 { position: absolute; left: 50%; top: 28%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: url('img/cv-swirl-1200.jpg') center / 100% 100% no-repeat;
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 20%, #000 31%, #000 50%, transparent 60%); mask-image: radial-gradient(circle closest-side, transparent 20%, #000 31%, #000 50%, transparent 60%); will-change: transform; animation: cv-turn2 28s linear infinite; }
.sky::after { content: ''; position: absolute; left: 50%; top: 28%; width: max(56vmin, 27vmax); height: max(56vmin, 27vmax); margin: calc(max(56vmin, 27vmax) / -2) 0 0 calc(max(56vmin, 27vmax) / -2);
  background: url('img/cv-crowfull-1200.png') center / 100% 100% no-repeat; pointer-events: none; z-index: 1; animation: none; }
.sky .stars { position: absolute; inset: -10%; will-change: opacity, transform; background-repeat: repeat; }
.sky .s1 { background-image: radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent 60%), radial-gradient(1px 1px at 140px 80px, #dcd0ff, transparent 60%), radial-gradient(1.4px 1.4px at 220px 190px, #fff, transparent 60%), radial-gradient(1px 1px at 80px 240px, #c9b8ff, transparent 60%);
  background-size: 280px 280px; animation: cv-twinkle 5.5s ease-in-out infinite, cv-drift1 55s linear infinite; }
.sky .s2 { background-image: radial-gradient(1.6px 1.6px at 60px 110px, #fff, transparent 60%), radial-gradient(1.1px 1.1px at 300px 40px, #e6dcff, transparent 60%), radial-gradient(1.3px 1.3px at 360px 330px, #fff, transparent 60%);
  background-size: 420px 420px; animation: cv-twinkle 8s ease-in-out -3s infinite, cv-drift2 80s linear infinite reverse; }
.sky .s3 { background-image: radial-gradient(2px 2px at 150px 150px, #fff, transparent 65%), radial-gradient(1.8px 1.8px at 470px 380px, #d9c9ff, transparent 65%);
  background-size: 600px 600px; animation: cv-twinkle 3.6s ease-in-out -1.2s infinite; }
.sky .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,5,15,.35) 0%, rgba(7,5,15,.55) 55%, rgba(7,5,15,.9) 100%); }
@keyframes cv-turn1 { 0% { transform: rotate(0deg) scale(1.04); } 50% { transform: rotate(180deg) scale(1.1); } 100% { transform: rotate(360deg) scale(1.04); } }
@keyframes cv-turn2 { 0% { transform: rotate(40deg); } 100% { transform: rotate(400deg); } }
@keyframes cv-turn3 { 0% { transform: rotate(80deg) scale(1.02); } 100% { transform: rotate(440deg) scale(1.02); } }
@keyframes cv-fade { 0%, 100% { opacity: .12; } 50% { opacity: 1; } }
@keyframes cv-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes cv-drift1 { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-280px, 280px, 0); } }
@keyframes cv-drift2 { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-420px, 420px, 0); } }
@keyframes cv-pulse { 0%, 100% { opacity: .28; transform: scale(.96); } 50% { opacity: .75; transform: scale(1.04); } }
@keyframes cv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* r2: phones keep the swirl, the second layer and the drift; only the lighter image */
@media (max-width: 800px) { .sky::before, .sky .gal, .sky .gal2 { background-image: url('img/cv-swirl-800.jpg'); } .sky::after { background-image: url('img/cv-crowfull-800.png'); width: max(80vmin, 38vmax); height: max(80vmin, 38vmax); margin: calc(max(80vmin, 38vmax) / -2) 0 0 calc(max(80vmin, 38vmax) / -2); } }
html.bg-static .sky *, html.bg-static .sky::before, html.bg-static .wordart img, html.bg-static .wordart::before { animation: none !important; }
/* r2–r4: reduced motion (e.g. Windows "Animation effects" off) = NO movement; two rings visibly shimmer (opacity .12 to 1) and the stars twinkle. The crow is always still. html.bg-static (the user's choice) stays fully still. */
@media (prefers-reduced-motion: reduce) {
  .sky .gal, .sky .gal2, .sky::before, .wordart img, .wordart::before { animation: none !important; transform: none !important; }
  html:not(.bg-static) .sky::before { animation: cv-fade 4s ease-in-out infinite !important; }
  html:not(.bg-static) .sky .gal2 { animation: cv-fade 6s ease-in-out -2s infinite !important; }
  html:not(.bg-static) .sky .stars { animation-name: cv-twinkle !important; animation-duration: 6s !important; animation-timing-function: ease-in-out !important; animation-iteration-count: infinite !important; transform: none !important; }
}
a { color: var(--cv-acc); } a:hover { color: var(--cv-acc2); }
button, input { font: inherit; color: inherit; }
h1, h2 { margin: 0; }

.shell { min-height: 100vh; display: grid; place-items: start center; padding: calc(28vh + max(56vmin, 27vmax) * .21 + 16px) 16px 44px; }   /* r5: the card starts below the crow */
@media (max-width: 800px) { .shell { padding-top: calc(28vh + max(80vmin, 38vmax) * .21 + 16px); } }
.card { width: 100%; max-width: 420px; }
.wordart { position: relative; width: 100%; max-width: 380px; margin: 0 auto 14px; font-size: 0; }   /* no transform here: it would isolate the img's screen blend */
.wordart::before { content: ''; position: absolute; left: 8%; right: 8%; top: 5%; bottom: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(155,123,255,.55), rgba(110,74,255,.18) 60%, transparent 100%);
  opacity: .35; animation: cv-pulse 4.5s ease-in-out infinite; will-change: opacity, transform; pointer-events: none; }
.wordart img { position: relative; animation: cv-float 7s ease-in-out infinite; will-change: transform; display: block; width: 100%; height: auto; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }

.panel { background: var(--cv-panel); border: 1px solid var(--cv-line); border-radius: 18px; padding: 28px 26px 24px; box-shadow: 0 0 0 1px #9B7BFF14, 0 20px 60px #0009, 0 0 80px #6D4AFF1F; }
h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.sub { margin: 0 0 20px; color: var(--cv-mute); }
label.f { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cv-mute); margin: 0 0 7px; }
.inp { width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--cv-line2); background: rgba(0,0,0,.45); color: var(--cv-ink); outline: none; }
.inp:focus { border-color: var(--cv-acc); box-shadow: 0 0 0 3px var(--cv-ring); }
.inp.code { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; text-align: center; }
.err { margin: 8px 0 0; font-size: 13px; color: var(--cv-warn); }
.err:empty { display: none; }
/* signup r1: the referral box + Check on the create step */
label.f2 { margin-top: 16px; }
.opt { text-transform: none; letter-spacing: 0; }
.row { display: flex; gap: 8px; align-items: center; }
.row .inp { flex: 1; min-width: 0; }
.row .btn { width: auto; flex: none; margin-top: 0; }
.note { margin: 8px 0 0; font-size: 13px; color: var(--cv-mute); }
.note:empty { display: none; }
.note.ok { color: var(--cv-green); }
.note.no { color: var(--cv-warn); }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; color: var(--cv-ink2); cursor: pointer; }
.chk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cv-acc); flex: none; }
.btn { width: 100%; height: 48px; margin-top: 18px; padding: 0 16px; border-radius: 10px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  border: 1px solid #A58BFF; background: var(--cv-grad); color: #fff; box-shadow: 0 6px 24px #7B5CFF40; }
.btn:hover { background: var(--cv-grad2); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--cv-ink2); border-color: var(--cv-line2); font-weight: 600; margin-top: 10px; box-shadow: none; }
.btn-ghost:hover { background: transparent; border-color: var(--cv-mute); color: var(--cv-ink); }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: var(--cv-mute); font-size: 12px; font-family: var(--mono); letter-spacing: .1em; }
.or::before, .or::after { content: ''; height: 1px; background: var(--cv-line); flex: 1; }
.links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--cv-acc); cursor: pointer; font-size: inherit; }
.linkbtn:hover { color: var(--cv-acc2); text-decoration: underline; }
.who { font-family: var(--mono); color: var(--cv-ink); word-break: break-all; }
.sep { height: 1px; background: var(--cv-line); margin: 22px 0 16px; }
.new { text-align: center; color: var(--cv-mute); font-size: 14px; margin: 0; }
.center { text-align: center; }
.foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--cv-mute); text-shadow: 0 1px 6px #000; }
.foot a { color: var(--cv-mute); margin-left: 6px; }
.step { display: none; } .step.on { display: block; }
@media (max-width: 420px) { .panel { padding: 22px 18px 20px; } h2 { font-size: 21px; } .shell { padding-top: 20px; } }