/* ============================================================
   altropost — Login (creator-energy)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Hanken+Grotesk:ital,wght@0,400..800;1,400..600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --cream: #F6F1E7; --cream-2: #FBF8F1; --paper: #FFFFFF;
  --ink: #141019; --ink-soft: #4a4453; --line: #14101922;
  --violet: #6B2BFF; --pink: #FF3D8B; --coral: #FF6A3D;
  --lime: #BBF246; --cyan: #1FD3C9; --yellow: #FFC93C;
  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Hanken Grotesk', sans-serif;
  --mono: 'Space Mono', monospace;
  --ease: cubic-bezier(.22,1,.36,1);
  --shadow-pop: 0 18px 40px -18px rgba(20,16,25,.34);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--body); background: var(--cream); color: var(--ink);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime); color: var(--ink); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

/* ---------- LEFT BRAND PANEL ---------- */
.brandside {
  position: relative; overflow: hidden; background: var(--ink); color: var(--cream);
  padding: 44px; display: flex; flex-direction: column; justify-content: space-between;
}
.bs-blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.bs-blob.v { width: 420px; height: 420px; background: var(--violet); top: -120px; left: -80px; opacity: .65; }
.bs-blob.p { width: 320px; height: 320px; background: var(--pink); bottom: 80px; right: -90px; opacity: .45; }
.bs-blob.c { width: 260px; height: 260px; background: var(--cyan); bottom: -100px; left: 30%; opacity: .35; }

.bs-brand { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.03em; display: flex; align-items: center; gap: 9px; position: relative; z-index: 3; }
.bs-brand .blip { width: 13px; height: 13px; border-radius: 50%; background: var(--pink); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,61,139,.55)} 70%{box-shadow:0 0 0 11px rgba(255,61,139,0)} 100%{box-shadow:0 0 0 0 rgba(255,61,139,0)} }

.bs-mid { position: relative; z-index: 3; max-width: 460px; }
.bs-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: 8px 15px; border-radius: 100px; background: #ffffff14; border: 1px solid #ffffff2e; margin-bottom: 26px;
}
.bs-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.bs-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
.bs-title .mark { position: relative; white-space: nowrap; z-index: 0; }
.bs-title .mark::after { content:""; position:absolute; left:-.06em; right:-.06em; bottom:.05em; height:.4em; background: var(--lime); z-index:-1; border-radius:3px; transform: rotate(-1.4deg); }
.bs-sub { color: #d8cfe6; font-size: 1.05rem; margin-top: 18px; max-width: 40ch; }

/* mini floating collage */
.bs-collage { position: relative; height: 200px; margin-top: 36px; }
.bs-pc { position: absolute; border-radius: 18px; overflow: hidden; border: 3px solid var(--cream); box-shadow: var(--shadow-pop); }
.bs-pc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-pc.a { width: 150px; height: 190px; left: 0; top: 6px; transform: rotate(-6deg); animation: floatA 7s ease-in-out infinite; }
.bs-pc.b { width: 140px; height: 175px; left: 130px; top: 16px; transform: rotate(5deg); animation: floatB 8s ease-in-out infinite .4s; z-index: 2; }
.bs-pc.c { width: 130px; height: 160px; left: 258px; top: 24px; transform: rotate(-4deg); animation: floatA 9s ease-in-out infinite .7s; }
@keyframes floatA { 50% { transform: rotate(-6deg) translateY(-14px); } }
@keyframes floatB { 50% { transform: rotate(5deg) translateY(12px); } }
.bs-sticker { position: absolute; z-index: 5; font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 8px 13px; border-radius: 100px; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.bs-sticker.s1 { background: var(--lime); top: -6px; right: 8%; transform: rotate(7deg); animation: wob 5s ease-in-out infinite; }
.bs-sticker.s2 { background: var(--yellow); bottom: -10px; left: 16%; transform: rotate(-6deg); animation: wob 6s ease-in-out infinite .5s; }
@keyframes wob { 50% { transform: rotate(2deg) translateY(-5px); } }

.bs-foot { position: relative; z-index: 3; display: flex; align-items: center; gap: 14px; font-size: 14px; color: #c8bcdb; }
.bs-foot .avs { display: flex; }
.bs-foot .avs span { width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--ink); margin-left: -10px; background-size: cover; background-position: center; }
.bs-foot b { color: var(--cream); }

/* marquee strip bottom of panel */
.bs-marquee { position: absolute; left: 0; right: 0; bottom: 0; background: var(--violet); border-top: 2.5px solid #ffffff22; padding: 11px 0; overflow: hidden; transform: rotate(-1.2deg) scale(1.04); z-index: 4; }
.bs-mq-track { display: flex; width: max-content; white-space: nowrap; animation: scroll 24s linear infinite; }
.bs-mq-track span { font-family: var(--display); font-weight: 700; font-size: 1.1rem; padding: 0 20px; display: inline-flex; gap: 20px; align-items: center; }
.bs-mq-track .star { color: var(--yellow); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- RIGHT FORM SIDE ---------- */
.formside { display: flex; flex-direction: column; padding: 30px 40px; position: relative; }
.fs-top { display: flex; justify-content: space-between; align-items: center; }
.fs-brand { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; display: none; align-items: center; gap: 8px; }
.fs-brand .blip { width: 11px; height: 11px; border-radius: 50%; background: var(--pink); }
.fs-back { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 100px; border: 1.5px solid var(--line); transition: border-color .2s, color .2s; }
.fs-back:hover { color: var(--ink); border-color: var(--ink); }

.lang { display: inline-flex; background: var(--cream-2); border: 1.5px solid var(--ink); border-radius: 100px; padding: 3px; position: relative; font-family: var(--mono); font-weight: 700; font-size: 12px; }
.lang button { border: 0; background: transparent; cursor: pointer; padding: 6px 11px; border-radius: 100px; color: var(--ink-soft); z-index: 1; }
.lang button.on { color: var(--cream); }
.lang .pill { position: absolute; top: 3px; bottom: 3px; width: 42px; background: var(--ink); border-radius: 100px; }
.lang[data-l="en"] .pill { transform: translateX(42px); }

.fs-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px 0; }
.card { width: 100%; max-width: 420px; }
.card.wide { max-width: 460px; }

.card .eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--violet); display: inline-block; margin-bottom: 14px; }
.card h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.025em; }
.card .sub { color: var(--ink-soft); margin-top: 12px; font-size: 1.02rem; }

form { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .ic { position: absolute; left: 16px; display: grid; place-items: center; pointer-events: none; color: var(--ink-soft); }
.input-wrap input {
  width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink);
  padding: 15px 16px 15px 46px; border: 2px solid var(--ink); border-radius: 14px;
  background: var(--paper); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input-wrap input::placeholder { color: #9b94a4; }
.input-wrap input:focus { border-color: var(--violet); box-shadow: 4px 4px 0 0 var(--violet); }
.input-wrap input:focus ~ .ic { color: var(--violet); }
.field.err input { border-color: var(--pink); box-shadow: 4px 4px 0 0 var(--pink); }
.field .msg { font-size: 13px; color: var(--pink); font-weight: 600; display: none; }
.field.err .msg { display: block; }

.eye { position: absolute; right: 12px; background: none; border: 0; cursor: pointer; color: var(--ink-soft); padding: 8px; border-radius: 8px; display: grid; place-items: center; }
.eye:hover { color: var(--ink); background: #14101910; }

.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: -2px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--ink); display: grid; place-items: center; background: var(--paper); flex: 0 0 auto; }
.check .box svg { opacity: 0; }
.check input:checked ~ .box { background: var(--lime); }
.check input:checked ~ .box svg { opacity: 1; }
.check input:focus-visible ~ .box { box-shadow: 0 0 0 3px #6b2bff44; }
.forgot { font-size: 14.5px; font-weight: 700; color: var(--violet); white-space: nowrap; }
.forgot:hover { text-decoration: underline; }

.submit {
  margin-top: 6px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  font-family: var(--body); font-weight: 700; font-size: 17px; color: var(--cream);
  padding: 17px 24px; border-radius: 100px; border: 2px solid var(--ink); background: var(--ink);
  cursor: pointer; box-shadow: 5px 5px 0 0 var(--violet); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.submit:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 0 var(--violet); }
.submit:active { transform: translate(0,0); box-shadow: 3px 3px 0 0 var(--violet); }
.submit .arr { transition: transform .2s var(--ease); }
.submit:hover .arr { transform: translateX(4px); }

.divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 20px; color: var(--ink-soft); font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; height: 1.5px; background: var(--line); flex: 1; }

.signup { text-align: center; font-size: 15.5px; color: var(--ink-soft); }
.signup a { font-weight: 700; color: var(--ink); position: relative; }
.signup a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--lime); }

/* load-in (visible at rest, animation only enhances) */
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { opacity: 1; }
.loaded .rise { animation: riseIn .6s var(--ease); }
.loaded .rise.d1 { animation-delay: .06s; } .loaded .rise.d2 { animation-delay: .12s; }
.loaded .rise.d3 { animation-delay: .18s; } .loaded .rise.d4 { animation-delay: .24s; }
.loaded .rise.d5 { animation-delay: .30s; } .loaded .rise.d6 { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .loaded .rise { animation: none; } }

/* ---------- REGISTER extras ---------- */
.typeseg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.typeseg button {
  display: flex; align-items: center; gap: 11px; padding: 13px 15px; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 14px; background: var(--paper);
  font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--ink); text-align: left;
  transition: background .15s, box-shadow .15s, transform .15s var(--ease);
}
.typeseg button .ti { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); border: 2px solid var(--ink); flex: 0 0 auto; transition: background .15s; }
.typeseg button .ti svg { width: 19px; height: 19px; }
.typeseg button small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-soft); margin-top: 1px; }
.typeseg button.on { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 0 var(--violet); }
.typeseg button.on small { color: #c8bcdb; }
.typeseg button.on .ti { background: var(--lime); }

.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.biz-only { display: none; }
body[data-acct="business"] .name-row { display: none; }
body[data-acct="business"] .biz-only { display: flex; }

.hint { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.hint a { font-weight: 700; color: var(--violet); }

/* password strength */
.strength { display: flex; gap: 6px; margin-top: 9px; }
.strength i { height: 5px; flex: 1; border-radius: 100px; background: #14101914; }
.strength[data-s="1"] i:nth-child(1) { background: var(--coral); }
.strength[data-s="2"] i:nth-child(-n+2) { background: var(--yellow); }
.strength[data-s="3"] i { background: var(--lime); }
.strength-label { font-size: 12px; font-weight: 700; font-family: var(--mono); letter-spacing: .04em; color: var(--ink-soft); margin-top: 7px; min-height: 15px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .brandside { display: none; }
  .fs-brand { display: flex; }
  .formside { padding: 22px 22px 40px; }
}
@media (max-width: 480px) {
  .card h1 { font-size: 1.9rem; }
  .row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .name-row { grid-template-columns: 1fr; }
}
