:root {
  --bg: #0a0c10;
  --ink: #f5f6f8;
  --muted: #8b93a3;
  --line: rgba(129, 140, 248, 0.22);
  --accent: #9da3ff;
  --accent-2: #c4c8ff;
  --soft: rgba(124, 131, 255, 0.14);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
}
body {
  position: relative;
  overflow-x: hidden;
}
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 16, 0.88) 0%, rgba(10, 12, 16, 0.55) 42%, rgba(10, 12, 16, 0.28) 100%),
    linear-gradient(180deg, rgba(10, 12, 16, 0.4) 0%, rgba(10, 12, 16, 0.92) 100%),
    url("../assets/auth/purple-login-bg.png") 78% center / cover no-repeat;
}
.bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 30% at 18% 20%, rgba(124, 131, 255, 0.18), transparent 70%),
    radial-gradient(35% 28% at 82% 70%, rgba(91, 74, 180, 0.16), transparent 72%);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 72px;
}
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 16px/1 "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(124, 131, 255, 0.45);
}
.brand small {
  color: var(--accent-2);
  font: 700 9px "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.nav a { color: var(--accent); }
.nav-signin {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 9px;
  color: #f5f6f8 !important;
  text-decoration: none !important;
  font-weight: 650;
  background: rgba(12, 14, 22, 0.55);
  backdrop-filter: blur(10px);
}
.nav-signin:hover { background: rgba(124, 131, 255, 0.16); }
.stage {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.desk {
  position: sticky;
  top: 24px;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-top: 8px;
}
.avi-wrap {
  position: relative;
  width: 188px;
  height: 188px;
}
.avi-glow {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 131, 255, 0.42), transparent 68%);
  animation: breathe 3.2s ease-in-out infinite;
  pointer-events: none;
}
.avi {
  position: relative;
  z-index: 1;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(157, 163, 255, 0.45),
    0 18px 50px rgba(0, 0, 0, 0.45);
  animation: float 4.6s ease-in-out infinite;
}
.talk-dots {
  position: absolute;
  right: -6px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(14, 16, 24, 0.92);
  border: 1px solid rgba(157, 163, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.talk-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c4c8ff;
  animation: talk 1s ease-in-out infinite;
}
.talk-dots span:nth-child(2) { animation-delay: 0.15s; }
.talk-dots span:nth-child(3) { animation-delay: 0.3s; }
.speech {
  margin: 0;
  width: min(100%, 320px);
  padding: 14px 16px;
  border-radius: 14px 14px 14px 4px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  background: rgba(12, 15, 22, 0.78);
  backdrop-filter: blur(12px);
  color: #e8eaf2;
  font: 500 14px/1.5 "IBM Plex Sans", system-ui, sans-serif;
  min-height: 4.6em;
}
.speech .caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
.doc {
  display: grid;
  gap: 12px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.doc-head h1 {
  margin: 0 0 6px;
  font: 700 30px/1.12 "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: -0.03em;
}
.meta {
  margin: 0 0 8px;
  color: var(--muted);
  font: 500 12px "IBM Plex Mono", ui-monospace, monospace;
}
.panel {
  padding: 14px 0 4px;
  border-top: 1px solid rgba(129, 140, 248, 0.12);
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.7s ease forwards;
}
.panel:nth-child(2) { animation-delay: 0.12s; }
.panel:nth-child(3) { animation-delay: 0.2s; }
.panel:nth-child(4) { animation-delay: 0.28s; }
.panel:nth-child(5) { animation-delay: 0.36s; }
.panel:nth-child(6) { animation-delay: 0.44s; }
.panel:nth-child(7) { animation-delay: 0.52s; }
.panel:nth-child(8) { animation-delay: 0.6s; }
h2 {
  margin: 0 0 8px;
  font: 700 14px/1.3 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--accent-2);
}
p, li {
  color: #d5d8e0;
  font: 400 15px/1.62 "IBM Plex Sans", system-ui, sans-serif;
}
p { margin: 0 0 10px; }
ul { margin: 0 0 10px; padding-left: 1.15em; }
a { color: var(--accent); }
.foot {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes talk {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-3%, 2%, 0); }
}
@media (max-width: 820px) {
  .stage { grid-template-columns: 1fr; }
  .desk { position: static; }
  .avi-wrap, .avi { width: 132px; height: 132px; }
  .speech { width: min(100%, 420px); }
}
@media (prefers-reduced-motion: reduce) {
  .bg::after, .avi, .avi-glow, .talk-dots span, .speech .caret, .panel { animation: none; }
  .panel { opacity: 1; transform: none; }
}
