/* Keator Capital landing and client login */

.landing-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 43%, rgba(16, 54, 86, 0.18) 0%, rgba(5, 18, 34, 0.08) 32%, rgba(2, 7, 17, 0.86) 66%, #02050d 100%),
    linear-gradient(180deg, #02040c 0%, #06162a 43%, #02040b 100%);
}

.landing-container::before,
.landing-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.landing-container::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.08) 31%, rgba(0, 0, 0, 0) 60%),
    radial-gradient(circle at 49% 23%, rgba(102, 194, 255, 0.12) 0%, rgba(102, 194, 255, 0) 21%);
}

.landing-container::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 82%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 72%, rgba(1, 3, 9, 0.82) 100%);
}

#mountainPlexus,
.mountain-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.mountain-scene {
  background:
    radial-gradient(circle at 50% 28%, rgba(91, 186, 255, 0.16) 0%, rgba(91, 186, 255, 0) 20%),
    radial-gradient(circle at 50% 60%, rgba(40, 132, 220, 0.28) 0%, rgba(40, 132, 220, 0.06) 32%, rgba(40, 132, 220, 0) 62%),
    linear-gradient(180deg, rgba(0, 4, 13, 0.2) 0%, rgba(5, 22, 43, 0.28) 48%, rgba(1, 4, 10, 0.22) 100%);
}

.mountain-scene::before,
.mountain-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mountain-scene::before {
  background:
    radial-gradient(circle at 49% 18%, rgba(255, 255, 255, 0.13) 0%, rgba(116, 212, 255, 0.08) 3%, rgba(116, 212, 255, 0) 11%),
    radial-gradient(circle at 52% 47%, rgba(83, 174, 255, 0.22) 0%, rgba(83, 174, 255, 0) 38%);
}

.mountain-scene::after {
  background:
    linear-gradient(180deg, rgba(1, 3, 10, 0.36) 0%, rgba(1, 3, 10, 0) 30%),
    linear-gradient(90deg, rgba(1, 3, 10, 0.6) 0%, rgba(1, 3, 10, 0) 13%, rgba(1, 3, 10, 0) 87%, rgba(1, 3, 10, 0.6) 100%);
}

.mountain-svg {
  position: absolute;
  inset: -1.5% 0 0;
  width: 100%;
  height: 104%;
  display: block;
}

.mountain-horizon-glow {
  fill: url("#mountainFade");
  opacity: 0.08;
}

.mountain-line,
.mountain-pulse,
.peak-flare-ray {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mountain-line {
  stroke: rgba(222, 246, 255, 0.72);
  stroke-width: 0.95px;
  filter: url("#lineGlow");
  animation: lineBreath 6.8s ease-in-out infinite;
}

.mountain-line--back {
  stroke: rgba(159, 218, 255, 0.36);
  stroke-width: 0.65px;
  animation-duration: 8.8s;
}

.mountain-line--mid {
  stroke: rgba(211, 241, 255, 0.58);
  stroke-width: 0.9px;
  animation-duration: 7.4s;
}

.mountain-line--front {
  stroke: rgba(248, 253, 255, 0.86);
  stroke-width: 1.18px;
  animation-duration: 6.2s;
}

.mountain-line--v {
  stroke-opacity: 0.28;
}

.mountain-node {
  fill: rgba(244, 252, 255, 0.86);
  filter: url("#nodeGlow");
  animation: nodeTwinkle 4.6s ease-in-out infinite;
}

.mountain-node--back {
  opacity: 0.48;
}

.mountain-node--mid {
  opacity: 0.68;
}

.mountain-node--front {
  opacity: 0.9;
}

.mountain-node--peak {
  fill: #fff;
  opacity: 1;
  animation: peakNode 3.8s ease-in-out infinite;
}

.mountain-pulse {
  stroke: rgba(255, 255, 255, 0.94);
  stroke-dasharray: 12 88;
  stroke-dashoffset: 108;
  filter: url("#nodeGlow");
  opacity: 0;
  animation-name: pulseTravel;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.peak-flare {
  opacity: 0.58;
  filter: url("#nodeGlow");
  animation: flarePulse 4.9s ease-in-out infinite;
}

.peak-flare-core {
  fill: #fff;
}

.peak-flare-ray {
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 0.9px;
}

.peak-flare-ray--wide {
  stroke-width: 1.1px;
}

.peak-flare-ray--tall {
  stroke-width: 1.25px;
}

@keyframes lineBreath {
  0%,
  100% {
    stroke-opacity: 0.55;
  }

  50% {
    stroke-opacity: 0.96;
  }
}

@keyframes nodeTwinkle {
  0%,
  100% {
    opacity: 0.48;
  }

  45% {
    opacity: 1;
  }
}

@keyframes peakNode {
  0%,
  100% {
    opacity: 0.8;
  }

  45% {
    opacity: 1;
  }
}

@keyframes flarePulse {
  0%,
  100% {
    opacity: 0.28;
  }

  48% {
    opacity: 0.98;
  }
}

@keyframes pulseTravel {
  0% {
    opacity: 0;
    stroke-dashoffset: 112;
  }

  12% {
    opacity: 0.95;
  }

  72% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

/* Concept-art mountain mask treatment */
.mountain-scene {
  --mountain-mask: url("../assets/keator-mountain-wire-alpha.png");
  background:
    linear-gradient(180deg, rgba(0, 3, 12, 0.04) 0%, rgba(6, 18, 34, 0.08) 48%, rgba(0, 2, 8, 0.1) 100%);
}

.mountain-scene::before {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.1) 0%, rgba(130, 212, 255, 0.045) 5%, rgba(130, 212, 255, 0) 15%);
  z-index: 0;
}

.mountain-scene::after {
  z-index: 4;
}

.mountain-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: var(--mountain-mask);
  mask-image: var(--mountain-mask);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transform-origin: 50% 58%;
}

.mountain-art--glow {
  z-index: 1;
  background: rgba(91, 201, 255, 0.95);
  opacity: 0.14;
  filter: blur(3px) drop-shadow(0 0 12px rgba(85, 195, 255, 0.26));
  transform: scale(1.006);
  animation: mountainGlowBreath 9s ease-in-out infinite;
}

.mountain-art--white {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(245, 252, 255, 0.92) 55%, rgba(215, 240, 255, 0.66) 100%);
  opacity: 0.82;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.7))
    drop-shadow(0 0 6px rgba(97, 204, 255, 0.18));
  animation: whiteTracePulse 7.8s ease-in-out infinite;
}

.mountain-art--gold {
  z-index: 3;
  background:
    linear-gradient(180deg, #fff6bd 0%, #ffd56a 18%, #b66d0c 38%, #f5b72f 58%, #fff0a3 72%, #8a4e08 100%),
    linear-gradient(90deg, #6f3b04 0%, #f1ad26 16%, #fff4b8 31%, #c77b0c 48%, #ffd45f 66%, #754004 100%);
  background-size: 100% 100%, 100% 100%;
  background-position: center;
  background-blend-mode: overlay, normal;
  clip-path: inset(100% 0 0 0);
  opacity: 0;
  filter:
    drop-shadow(0 0 7px rgba(255, 215, 82, 0.92))
    drop-shadow(0 0 24px rgba(214, 142, 22, 0.7));
  animation: goldVeinRise 22s cubic-bezier(0.36, 0, 0.2, 1) infinite;
  animation-delay: -5s;
}

@keyframes mountainGlowBreath {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(1.004);
  }

  48% {
    opacity: 0.2;
    transform: scale(1.008);
  }
}

@keyframes whiteTracePulse {
  0%,
  100% {
    opacity: 0.78;
    filter:
      drop-shadow(0 0 2px rgba(255, 255, 255, 0.66))
      drop-shadow(0 0 11px rgba(97, 204, 255, 0.22));
  }

  50% {
    opacity: 0.9;
    filter:
      drop-shadow(0 0 3px rgba(255, 255, 255, 0.9))
      drop-shadow(0 0 18px rgba(119, 218, 255, 0.4));
  }
}

@keyframes goldVeinRise {
  0% {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
  }

  12% {
    opacity: 0.96;
    clip-path: inset(86% 0 0 0);
  }

  54% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }

  72% {
    opacity: 0.94;
    clip-path: inset(0 0 0 0);
  }

  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }
}

header {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(34px, 4.8vh, 58px) clamp(46px, 5.5vw, 112px) 0;
}

.logo-container {
  display: flex;
  align-items: flex-start;
}

.brand-logo {
  display: block;
  width: clamp(260px, 24vw, 470px);
  height: auto;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.14))
    drop-shadow(0 0 26px rgba(42, 164, 255, 0.16));
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(34px, 4vw, 70px);
  padding-top: 14px;
  white-space: nowrap;
}

.nav-link {
  color: rgba(245, 250, 255, 0.82);
  font-size: clamp(0.9rem, 0.88vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
  transition: color 180ms var(--ease-smooth), text-shadow 180ms var(--ease-smooth);
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 16px rgba(113, 204, 255, 0.55);
}

.main-content {
  position: absolute;
  z-index: 6;
  inset: 19vh 0 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.login-card {
  position: relative;
  width: clamp(360px, 21.8vw, 448px);
  min-height: 378px;
  padding: 52px 39px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  border-radius: 20px;
  border: 1px solid rgba(235, 247, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(0, 4, 10, 0.22), rgba(0, 2, 7, 0.32));
  box-shadow:
    0 30px 82px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -34px 70px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px) saturate(0.72) brightness(0.68);
  -webkit-backdrop-filter: blur(18px) saturate(0.72) brightness(0.68);
  pointer-events: auto;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 42%);
  opacity: 0.58;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.input-container {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 23px;
  top: 50%;
  width: 25px;
  height: 25px;
  transform: translateY(-50%);
  color: rgba(238, 246, 255, 0.88);
  opacity: 0.9;
  pointer-events: none;
}

.form-input {
  width: 100%;
  height: 62px;
  padding: 0 58px 0 62px;
  border: 2px solid rgba(245, 250, 255, 0.88);
  border-radius: 999px;
  background: rgba(3, 10, 20, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: clamp(1rem, 1.18vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  outline: none;
  box-shadow:
    inset 0 0 22px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(255, 255, 255, 0.03);
  transition: border-color 180ms var(--ease-smooth), box-shadow 180ms var(--ease-smooth), background 180ms var(--ease-smooth);
}

.form-input::placeholder {
  color: rgba(240, 247, 255, 0.9);
  text-transform: uppercase;
}

.form-input:focus {
  border-color: #fff;
  background: rgba(6, 20, 38, 0.56);
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(72, 182, 255, 0.33);
}

.toggle-password {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 25px;
  height: 25px;
  padding: 0;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(238, 246, 255, 0.88);
  cursor: pointer;
}

.toggle-password svg {
  width: 100%;
  height: 100%;
}

.btn-login {
  height: 62px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2db4ff 0%, #0986f1 100%);
  color: #fff;
  font-family: inherit;
  font-size: clamp(1rem, 1.08vw, 1.17rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(0, 141, 255, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 160ms var(--ease-smooth), filter 160ms var(--ease-smooth), box-shadow 160ms var(--ease-smooth);
}

.btn-login:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 16px 34px rgba(0, 141, 255, 0.48),
    0 0 22px rgba(82, 197, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-login:active {
  transform: translateY(1px);
}

.request-access {
  align-self: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.85rem, 0.86vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.request-access:hover {
  color: #fff;
  text-shadow: 0 0 18px rgba(88, 195, 255, 0.6);
}

.error-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: -2px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 76, 108, 0.52);
  border-radius: 10px;
  background: rgba(255, 56, 87, 0.14);
  color: #ffb6c2;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.footer-link {
  color: rgba(244, 249, 255, 0.86);
  font-size: clamp(0.86rem, 0.92vw, 1.03rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-link:hover {
  color: #fff;
  text-shadow: 0 0 16px rgba(113, 204, 255, 0.5);
}

@media (max-width: 980px) {
  .landing-container {
    min-height: 760px;
  }

  header {
    align-items: center;
    padding: 28px 30px 0;
  }

  .brand-logo {
    width: clamp(210px, 42vw, 330px);
  }

  .top-nav {
    gap: 20px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow: auto;
  }

  .landing-container {
    min-height: 780px;
  }

  header {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    padding: 18px 16px 0;
  }

  .brand-logo {
    width: clamp(260px, 72vw, 360px);
  }

  .top-nav {
    display: flex;
    justify-content: center;
    gap: clamp(14px, 4.3vw, 24px);
    width: 100%;
    padding-top: 0;
    white-space: nowrap;
  }

  .nav-link {
    font-size: clamp(0.68rem, 2.65vw, 0.88rem);
    letter-spacing: 0.055em;
  }

  .main-content {
    inset: 205px 18px 92px;
  }

  .login-card {
    width: min(100%, 420px);
    min-height: 340px;
    padding: 38px 22px 30px;
    border-radius: 18px;
  }

  .form-input,
  .btn-login {
    height: 56px;
  }

  footer {
    bottom: 24px;
  }
}

/* Approved static hero background */
.landing-container {
  background:
    linear-gradient(180deg, rgba(0, 2, 8, 0.02), rgba(0, 2, 8, 0.24)),
    url("../assets/keator-mountain-concept-v2.webp") center / cover no-repeat,
    #02050d;
}

.landing-container::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.05) 32%, rgba(0, 0, 0, 0) 64%);
}

.landing-container::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0) 17%, rgba(0, 0, 0, 0) 83%, rgba(0, 0, 0, 0.52) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 76%, rgba(1, 3, 9, 0.82) 100%);
}

#mountainPlexus,
.mountain-scene,
.mountain-art {
  display: none;
}

.login-card {
  border: 1px solid rgba(230, 246, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    rgba(1, 5, 12, 0.38);
  box-shadow:
    0 26px 62px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -32px 52px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px) saturate(0.9);
  -webkit-backdrop-filter: blur(16px) saturate(0.9);
}

.login-card::before {
  inset: 0;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 48%);
  opacity: 0.42;
}

.form-input {
  background: rgba(1, 6, 14, 0.18);
  border-color: rgba(245, 250, 255, 0.82);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.2),
    0 0 12px rgba(255, 255, 255, 0.025);
}

@media (max-width: 760px) {
  .landing-container {
    background-position: center;
  }
}
