/* Ghalishot welcome / sign-in page */
:root {
  --bg: #08070b; --ink: #f4f1f7; --mut: #a39cae; --pink: #ff2bd6; --cyan: #1fe3ff; --yellow: #ffe53b; --acc: #ff7a2e; --bad: #ff5a6e;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 500 16px/1.45 Inter, system-ui, -apple-system, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ---- the wall: concrete, spray glow, grain, scanlines ---- */
.wall { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(0,0,0,.85), transparent 60%),
    linear-gradient(180deg, #121018 0%, #0b0a10 55%, #060509 100%); }
.wall::before { /* poured concrete */
  content: ""; position: absolute; inset: -10%; opacity: .85; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .02' numOctaves='5' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .55 0 0 0 0 .58 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 420px 420px; }
.wall::after { /* giant tag sprayed across the wall, fills wide screens */
  content: "GHALISHOT"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%) rotate(-6deg);
  font: italic 900 min(34vw, 62vh)/0.8 var(--display); letter-spacing: -.02em; white-space: nowrap; color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.06); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.g1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle, rgba(255,43,214,.55), transparent 65%); }
.g2 { width: 46vmax; height: 46vmax; right: -16vmax; top: 8vh; background: radial-gradient(circle, rgba(31,227,255,.38), transparent 65%); }
.g3 { width: 40vmax; height: 30vmax; left: 30%; bottom: -20vmax; background: radial-gradient(circle, rgba(255,122,46,.35), transparent 65%); }
.grain { position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E"); }
.scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px); }

/* ---- layout ---- */
.stage { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; width: min(1560px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 80px);
  padding: clamp(24px, 4vh, 56px) clamp(24px, 4vw, 64px); }
.mural { margin: 0; display: flex; justify-content: center; align-items: center; height: 100%; min-height: 0; }
.mural img { display: block; height: min(90vh, 1240px); width: auto; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.9)) drop-shadow(0 30px 60px rgba(0,0,0,.65)) drop-shadow(0 0 70px rgba(255,43,214,.28));
  transform: rotate(-1.5deg); animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.panel { max-width: 560px; animation: rise .9s .12s cubic-bezier(.2,.8,.2,1) both; }

.kicker { margin: 0 0 6px; font: 700 13px/1 Inter, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 0 rgba(255,90,110,.7); animation: pulse 1.8s infinite; }

.logo { margin: 0; font: italic 900 clamp(76px, 9.4vw, 172px)/.84 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.word { position: relative; display: inline-block; padding-right: .06em; }
.face { position: relative; display: block; padding-right: .06em; margin-right: -.06em;
  background: linear-gradient(180deg, #ffffff 0%, #ffeefb 42%, #ffb3ec 68%, #ff7a2e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ghost { position: absolute; left: 0; top: 0; color: transparent; }
.ghost.c { transform: translate(-.035em, .02em); color: var(--cyan); opacity: .8; }
.ghost.m { transform: translate(.035em, -.014em); color: var(--pink); opacity: .85; filter: drop-shadow(0 0 28px rgba(255,43,214,.55)); }
.logo::after { content: ""; display: block; width: 42%; height: 8px; margin-top: 14px; background: linear-gradient(90deg, var(--acc), var(--pink)); transform: skewX(-24deg); border-radius: 2px; box-shadow: 0 0 22px rgba(255,122,46,.55); }

.tag { margin: 18px 0 0; font: 600 clamp(19px, 1.5vw, 24px)/1.3 Inter, sans-serif; color: #e9e4ef; letter-spacing: -.01em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.chips li { font: 700 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #d9d3e2; padding: 8px 12px 7px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; background: rgba(255,255,255,.04); }
.signed { margin: 18px 0 0; color: var(--mut); font-size: 15px; }
.signed b { color: var(--ink); }
.signed a { color: var(--cyan); font-weight: 700; text-decoration: none; }
.signed a:hover { text-decoration: underline; }

/* ---- form ---- */
.card { margin-top: 28px; padding: 26px; border-radius: 16px; position: relative;
  background: linear-gradient(180deg, rgba(24,20,32,.82), rgba(12,10,17,.86)); border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.card::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), transparent); opacity: .8; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 7px; font: 700 12px/1 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }
.field input { width: 100%; height: 54px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(4,3,8,.7);
  color: var(--ink); font: 600 17px Inter, sans-serif; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.field input::placeholder { color: #5f5869; font-weight: 500; }
.field input:focus { border-color: var(--cyan); background: rgba(4,3,8,.92); box-shadow: 0 0 0 3px rgba(31,227,255,.18), 0 0 24px rgba(31,227,255,.15); }
.err { min-height: 22px; margin: 2px 0 10px; color: var(--bad); font-weight: 700; font-size: 15px; }
.err:empty { min-height: 0; margin: 0 0 6px; }
.go { width: 100%; height: 60px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 10px; cursor: pointer;
  color: #fff; font: 800 24px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(95deg, var(--acc) 0%, #ff4f8b 55%, var(--pink) 100%); box-shadow: 0 10px 30px rgba(255,74,140,.35), inset 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 1px 0 rgba(0,0,0,.25); transition: transform .12s, box-shadow .2s, filter .2s; }
.go:hover { filter: brightness(1.08); box-shadow: 0 14px 38px rgba(255,74,140,.5), inset 0 1px 0 rgba(255,255,255,.35); }
.go:active { transform: translateY(1px) scale(.995); }
.go:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.go-arrow { font-size: 28px; transition: transform .2s; }
.go:hover .go-arrow { transform: translateX(4px); }
.busy .go { filter: saturate(.6) brightness(.9); cursor: progress; }
.busy .go-label::after { content: "…"; }
.ok .go { background: linear-gradient(95deg, #2fd27d, #1fe3ff); }
.fine { margin: 14px 0 0; text-align: center; color: var(--mut); font-size: 14px; }
.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97); }
.shake .field input[type=password] { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255,90,110,.18); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.mural img { animation-name: riseTilt; }
@keyframes riseTilt { from { opacity: 0; transform: translateY(18px) rotate(-1.5deg); } to { opacity: 1; transform: rotate(-1.5deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,110,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,90,110,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,110,0); } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- big screens: let the art breathe ---- */
@media (min-width: 2200px) {
  .stage { width: min(2000px, 100%); }
  .panel { max-width: 640px; }
  .logo { font-size: clamp(150px, 6.4vw, 220px); }
}
@media (min-width: 2200px) and (min-height: 1200px) {
  .stage { width: min(2200px, 100%); }
  .panel { zoom: 1.25; max-width: 600px; }
  .logo { font-size: 172px; }
}

/* ---- phones and narrow windows ---- */
@media (max-width: 880px) {
  .stage { grid-template-columns: 1fr; gap: 0; padding: 0 16px calc(28px + env(safe-area-inset-bottom)); align-items: start; }
  .mural { height: auto; margin: 0 -16px; position: relative; justify-content: center; align-items: flex-start; overflow: hidden; max-height: 46vh; max-height: 46svh;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 98%); mask-image: linear-gradient(180deg, #000 62%, transparent 98%); }
  .mural img { height: auto; width: min(90vw, 430px); transform: none; animation-name: rise; }
  .panel { max-width: 560px; width: 100%; margin: -44px auto 0; position: relative; }
  .kicker { font-size: 12px; }
  .logo { font-size: clamp(64px, 20vw, 120px); }
  .logo::after { height: 6px; margin-top: 10px; }
  .tag { margin-top: 12px; font-size: 16px; }
  .chips { display: none; }
  .wall::after { display: none; }
  .card { margin-top: 18px; padding: 18px; }
  .field { margin-bottom: 12px; }
  .field input { height: 50px; }
  .go { height: 56px; }
  .field input { font-size: 17px; }
}
@media (max-width: 880px) and (min-height: 0) { .mural img { margin-top: max(0px, env(safe-area-inset-top)); } }
