html.krakken-production-auth,
html.krakken-production-auth body {
  min-height: 100%;
  margin: 0;
}

html.krakken-production-auth body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(470px, .92fr);
  background: #f3f6fb;
  color: #101b33;
}

html.krakken-production-auth #root {
  min-width: 0;
  min-height: 100vh;
  grid-column: 2;
  grid-row: 1;
}

html.krakken-production-auth #root > div.font-body {
  min-height: 100vh !important;
  background: #fff !important;
}

html.krakken-production-auth #root header {
  display: none !important;
}

html.krakken-production-auth #root main {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  padding: 40px 48px !important;
  box-sizing: border-box;
}

html.krakken-production-auth #root main > section {
  width: 100% !important;
  max-width: 470px !important;
}

html.krakken-production-auth #root main > section > div:first-child h1 {
  font-size: clamp(40px, 4vw, 48px) !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
}

html.krakken-production-auth #root form input,
html.krakken-production-auth #root form button[type="submit"] {
  height: 52px !important;
}

html.krakken-production-auth #root form + button {
  margin-top: 24px !important;
}

#krakken-production-auth-scene {
  position: relative;
  isolation: isolate;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  border-right: 1px solid #d9e1ed;
  background:
    radial-gradient(circle at 50% 40%, rgba(118, 178, 255, .26), transparent 31%),
    linear-gradient(155deg, #f4f8ff 0%, #e8f0fb 54%, #f6f9fd 100%);
  padding: 54px 64px 52px;
}

.krakken-prod-auth__line {
  position: relative;
  z-index: 10;
  width: 54px;
  height: 4px;
  background: #2459d3;
}

.krakken-prod-auth__visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.krakken-prod-auth__creature {
  position: absolute;
  top: 16%;
  left: 50%;
  width: min(88%, 590px);
  aspect-ratio: 1194 / 560;
  translate: -50% 0;
  filter: drop-shadow(0 30px 27px rgba(16, 43, 86, .2));
  animation: krakkenProdCreatureFloat 6.4s ease-in-out infinite;
}

.krakken-prod-auth__layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-image: var(--krakken-auth-mascot);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  will-change: transform;
}

.krakken-prod-auth__body {
  z-index: 3;
  clip-path: polygon(32% 0, 68% 0, 72% 100%, 28% 100%);
  transform-origin: 50% 54%;
  animation: krakkenProdBreathe 4.8s ease-in-out infinite;
}

.krakken-prod-auth__tentacle { z-index: 2; }
.krakken-prod-auth__tentacle--left-upper {
  clip-path: polygon(0 0, 45% 0, 48% 76%, 0 76%);
  transform-origin: 42% 58%;
  animation: krakkenProdTentacleLeftUpper 4.9s ease-in-out infinite;
}
.krakken-prod-auth__tentacle--right-upper {
  clip-path: polygon(55% 0, 100% 0, 100% 76%, 52% 76%);
  transform-origin: 58% 58%;
  animation: krakkenProdTentacleRightUpper 5.4s ease-in-out infinite;
}
.krakken-prod-auth__tentacle--left-lower {
  clip-path: polygon(0 42%, 54% 42%, 54% 100%, 0 100%);
  transform-origin: 44% 58%;
  animation: krakkenProdTentacleLeftLower 5.8s ease-in-out infinite;
}
.krakken-prod-auth__tentacle--right-lower {
  clip-path: polygon(46% 42%, 100% 42%, 100% 100%, 46% 100%);
  transform-origin: 56% 58%;
  animation: krakkenProdTentacleRightLower 6.2s ease-in-out infinite;
}

.krakken-prod-auth__eye {
  position: absolute;
  top: 37%;
  z-index: 5;
  width: 9%;
  aspect-ratio: 1.7;
  border-radius: 50%;
  background: rgba(139, 245, 255, .24);
  filter: blur(8px);
  animation: krakkenProdEyes 3.8s ease-in-out infinite;
}
.krakken-prod-auth__eye--left { left: 40.2%; rotate: 34deg; }
.krakken-prod-auth__eye--right { right: 40.2%; rotate: -34deg; }

.krakken-prod-auth__wordmark {
  position: absolute;
  left: 50%;
  bottom: 4%;
  z-index: 6;
  width: min(74%, 455px);
  height: auto;
  translate: -50% 0;
  filter: drop-shadow(0 8px 14px rgba(28, 69, 135, .15));
}

.krakken-prod-auth__orbit {
  position: absolute;
  left: 50%;
  top: 47%;
  border: 1px solid rgba(36, 89, 211, .13);
  border-radius: 50%;
  translate: -50% -50%;
  animation: krakkenProdOrbit 17s linear infinite;
}
.krakken-prod-auth__orbit::after {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2459d3;
  box-shadow: 0 0 18px rgba(36, 89, 211, .5);
  content: "";
}
.krakken-prod-auth__orbit--outer { width: min(79%, 560px); aspect-ratio: 1; }
.krakken-prod-auth__orbit--inner { width: min(57%, 400px); aspect-ratio: 1; animation-direction: reverse; animation-duration: 13s; }

.krakken-prod-auth__current {
  position: absolute;
  width: 90px;
  height: 2px;
  opacity: .48;
  background: linear-gradient(90deg, transparent, #2459d3, transparent);
  animation: krakkenProdCurrent 4.8s ease-in-out infinite;
}
.krakken-prod-auth__current--one { top: 40%; left: 5%; rotate: 12deg; }
.krakken-prod-auth__current--two { right: 2%; bottom: 18%; rotate: -17deg; animation-delay: -2.2s; }

.krakken-prod-auth__copy {
  position: relative;
  z-index: 10;
  max-width: 560px;
}
.krakken-prod-auth__eyebrow {
  margin: 0 0 16px;
  color: #2459d3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.krakken-prod-auth__copy h2 {
  max-width: 520px;
  margin: 0;
  color: #101b33;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(42px, 4vw, 74px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
}
.krakken-prod-auth__copy > p:last-child {
  max-width: 470px;
  margin: 20px 0 0;
  color: #536684;
  font-size: 15px;
  line-height: 1.75;
}

@keyframes krakkenProdCreatureFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.45deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(.45deg); }
}
@keyframes krakkenProdBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012, 1.018); }
}
@keyframes krakkenProdTentacleLeftUpper {
  0%, 100% { transform: rotate(0) translate3d(0, 0, 0); }
  50% { transform: rotate(-1.8deg) translate3d(-2px, 2px, 0); }
}
@keyframes krakkenProdTentacleRightUpper {
  0%, 100% { transform: rotate(0) translate3d(0, 0, 0); }
  50% { transform: rotate(1.9deg) translate3d(2px, -1px, 0); }
}
@keyframes krakkenProdTentacleLeftLower {
  0%, 100% { transform: rotate(0) translate3d(0, 0, 0); }
  50% { transform: rotate(2.1deg) translate3d(-1px, 3px, 0); }
}
@keyframes krakkenProdTentacleRightLower {
  0%, 100% { transform: rotate(0) translate3d(0, 0, 0); }
  50% { transform: rotate(-2deg) translate3d(2px, 2px, 0); }
}
@keyframes krakkenProdEyes {
  0%, 100% { opacity: .45; scale: .92; }
  50% { opacity: .9; scale: 1.05; }
}
@keyframes krakkenProdOrbit { to { rotate: 360deg; } }
@keyframes krakkenProdCurrent {
  0%, 100% { opacity: .18; scale: .78 1; }
  50% { opacity: .62; scale: 1.12 1; }
}

@media (max-width: 1100px) {
  #krakken-production-auth-scene { padding-inline: 40px; }
  .krakken-prod-auth__copy h2 { font-size: clamp(38px, 4.8vw, 58px); }
}

@media (max-width: 899px) {
  html.krakken-production-auth body {
    display: block;
    min-height: 100%;
    background: #fff;
  }
  #krakken-production-auth-scene {
    display: flex;
    min-height: 248px;
    height: 248px;
    padding: 18px 22px 10px;
    border-right: 0;
    border-bottom: 1px solid #d9e1ed;
  }
  .krakken-prod-auth__line,
  .krakken-prod-auth__copy { display: none; }
  .krakken-prod-auth__visual { min-height: 0; }
  .krakken-prod-auth__creature { top: 3%; width: min(88%, 390px); }
  .krakken-prod-auth__wordmark { bottom: 0; width: min(72%, 300px); }
  .krakken-prod-auth__orbit--outer { width: min(76%, 350px); }
  .krakken-prod-auth__orbit--inner { width: min(54%, 250px); }
  html.krakken-production-auth #root {
    min-height: auto;
  }
  html.krakken-production-auth #root > div.font-body {
    min-height: calc(100vh - 248px) !important;
  }
  html.krakken-production-auth #root main {
    min-height: calc(100vh - 248px) !important;
    align-items: flex-start !important;
    padding: 28px 20px 32px !important;
  }
}

@media (max-width: 420px) {
  #krakken-production-auth-scene { height: 220px; min-height: 220px; }
  html.krakken-production-auth #root > div.font-body,
  html.krakken-production-auth #root main { min-height: calc(100vh - 220px) !important; }
  html.krakken-production-auth #root main { padding-inline: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .krakken-prod-auth__creature,
  .krakken-prod-auth__body,
  .krakken-prod-auth__tentacle,
  .krakken-prod-auth__eye,
  .krakken-prod-auth__orbit,
  .krakken-prod-auth__current {
    animation: none !important;
    transform: none !important;
  }
}
