
.hero-panel,
.login-panel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 3rem;
}

.hero-panel {
  justify-content: center;
  overflow: hidden;
}

.hero-copy {
  position: absolute;
  top: 3rem;
  left: 3rem;
  max-width: 28rem;
  z-index: 2;
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(117, 232, 255, 0.24);
  border-radius: 999px;
  background: rgba(117, 232, 255, 0.08);
  color: #c4f9ff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy h1,
.login-card h2 {
  margin: 1rem 0 0.75rem;
  line-height: 1.05;
}

.hero-copy h1 {
  max-width: 24rem;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
}

.hero-copy p,
.login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.robot-scene {
  position: relative;
  width: min(38rem, 100%);
  height: min(38rem, 90vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot {
  --robot-size: 17rem;
  --head-rotate-x: 0deg;
  --head-rotate-y: 0deg;
  position: absolute;
  width: var(--robot-size);
  height: calc(var(--robot-size) * 1.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  pointer-events: none;
  filter: drop-shadow(0 1rem 2.5rem rgba(7, 16, 32, 0.45));
}

.robot.is-cheering {
  animation: robot-hop 1.05s ease-in-out infinite;
}

.robot.is-bursting {
  animation: robot-hop-burst 0.55s ease-out 1;
}

.robot-lg {
  --robot-size: 18.5rem;
  z-index: 3;
}

.robot-left {
  --robot-size: 12rem;
  left: 2.5rem;
  bottom: 4rem;
  z-index: 2;
}

.robot-right {
  --robot-size: 11.5rem;
  right: 3rem;
  top: 8rem;
  z-index: 1;
}

.robot-left.is-cheering,
.robot-left.is-bursting {
  animation-delay: 0.08s;
}

.robot-right.is-cheering,
.robot-right.is-bursting {
  animation-delay: 0.16s;
}

.robot-shadow {
  position: absolute;
  bottom: 0.35rem;
  width: 68%;
  height: 1.4rem;
  border-radius: 50%;
  background: rgba(4, 10, 20, 0.35);
  filter: blur(10px);
}

.robot.is-cheering .robot-shadow {
  animation: shadow-bounce 1.05s ease-in-out infinite;
}

.robot.is-bursting .robot-shadow {
  animation: shadow-burst 0.55s ease-out 1;
}

.robot-neck {
  position: absolute;
  bottom: 3rem;
  width: 18%;
  height: 18%;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(163, 186, 214, 0.55));
  box-shadow:
    inset 0 -0.25rem 0 rgba(98, 121, 149, 0.45),
    0 0.5rem 1.25rem rgba(5, 12, 22, 0.28);
}

.robot-head {
  position: relative;
  width: 100%;
  height: 76%;
  border-radius: 32% 32% 38% 38%;
  background:
    linear-gradient(145deg, rgba(244, 250, 255, 0.97), rgba(166, 185, 208, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow:
    inset -0.8rem -1.2rem 1.4rem rgba(109, 129, 157, 0.22),
    inset 0.8rem 0.8rem 1.6rem rgba(255, 255, 255, 0.32),
    0 1rem 3rem rgba(3, 9, 19, 0.24);
  transform:
    perspective(900px)
    rotateX(var(--head-rotate-x))
    rotateY(var(--head-rotate-y));
  transform-origin: center 62%;
  transition: transform 90ms linear;
}

.robot-head::before,
.robot-head::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
}

.robot-head::before {
  top: 13%;
  left: 16%;
  width: 68%;
  height: 10%;
  opacity: 0.35;
}

.robot-head::after {
  left: 50%;
  bottom: 11%;
  width: 46%;
  height: 7%;
  opacity: 0.18;
  transform: translateX(-50%);
}

.antenna {
  position: absolute;
  top: -13%;
  width: 0.38rem;
  height: 14%;
  background: linear-gradient(180deg, #dff8ff, #8ba3c2);
  transform-origin: bottom;
}

.antenna::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #dfffff, #7be9ff 68%, #58c8e0);
  transform: translateX(-50%);
  box-shadow: 0 0 1rem rgba(117, 232, 255, 0.5);
}

.antenna-left {
  left: 24%;
  transform: rotate(-18deg);
}

.antenna-right {
  right: 24%;
  transform: rotate(18deg);
}

.visor {
  position: absolute;
  inset: 24% 16% auto;
  height: 35%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(10, 24, 46, 0.96), rgba(17, 44, 77, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(117, 232, 255, 0.08),
    inset 0 -0.45rem 1rem rgba(0, 0, 0, 0.24);
}

.eye {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(155, 255, 247, 0.94), rgba(84, 202, 224, 0.92));
  box-shadow:
    inset 0 0 1rem rgba(255, 255, 255, 0.32),
    0 0 1.25rem rgba(117, 232, 255, 0.26);
}

.eye::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 20%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.pupil {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36%;
  height: 36%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 38%, #ffffff, #13253e 36%, #050c16 74%);
  box-shadow: 0 0 0.55rem rgba(3, 9, 18, 0.56);
  transform: translate(-50%, -50%);
  transition: transform 80ms linear;
}

.mouth {
  position: absolute;
  left: 50%;
  bottom: 14%;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
  transition: transform 0.22s ease, gap 0.22s ease;
}

.mouth span {
  width: 1.5rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(24, 96, 196, 0.95), rgba(14, 64, 148, 0.9));
  box-shadow: 0 0 0.7rem rgba(36, 110, 214, 0.34);
  transition: transform 0.22s ease, width 0.22s ease, box-shadow 0.22s ease;
}

.robot-sm .mouth span {
  width: 1rem;
  height: 0.32rem;
}

.robot.is-cheering .mouth,
.robot.is-bursting .mouth {
  gap: 0.34rem;
  transform: translateX(-50%) translateY(0.08rem);
}

.robot.is-cheering .mouth span,
.robot.is-bursting .mouth span {
  box-shadow: 0 0 0.86rem rgba(42, 120, 230, 0.42);
}

.robot.is-cheering .mouth span:first-child,
.robot.is-bursting .mouth span:first-child {
  transform: translateY(-0.1rem) rotate(24deg);
}

.robot.is-cheering .mouth span:nth-child(2),
.robot.is-bursting .mouth span:nth-child(2) {
  width: 1.8rem;
  transform: translateY(0.16rem);
}

.robot.is-cheering .mouth span:last-child,
.robot.is-bursting .mouth span:last-child {
  transform: translateY(-0.1rem) rotate(-24deg);
}

.robot-sm.is-cheering .mouth span:nth-child(2),
.robot-sm.is-bursting .mouth span:nth-child(2) {
  width: 1.2rem;
}

@keyframes robot-hop {
  0%,
  100% {
    transform: translateY(0);
  }

  20% {
    transform: translateY(-0.55rem) scale(1.01);
  }

  45% {
    transform: translateY(-1.1rem) scale(1.03);
  }

  65% {
    transform: translateY(-0.25rem) scale(0.99);
  }
}

@keyframes robot-hop-burst {
  0% {
    transform: translateY(0) scale(1);
  }

  22% {
    transform: translateY(-0.75rem) scale(1.03);
  }

  48% {
    transform: translateY(-1.6rem) scale(1.06);
  }

  72% {
    transform: translateY(-0.2rem) scale(0.98);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes shadow-bounce {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }

  45% {
    transform: scaleX(0.82);
    opacity: 0.72;
  }
}

@keyframes shadow-burst {
  0% {
    transform: scaleX(1);
    opacity: 1;
  }

  48% {
    transform: scaleX(0.7);
    opacity: 0.58;
  }

  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.login-panel {
  justify-content: center;
}

.panel-glow {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117, 232, 255, 0.15), transparent 65%);
  filter: blur(10px);
}

.login-card {
  position: relative;
  width: min(100%, 30rem);
  padding: 2rem;
  border: 1px solid var(--panel-border);
  border-radius: 1.8rem;
  background:
    linear-gradient(180deg, rgba(15, 29, 52, 0.92), rgba(7, 15, 29, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card h2 {
  font-size: 2rem;
}

.login-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.login-form label > span,
.check span {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #dce6ff;
  font-size: 0.94rem;
  font-weight: 600;
}

.login-form input {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(157, 184, 231, 0.18);
  border-radius: 1rem;
  background: rgba(9, 18, 35, 0.88);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-form input:focus {
  border-color: rgba(117, 232, 255, 0.72);
  box-shadow: 0 0 0 0.25rem rgba(117, 232, 255, 0.12);
  transform: translateY(-1px);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.form-row a {
  color: #9eeeff;
  text-decoration: none;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.check span {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.primary-button,
.social-grid button {
  border: 0;
  border-radius: 1rem;
  cursor: pointer;
  font: inherit;
}

.primary-button {
  margin-top: 0.35rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #04101f;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 1rem 2rem rgba(97, 160, 255, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover,
.social-grid button:hover {
  transform: translateY(-2px);
}

.separator {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 1rem;
}

.separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(149, 189, 255, 0.14);
}

.separator span {
  position: relative;
  padding: 0 0.9rem;
  background: rgba(9, 18, 34, 0.98);
  color: var(--muted);
  font-size: 0.88rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.social-grid button {
  padding: 0.95rem 1rem;
  color: var(--text);
  background: rgba(14, 27, 49, 0.92);
  border: 1px solid rgba(149, 189, 255, 0.16);
}

@media (max-width: 1024px) {
  body {
    overflow: auto;
  }

  .page {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .login-panel {
    padding: 2rem 1.5rem;
  }

  .hero-panel {
    min-height: 42rem;
  }

  .hero-copy {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 2rem;
  }

  .robot-scene {
    height: 28rem;
  }

  .robot-left {
    left: 0;
    bottom: 1.8rem;
  }

  .robot-right {
    right: 0.5rem;
    top: 2.5rem;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .login-card {
    padding: 1.35rem;
  }

  .robot-scene {
    height: 22rem;
  }

  .robot-lg {
    --robot-size: 14rem;
  }

  .robot-left {
    --robot-size: 9rem;
    left: -0.5rem;
    bottom: 0.25rem;
  }

  .robot-right {
    --robot-size: 8.8rem;
    right: -0.25rem;
    top: 2.25rem;
  }

  .visor {
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
  }

  .mouth span {
    width: 1rem;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }
}
