html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
}

.auth-page {
  --auth-bg: #eef3f9;
  --panel-bg: rgba(255, 255, 255, 0.92);
  --panel-border: rgba(108, 135, 178, 0.18);
  --shadow: 0 28px 70px rgba(37, 62, 102, 0.12);
  --primary: #2476ea;
  --primary-deep: #1d5fbc;
  --text-main: #17304f;
  --text-subtle: #68809f;
  --text-faint: #8da0b6;
  --record-text: #ff6a6a;
  height: 100vh;
  min-height: 100vh;
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(116, 177, 255, 0.16), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(90, 166, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #f4f7fb 0%, #edf2f8 100%);
}

.auth-shell {
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto auto;
  row-gap: 16px;
  align-items: start;
}

.brand-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 0;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}

.hero-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  align-items: stretch;
}

.hero-panel {
  position: relative;
  min-height: 520px;
  padding: 18px 22px;
  box-sizing: border-box;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(36, 118, 234, 0.14);
  box-shadow: 0 16px 36px rgba(36, 118, 234, 0.14);
}

.brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-copy h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.brand-copy p {
  margin: 8px 0 0;
  color: var(--text-subtle);
  font-size: 15px;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
}

.hero-window {
  width: min(100%, 668px);
  min-height: 392px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 32px 80px rgba(34, 60, 98, 0.12);
  backdrop-filter: blur(12px);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding-bottom: 16px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6dfeb;
}

.window-bar span:nth-child(1) {
  background: #ff9a8c;
}

.window-bar span:nth-child(2) {
  background: #ffd16a;
}

.window-bar span:nth-child(3) {
  background: #78d08f;
}

.window-body {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  min-height: 326px;
}

.window-side,
.canvas-card,
.window-canvas {
  border-radius: 24px;
}

.window-side {
  background: rgba(242, 246, 252, 0.96);
  padding: 24px 18px;
  border: 1px solid rgba(111, 139, 179, 0.08);
}

.side-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d7e4f7, #c2d3eb);
  margin-bottom: 18px;
}

.side-line {
  height: 10px;
  border-radius: 999px;
  background: #dbe6f3;
  margin-bottom: 12px;
}

.side-line.short {
  width: 68%;
}

.window-canvas {
  position: relative;
  overflow: hidden;
  padding: 26px 24px;
  background:
    linear-gradient(rgba(148, 170, 199, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 170, 199, 0.08) 1px, transparent 1px),
    linear-gradient(160deg, #fbfdff 0%, #f2f7fd 100%);
  background-size: 18px 18px, 18px 18px, auto;
  border: 1px solid rgba(111, 139, 179, 0.08);
}

.flow-map {
  position: absolute;
  inset: 68px auto auto 50%;
  width: 200px;
  height: 170px;
  transform: translateX(-50%);
}

.map-node {
  position: absolute;
  display: block;
  width: 66px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7eb4ff, #4e89ef);
  box-shadow: 0 10px 20px rgba(60, 116, 214, 0.2);
}

.map-node.top {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.map-node.left {
  left: 8px;
  bottom: 16px;
}

.map-node.right {
  right: 8px;
  bottom: 16px;
}

.map-link {
  position: absolute;
  background: linear-gradient(180deg, #75aaf7, #4a86e8);
}

.map-link.vertical {
  left: 50%;
  top: 34px;
  width: 4px;
  height: 74px;
  transform: translateX(-50%);
}

.map-link.left,
.map-link.right {
  bottom: 48px;
  width: 62px;
  height: 4px;
}

.map-link.left {
  left: 42px;
  transform: rotate(28deg);
  transform-origin: left center;
}

.map-link.right {
  right: 42px;
  transform: rotate(-28deg);
  transform-origin: right center;
}

.canvas-card {
  position: absolute;
  width: 110px;
  height: 78px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(101, 137, 187, 0.12);
  box-shadow: 0 18px 30px rgba(72, 108, 156, 0.08);
}

.canvas-card.left {
  left: 34px;
  bottom: 30px;
}

.canvas-card.right {
  right: 34px;
  top: 32px;
}

.hero-float {
  position: absolute;
  border-radius: 26px;
  backdrop-filter: blur(10px);
}

.float-card {
  top: 22%;
  right: 8%;
  width: 112px;
  height: 112px;
  background: rgba(79, 133, 229, 0.18);
  border: 1px solid rgba(112, 154, 226, 0.32);
  box-shadow: 0 24px 36px rgba(55, 93, 155, 0.12);
}

.float-square {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.square-core {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(80, 124, 196, 0.2);
}

.square-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14);
}

.square-node.top {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.square-node.right {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.square-node.bottom {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.square-node.left {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.float-orb {
  left: 12%;
  bottom: 12%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(66, 125, 226, 0.9));
  box-shadow: 0 20px 36px rgba(50, 93, 164, 0.18);
}

.bottom-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-top: 8px;
}

.site-record {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.group-card {
  min-height: 88px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 34px rgba(43, 69, 107, 0.06);
}

.feature-card {
  padding: 18px 20px;
  display: grid;
  grid-template-rows: 24px 1fr;
  align-content: start;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text-main);
  line-height: 24px;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-subtle);
}

.content-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  min-height: 520px;
  padding: 0;
}

.content-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "rail"
    "points";
  align-content: center;
  gap: 22px;
  min-height: 468px;
  width: 100%;
  box-sizing: border-box;
  padding: 28px 36px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(148, 194, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: 0 20px 46px rgba(48, 79, 123, 0.05);
}

.content-stage::before {
  content: "";
  position: absolute;
  inset: 48px 28px 28px;
  border-radius: 30px;
  background:
    linear-gradient(rgba(148, 170, 199, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 170, 199, 0.055) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.72;
}

.content-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.glow-top {
  top: 36px;
  right: 38px;
  width: 156px;
  height: 156px;
  background: radial-gradient(circle at center, rgba(124, 173, 255, 0.18), rgba(124, 173, 255, 0));
}

.glow-bottom {
  left: 38px;
  bottom: 42px;
  width: 126px;
  height: 126px;
  background: radial-gradient(circle at center, rgba(95, 156, 255, 0.1), rgba(95, 156, 255, 0));
}

.content-copy,
.content-rail,
.content-points {
  position: relative;
  z-index: 1;
}

.content-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(36, 118, 234, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.content-copy {
  grid-area: copy;
  max-width: 500px;
  align-self: center;
  padding-top: 0;
}

.content-copy h2 {
  margin: 18px 0 0;
  color: var(--text-main);
  font-size: 34px;
  line-height: 1.28;
}

.content-copy p {
  margin: 18px 0 0;
  color: var(--text-subtle);
  font-size: 15px;
  line-height: 1.95;
}

.content-rail {
  grid-area: rail;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.rail-line {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 12px;
  height: 2px;
  background: linear-gradient(90deg, rgba(77, 132, 228, 0.06), rgba(77, 132, 228, 0.28), rgba(77, 132, 228, 0.06));
}

.rail-step {
  position: relative;
  min-height: 120px;
  padding: 30px 22px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(43, 69, 107, 0.05);
  backdrop-filter: blur(10px);
}

.rail-dot {
  position: absolute;
  top: -7px;
  left: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7eb4ff, #4e89ef);
  box-shadow: 0 0 0 6px rgba(126, 180, 255, 0.16);
}

.rail-step.active .rail-dot {
  box-shadow: 0 0 0 8px rgba(126, 180, 255, 0.18);
}

.rail-step strong {
  display: block;
  color: var(--text-main);
  font-size: 15px;
}

.rail-step p {
  margin: 10px 0 0;
  color: var(--text-subtle);
  font-size: 13px;
  line-height: 1.8;
}

.content-points {
  grid-area: points;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: -2px;
}

.content-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.76);
  color: var(--text-subtle);
  font-size: 12px;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0;
  min-height: 28px;
}

.meta-item {
  position: relative;
  padding: 0 16px;
  color: #96a3b5;
  font-size: 13px;
  line-height: 1.8;
  white-space: nowrap;
}

.meta-item + .meta-item::before {
  content: "|";
  position: absolute;
  left: 0;
  top: 50%;
  color: #cad3e0;
  transform: translateY(-50%);
}

.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.meta-item[hidden] {
  display: none !important;
}

.meta-link:hover {
  color: #6f7d90;
  opacity: 0.92;
}

.meta-police-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex: 0 0 auto;
}

.content-card-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.strip-item {
  min-height: 88px;
  padding: 18px 28px;
  display: grid;
  grid-template-rows: 24px 1fr;
  align-content: start;
}

.strip-item + .strip-item {
  border-left: 1px solid rgba(154, 176, 205, 0.18);
}

.strip-item strong {
  display: block;
  color: var(--text-main);
  font-size: 15px;
  line-height: 24px;
}

.strip-item span {
  display: block;
  margin-top: 8px;
  color: var(--text-subtle);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 1440px) {
  .content-stage {
    padding: 32px 32px 24px;
  }

  .content-copy h2 {
    font-size: 31px;
  }
}

@media (max-width: 1180px) {
  .hero-layout {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .hero-panel,
  .content-panel {
    min-height: auto;
  }

  .hero-stage {
    min-height: 360px;
  }

  .hero-window {
    margin-top: 0;
  }

  .content-panel {
    padding: 0 20px 0;
  }

  .content-stage {
    min-height: auto;
    width: 100%;
    padding: 28px 28px 24px;
  }

  .bottom-group {
    grid-template-columns: 1fr;
  }

  .site-record {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .auth-page {
    padding: 14px;
  }

  .brand-head {
    padding: 6px 2px 0;
  }

  .content-panel {
    padding: 0;
  }

  .content-stage {
    min-height: auto;
    padding: 22px 20px 20px;
  }

  .content-copy {
    max-width: none;
  }

  .content-copy h2 {
    font-size: 26px;
  }

  .content-rail {
    margin-top: 18px;
    grid-template-columns: 1fr;
  }

  .rail-line {
    display: none;
  }

  .content-points {
    margin-top: 14px;
  }

  .content-meta {
    flex-direction: column;
    gap: 6px;
    margin: 20px 0 16px;
  }

  .meta-item {
    padding: 0;
  }

  .meta-item + .meta-item::before {
    display: none;
  }

  .content-card-strip {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .strip-item {
    padding: 18px 20px;
  }

  .strip-item + .strip-item {
    border-left: 0;
    border-top: 1px solid rgba(154, 176, 205, 0.18);
  }
}
