/* ViH Samvad sign-in page: form on the left, brand panel on the right. */

body { background: var(--surface); transition: opacity .25s var(--ease); }
body.leaving { opacity: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; }

/* ---- form side ---- */
.form-side { display: flex; flex-direction: column; padding: 32px 48px; }
.top-row { display: flex; align-items: center; justify-content: space-between; }
.top-row img { height: 38px; width: auto; }
.top-tools { display: flex; align-items: center; gap: 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550; color: var(--ink-3); }
.back .ic { transition: transform .2s var(--ease-out); }
.back:hover { color: var(--brand); }
.back:hover .ic { transform: translateX(-3px); }
.form-wrap { flex: 1; display: grid; place-items: center; padding: 40px 0; }
form { width: 100%; max-width: 380px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800);
  border: 1px solid var(--brand-100); font-size: 12px; font-weight: 600; margin-bottom: 18px; }
h1 { margin: 0 0 8px; font-family: var(--display); font-size: 38px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.lede { margin: 0 0 30px; color: var(--ink-3); font-size: 14.5px; }
.field { margin-bottom: 16px; }
label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.pw { position: relative; }
.pw .input { padding-right: 44px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent;
  color: var(--ink-4); display: grid; place-items: center; cursor: pointer; }
.eye:hover { color: var(--ink); background: var(--sunken); }
.submit { width: 100%; height: 46px; margin-top: 8px; font-size: 14.5px; }
.submit .ic { transition: transform .25s var(--ease-out); }
.submit:hover .ic { transform: translateX(3px); }
.submit.busy span::after { content: "…"; }
.err { display: none; align-items: center; gap: 9px; padding: 10px 12px; margin-bottom: 16px; border-radius: 9px; font-size: 13px; border: 1px solid; }
.err.on { display: flex; animation: shake .38s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.note { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; color: var(--ink-4); font-size: 12.5px; line-height: 1.55; }
.note .ic { color: var(--brand-400); margin-top: 1px; }
.foot { font-size: 12px; color: var(--ink-4); }
.enter { animation-delay: calc(var(--i, 0) * 70ms); }

/* ---- brand side ---- */
.brand-side { position: relative; overflow: hidden; background: var(--night); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 64px; }
.aura { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.aura.a { width: 460px; height: 460px; background: #7c3aed; top: -140px; right: -120px; animation: drift 16s ease-in-out infinite; }
.aura.b { width: 360px; height: 360px; background: #ec4899; bottom: -150px; left: -80px; opacity: .32; animation: drift 20s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate(-40px, 30px) scale(1.08); } }
.grid-bg { position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .25) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.brand-inner { position: relative; max-width: 520px; animation: rise .8s .15s var(--ease-out) both; }
.brand-inner h2 { margin: 0 0 14px; font-family: var(--display); font-size: 42px; line-height: 1.12; font-weight: 700; }
.brand-inner h2 span { background: linear-gradient(90deg, #c4b5fd, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-inner p { margin: 0 0 34px; color: rgba(255, 255, 255, .74); font-size: 15px; line-height: 1.65; }
.preview { border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); animation: float 7s ease-in-out infinite; }
.pv-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pv-h .t { font-weight: 600; font-size: 14px; }
.pv-h .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255, 255, 255, .75); }
.pv-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .09); opacity: 0; animation: rise .6s var(--ease-out) forwards; }
.pv-row:nth-of-type(2) { animation-delay: .5s; } .pv-row:nth-of-type(3) { animation-delay: .9s; } .pv-row:nth-of-type(4) { animation-delay: 1.3s; }
.pv-row .ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.pv-row .l1 { font-size: 13.5px; font-weight: 600; }
.pv-row .l2 { font-size: 12px; color: rgba(255, 255, 255, .62); margin-top: 1px; }
.pv-row .tag { margin-left: auto; font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.g { background: rgba(16, 185, 129, .2); color: #a7f3d0; } .tag.v { background: rgba(196, 181, 253, .2); color: #ddd6fe; } .tag.p { background: rgba(249, 168, 212, .2); color: #fbcfe8; }
.pv-wave { display: flex; align-items: center; gap: 4px; height: 34px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .09); }
.pv-wave i { flex: 1; height: 4px; border-radius: 3px; background: linear-gradient(180deg, #c4b5fd, #f9a8d4); animation: bar 1.2s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -90ms); }
.pv-wave i:nth-child(3n) { --n: 3; } .pv-wave i:nth-child(3n+1) { --n: 7; } .pv-wave i:nth-child(4n) { --n: 5; } .pv-wave i:nth-child(5n) { --n: 9; } .pv-wave i:nth-child(7n) { --n: 1; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 24px; } }
.points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.points span { display: inline-flex; align-items: center; gap: 7px; }
.points .ic { color: #c4b5fd; }

@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .brand-side { display: none; }
  .form-side { padding: 24px 22px; min-height: 100vh; }
}
