/* =========================================================
   GRAND LOGIN / REGISTER LANDING PAGE - THE HIVE
========================================================= */

.hive-login-hero {
  font-family: "Poppins", Arial, sans-serif;
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(0, 244, 156, 0.24), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(148, 163, 184, 0.13), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0, 244, 156, 0.15), transparent 34%),
    linear-gradient(135deg, #000000 0%, #03110b 44%, #000000 100%);
  isolation: isolate;
}

/* Hex pattern + angled shine */
.hive-login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='84' height='72' viewBox='0 0 84 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(0,244,156,0.30)' stroke-width='1.15'%3E%3Cpath d='M21 1 L42 13 L42 37 L21 49 L0 37 L0 13 Z'/%3E%3Cpath d='M63 1 L84 13 L84 37 L63 49 L42 37 L42 13 Z'/%3E%3Cpath d='M42 37 L63 49 L63 73 L42 85 L21 73 L21 49 Z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(115deg, rgba(0, 244, 156, 0.13), transparent 35%, rgba(255, 255, 255, 0.045) 62%, rgba(0, 244, 156, 0.1));
  background-size: 84px 72px, 100% 100%;
  opacity: 0.86;
  pointer-events: none;
  z-index: -5;
}

/* Dark center vignette so text stays readable */
.hive-login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.72) 76%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
  pointer-events: none;
  z-index: -4;
}

/* Bee canvas */
.hive-bee-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: auto;
  opacity: 0.9;
}

/* Moving faint glow wash */
.hive-login-hero .hive-login-bg-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.7;
  pointer-events: none;
  z-index: -3;
  animation: hiveGlowFloat 7s ease-in-out infinite alternate;
}

.hive-login-bg-glow-one {
  width: 460px;
  height: 460px;
  left: -150px;
  top: 8%;
  background: rgba(0, 244, 156, 0.2);
}

.hive-login-bg-glow-two {
  width: 520px;
  height: 520px;
  right: -190px;
  bottom: 5%;
  background: rgba(0, 168, 107, 0.2);
  animation-delay: -2s;
}

.hive-login-bg-glow-three {
  width: 300px;
  height: 300px;
  left: 48%;
  top: -120px;
  background: rgba(255, 255, 255, 0.08);
  animation-delay: -4s;
}

@keyframes hiveGlowFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(28px, -22px, 0) scale(1.08);
  }
}

.hive-login-shell {
  width: 100%;
  max-width: 980px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hive-login-card {
  width: min(100%, 850px);
  position: relative;
  text-align: center;
  padding: 66px 54px;
  border-radius: 36px;
  border: 1px solid rgba(0, 244, 156, 0.34);
  background:
    linear-gradient(180deg, rgba(5, 14, 10, 0.82), rgba(0, 0, 0, 0.92)),
    rgba(0, 0, 0, 0.78);
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.045) inset,
    0 0 90px rgba(0, 244, 156, 0.15);
  backdrop-filter: blur(18px);
  transform-origin: center;
  animation: hiveCardEnter 520ms cubic-bezier(.18, .95, .32, 1.18) both;
}

.hive-login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 36px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 244, 156, 0.95),
    rgba(255, 255, 255, 0.08),
    rgba(0, 168, 107, 0.52)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hive-login-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 28px;
  border: 1px solid rgba(0, 244, 156, 0.08);
  pointer-events: none;
}

@keyframes hiveCardEnter {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Welcome pill - no longer flat */
.hive-login-kicker {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(0, 244, 156, 0.18), rgba(0, 244, 156, 0.045)),
    rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(0, 244, 156, 0.44);
  color: #00f49c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow:
    0 0 24px rgba(0, 244, 156, 0.17),
    0 10px 28px rgba(0, 0, 0, 0.25),
    inset 0 0 22px rgba(0, 244, 156, 0.08);
  animation: hivePillPop 650ms cubic-bezier(.18, .95, .32, 1.25) both 120ms,
             hivePillPulse 1.9s ease-in-out infinite 850ms;
}

.hive-login-kicker::before {
  content: "";
  position: absolute;
  top: -80%;
  left: -40%;
  width: 38%;
  height: 260%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.34),
    transparent
  );
  transform: rotate(24deg);
  animation: hivePillShine 2.4s ease-in-out infinite;
}

.hive-login-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #00f49c;
  box-shadow: 0 0 18px rgba(0, 244, 156, 0.95);
  animation: hiveDotPulse 850ms ease-in-out infinite alternate;
}

.hive-login-kicker-spark {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.8),
    0 0 18px rgba(0, 244, 156, 0.7);
  animation: hiveSparkBlink 1.1s ease-in-out infinite;
}

@keyframes hivePillPop {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.88);
  }

  70% {
    opacity: 1;
    transform: translateY(0) scale(1.06);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hivePillPulse {
  0%, 100% {
    box-shadow:
      0 0 24px rgba(0, 244, 156, 0.17),
      0 10px 28px rgba(0, 0, 0, 0.25),
      inset 0 0 22px rgba(0, 244, 156, 0.08);
  }

  50% {
    box-shadow:
      0 0 38px rgba(0, 244, 156, 0.32),
      0 12px 34px rgba(0, 0, 0, 0.33),
      inset 0 0 30px rgba(0, 244, 156, 0.15);
  }
}

@keyframes hivePillShine {
  0% {
    left: -42%;
  }

  48%, 100% {
    left: 132%;
  }
}

@keyframes hiveDotPulse {
  from {
    transform: scale(0.82);
    opacity: 0.7;
  }

  to {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes hiveSparkBlink {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

/* Fast spin + slap landing */
.hive-login-title {
  max-width: 780px;
  margin: 0 auto 18px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.07em;
  text-shadow:
    0 0 26px rgba(0, 244, 156, 0.18),
    0 10px 34px rgba(0, 0, 0, 0.65);
}

.hive-title-slap {
  transform-origin: center;
  animation: hiveTitleSpinSlap 760ms cubic-bezier(.13, .92, .26, 1.2) both 220ms;
}

@keyframes hiveTitleSpinSlap {
  0% {
    opacity: 0;
    transform: rotate(-1080deg) scale(0.22);
    filter: blur(10px);
  }

  54% {
    opacity: 1;
    transform: rotate(24deg) scale(1.2);
    filter: blur(0);
  }

  72% {
    transform: rotate(-8deg) scale(0.92);
  }

  86% {
    transform: rotate(3deg) scale(1.05);
  }

  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    filter: blur(0);
  }
}

.hive-login-subtext {
  max-width: 660px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.55;
  font-weight: 500;
  animation: hiveFadeUp 560ms ease both 720ms;
}

@keyframes hiveFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hive-login-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
  animation: hiveFadeUp 560ms ease both 880ms;
}

.hive-login-btn {
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.hive-login-btn:hover {
  transform: translateY(-2px);
  text-decoration: none !important;
}

.hive-login-btn-primary {
  color: #00140c !important;
  background: linear-gradient(135deg, #00f49c 0%, #5fffd0 100%);
  border: 1px solid rgba(0, 244, 156, 0.95);
  box-shadow:
    0 16px 36px rgba(0, 244, 156, 0.24),
    0 0 28px rgba(0, 244, 156, 0.2);
}

.hive-login-btn-primary:hover {
  color: #00140c !important;
  box-shadow:
    0 20px 46px rgba(0, 244, 156, 0.36),
    0 0 42px rgba(0, 244, 156, 0.32);
}

.hive-login-btn-secondary {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hive-login-btn-secondary:hover {
  color: #ffffff !important;
  border-color: rgba(0, 244, 156, 0.7);
  background: rgba(0, 244, 156, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.hive-login-footer-note {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  font-weight: 600;
  animation: hiveFadeUp 560ms ease both 1s;
}

/* Optional: hide default Power Pages title/breadcrumb if they appear */
.page-heading,
.breadcrumb {
  display: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hive-title-slap,
  .hive-login-kicker,
  .hive-login-card,
  .hive-login-subtext,
  .hive-login-actions,
  .hive-login-footer-note,
  .hive-login-bg-glow,
  .hive-login-pulse-dot,
  .hive-login-kicker-spark,
  .hive-login-kicker::before {
    animation: none !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hive-login-hero {
    padding: 42px 16px;
  }

  .hive-login-card {
    padding: 46px 24px;
    border-radius: 28px;
  }

  .hive-login-card::before {
    border-radius: 28px;
  }

  .hive-login-card::after {
    inset: 10px;
    border-radius: 22px;
  }

  .hive-login-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hive-login-btn {
    width: 100%;
    min-width: 0;
  }

  .hive-login-title {
    letter-spacing: -0.045em;
  }

  .hive-login-kicker {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}


/* =========================================================
   MOBILE FRIENDLY LOGIN PAGE
========================================================= */

@media (max-width: 900px) {
  .hive-login-hero {
    min-height: 100svh;
    padding: 44px 18px;
    align-items: center;
  }

  .hive-login-card {
    width: 100%;
    max-width: 680px;
    padding: 52px 34px;
    border-radius: 30px;
  }

  .hive-login-card::before {
    border-radius: 30px;
  }

  .hive-login-card::after {
    inset: 12px;
    border-radius: 24px;
  }

  .hive-login-title {
    font-size: clamp(40px, 9vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  .hive-login-subtext {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.5;
  }

  .hive-login-bg-glow-one {
    width: 340px;
    height: 340px;
    left: -150px;
    top: 4%;
  }

  .hive-login-bg-glow-two {
    width: 360px;
    height: 360px;
    right: -160px;
    bottom: 2%;
  }

  .hive-login-bg-glow-three {
    width: 230px;
    height: 230px;
    top: -100px;
  }
}

@media (max-width: 640px) {
  .hive-login-hero {
    min-height: 100svh;
    padding: 32px 14px;
  }

  .hive-login-hero::before {
    background-size: 64px 55px, 100% 100%;
    opacity: 0.72;
  }

  .hive-login-card {
    padding: 42px 22px 34px;
    border-radius: 26px;
  }

  .hive-login-card::before {
    border-radius: 26px;
  }

  .hive-login-card::after {
    inset: 9px;
    border-radius: 20px;
  }

  .hive-login-kicker {
    max-width: 100%;
    padding: 9px 13px;
    gap: 8px;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.085em;
    white-space: nowrap;
  }

  .hive-login-pulse-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
  }

  .hive-login-kicker-spark {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
  }

  .hive-login-title {
    margin-bottom: 16px;
    font-size: clamp(38px, 13vw, 54px);
    line-height: 0.96;
    letter-spacing: -0.05em;
  }

  .hive-login-subtext {
    font-size: 15px;
    line-height: 1.48;
    max-width: 95%;
  }

  .hive-login-actions {
    width: 100%;
    margin-top: 30px;
    flex-direction: column;
    gap: 12px;
  }

  .hive-login-btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 14px 22px;
    font-size: 14px;
  }

  .hive-login-footer-note {
    margin-top: 22px;
    font-size: 12px;
    line-height: 1.4;
  }

  .hive-bee-canvas {
    opacity: 0.72;
  }
}

@media (max-width: 420px) {
  .hive-login-hero {
    padding: 24px 10px;
  }

  .hive-login-card {
    padding: 38px 18px 30px;
    border-radius: 24px;
  }

  .hive-login-card::before {
    border-radius: 24px;
  }

  .hive-login-card::after {
    display: none;
  }

  .hive-login-kicker {
    font-size: 9px;
    letter-spacing: 0.07em;
    padding: 8px 11px;
  }

  .hive-login-title {
    font-size: clamp(34px, 14vw, 48px);
  }

  .hive-login-subtext {
    font-size: 14px;
  }

  .hive-login-btn {
    min-height: 50px;
  }
}

/* Landscape phone fix */
@media (max-height: 560px) and (orientation: landscape) {
  .hive-login-hero {
    min-height: auto;
    padding: 22px 16px;
  }

  .hive-login-card {
    padding: 28px 28px;
  }

  .hive-login-kicker {
    margin-bottom: 12px;
  }

  .hive-login-title {
    font-size: clamp(32px, 7vw, 48px);
    margin-bottom: 10px;
  }

  .hive-login-subtext {
    font-size: 14px;
    line-height: 1.35;
  }

  .hive-login-actions {
    margin-top: 20px;
    flex-direction: row;
  }

  .hive-login-btn {
    min-height: 46px;
    padding: 11px 20px;
  }

  .hive-login-footer-note {
    margin-top: 14px;
  }
}