:root {
  --ink: #092033;
  --blue: #005f93;
  --orange: #f39a1b;
  --paper: #f5f7f9;
  --line: #d8e4eb;
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }

.launch-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 50% 48%, #123f5a 0, #092033 36%, #061420 78%);
  pointer-events: auto;
  animation: launch-exit 3.6s cubic-bezier(.65, 0, .35, 1) forwards;
}
.launch-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 17%, rgba(3, 14, 24, .64) 75%);
  pointer-events: none;
}
.launch-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.launch-type {
  position: absolute;
  top: calc(50% + min(27vw, 245px));
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 9px;
  width: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: launch-type 3.15s ease both;
}
.launch-name {
  font-size: clamp(56px, 8vw, 122px);
  font-weight: 800;
  letter-spacing: -.09em;
  line-height: .95;
}
.launch-caption {
  color: #a7c8d5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-align: center;
}
.launch-skip {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  bottom: clamp(18px, 4vw, 48px);
  z-index: 1;
  padding: 10px 2px;
  border: 0;
  background: transparent;
  color: #b8d6e2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: color .18s ease;
}
.launch-skip:hover { color: #fff; }
.launch-skip:focus-visible { outline: 2px solid #f39a1b; outline-offset: 5px; }
.launch-skip span { margin-left: 7px; color: #f39a1b; }
.skip-intro .launch-screen { display: none; }
@keyframes launch-type {
  0%, 38% { opacity: 0; transform: translate(-50%, 22px); }
  58%, 78% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -20px); }
}
@keyframes launch-exit {
  0%, 78% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(420px, .87fr);
  min-height: 100dvh;
}
.brand-side {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
  padding: 35px clamp(35px, 5.2vw, 90px) 30px;
  color: #fff;
  background: radial-gradient(circle at 70% 38%, #15425d, #09283e 46%, #071b2d 85%);
}
.brand-side::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(142, 189, 208, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 189, 208, .055) 1px, transparent 1px);
  background-size: 94px 94px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 75%, transparent);
  pointer-events: none;
}
.brand-side::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(0deg, rgba(6, 24, 39, .92), transparent 52%), linear-gradient(90deg, rgba(6, 24, 39, .33), transparent 60%);
  pointer-events: none;
}
.brand-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.cube-stage {
  position: absolute;
  top: 6%;
  right: -8%;
  width: min(90%, 680px);
  height: 77%;
  perspective: 1000px;
  transform-style: preserve-3d;
  pointer-events: auto;
}
.cube-live { touch-action: none; cursor: grab; }
.cube-live:active { cursor: grabbing; }
.cube-stage:focus-visible { outline: none; }
.cube-stage:focus-visible::after { padding: 5px 7px; color: #092033; background: #f39a1b; }
.cube-stage::after {
  content: "360°";
  position: absolute;
  right: 10%;
  bottom: 6%;
  color: #9dd9e5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.cube-live:hover::after, .cube-live:focus-visible::after { opacity: .85; }
.cube-art {
  display: block;
  width: 100%;
  height: 100%;
  opacity: .94;
  filter: drop-shadow(0 45px 65px rgba(0, 10, 20, .43));
  animation: cube-arrive 1.3s cubic-bezier(.16, 1, .3, 1) 3.05s both;
}
.cube-object {
  --cube-size: 320px;
  position: absolute;
  top: 47%;
  left: 50%;
  width: var(--cube-size);
  height: var(--cube-size);
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.17, .84, .25, 1);
  animation: cube-reveal 1.2s ease-out 3.05s backwards;
}
.cube-object.is-dragging { transition: none; }
.cube-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(180, 230, 238, .68);
  backface-visibility: hidden;
  background: linear-gradient(145deg, #1a5878, #092b43 72%);
  box-shadow: inset 0 0 0 14px rgba(142, 203, 222, .055), inset 0 0 75px rgba(4, 18, 31, .48);
}
.cube-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(163, 222, 233, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(163, 222, 233, .075) 1px, transparent 1px);
  background-size: 20% 20%;
  pointer-events: none;
}
.cube-face::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(178, 227, 235, .27);
  box-shadow: inset 0 0 0 1px rgba(132, 201, 219, .1);
  pointer-events: none;
}
.cube-face--front { transform: translateZ(calc(var(--cube-size) / 2)); }
.cube-face--back { transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-face--right { transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2)); background: linear-gradient(145deg, #0e4263, #061e32 78%); }
.cube-face--left { transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); background: linear-gradient(145deg, #1b6281, #08283e 78%); }
.cube-face--top { transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2)); background: linear-gradient(135deg, #377e9e, #123d5b 65%, #08263d); border-color: rgba(199, 240, 244, .8); }
.cube-face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); background: #092438; }
.cube-face--top::after { border-color: rgba(216, 244, 247, .42); }
.cube-face--right { border-top-color: #f39a1b; }
.cube-traces { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; overflow: visible; }
.cube-traces path { vector-effect: non-scaling-stroke; stroke-width: 1.2; }
.cube-perimeter-signal { stroke: #d0f9f9; stroke-width: 1.4; stroke-dasharray: 6 94; filter: drop-shadow(0 0 2px rgba(208, 249, 249, .7)); animation: trace-travel 7s linear infinite; }
.cube-trace-base { stroke: rgba(171, 221, 233, .41); }
.cube-trace-signal { stroke: #f8bb61; stroke-width: 2.4 !important; stroke-dasharray: 15 85; filter: drop-shadow(0 0 2px rgba(248, 187, 97, .7)); animation: trace-travel 3.8s linear infinite; }
.cube-trace-signal.alt { stroke: #b9f5f5; animation-duration: 4.9s; animation-delay: -2.8s; }
.cube-trace-node { fill: #b4e7ed; animation: node-pulse 2.5s ease-in-out infinite alternate; }
.cube-trace-node.warm { fill: #f39a1b; animation-delay: -1.7s; }
.cube-beam {
  position: absolute;
  inset: -30% auto -30% -36%;
  width: 22%;
  transform: translateX(-150%) rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(173, 232, 240, .27), transparent);
  animation: face-beam 6.4s linear infinite;
  pointer-events: none;
}
.cube-face--right .cube-beam { animation-delay: -3s; }
.cube-face--left .cube-beam { animation-delay: -5.5s; }
.cube-face--top .cube-beam { animation-delay: -1.5s; }
.cube-core {
  position: absolute;
  inset: 36%;
  border: 1px solid rgba(216, 246, 248, .83);
  background: radial-gradient(circle, rgba(255, 183, 73, .54), rgba(7, 35, 54, .8) 58%);
  box-shadow: 0 0 30px rgba(244, 157, 40, .2), inset 0 0 22px rgba(245, 179, 72, .29);
  animation: core-pulse 4.6s ease-in-out infinite alternate;
}
.cube-core::after { content: ""; position: absolute; inset: 32%; background: #f39a1b; box-shadow: 0 0 15px rgba(243, 154, 27, .75); }
.cube-live .cube-art { visibility: hidden; }
@keyframes cube-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes trace-travel { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes node-pulse { to { opacity: .28; } }
@keyframes face-beam { 0%, 16% { transform: translateX(-150%) rotate(18deg); opacity: 0; } 22% { opacity: 1; } 42%, 100% { transform: translateX(730%) rotate(18deg); opacity: 0; } }
@keyframes core-pulse { to { box-shadow: 0 0 43px rgba(244, 157, 40, .4), inset 0 0 30px rgba(245, 179, 72, .48); } }
.cube-core-glow { transform-origin: 300px 188px; animation: core-breathe 6s ease-in-out 4.2s infinite alternate; }
.cube-light-run { stroke-dasharray: 52 900; stroke-dashoffset: 590; animation: cube-sweep 2.2s ease-out 3.55s both; }
@keyframes cube-arrive {
  from { opacity: 0; transform: translate3d(25px, 35px, 0) scale(.9); }
  to { opacity: .94; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes cube-sweep { to { stroke-dashoffset: -530; } }
@keyframes core-breathe { to { opacity: .48; transform: scale(.87); } }
.brand-header, .brand-center, .brand-footer { position: relative; z-index: 1; }
.brand-header { animation: settle-in .85s ease-out both; }
.brand-logo { display: block; width: min(235px, 100%); height: auto; object-fit: contain; object-position: left center; }
.brand-center { margin: auto 0 24px; animation: settle-in 1s ease-out .32s both; }
.brand-overline {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffb84e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
}
.brand-overline::before { content: ""; width: 21px; height: 2px; flex: none; background: var(--orange); }
.brand-title {
  margin: 11px 0 0;
  font-size: clamp(110px, 14.5vw, 205px);
  font-weight: 800;
  letter-spacing: -.12em;
  line-height: .9;
}
.brand-title span { color: var(--orange); }
.brand-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .73);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  animation: face-illuminate .85s ease-out .6s both;
}
@keyframes face-illuminate {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes settle-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.skip-intro .brand-header, .skip-intro .brand-center,
.skip-intro .brand-footer, .skip-intro .form-content { animation: none !important; }
.skip-intro .cube-art, .skip-intro .cube-object, .skip-intro .cube-core-glow { animation: none !important; }
.skip-intro .cube-light-run { display: none; }

.form-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 100dvh;
  padding: 38px clamp(38px, 6vw, 105px) 34px;
  background: var(--paper);
}
.form-content {
  width: min(100%, 420px);
  margin: auto;
  padding: 50px 0;
  animation: settle-in .9s ease-out .18s both;
}
.form-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.form-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.form-content h1 { margin: 18px 0 37px; font-size: clamp(43px, 4.2vw, 57px); font-weight: 700; letter-spacing: -.065em; line-height: 1; }
.field { margin-bottom: 21px; }
.field label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.field input {
  width: 100%; height: 54px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
  color: var(--ink); background: #fff; font-size: 15px;
  transition: border-color .18s, box-shadow .18s;
}
.field input:hover { border-color: #a8bfcc; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 95, 147, .14); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 102px; }
.show-password {
  position: absolute; top: 8px; right: 8px; bottom: 8px; padding: 0 11px;
  border: 0; border-radius: 5px; color: var(--blue); background: transparent;
  font-size: 12px; font-weight: 700;
}
.show-password:hover { background: #ecf3f7; }
.form-error { margin: 0 0 16px; padding: 11px 13px; border-radius: 7px; color: #a72d38; background: #fff0f1; font-size: 13px; }
.form-error[hidden] { display: none; }
.submit {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 56px; margin-top: 30px; padding: 0 19px;
  border: 1px solid #d98916; border-radius: 8px; color: var(--ink);
  background: var(--orange); font-size: 15px; font-weight: 800;
  transition: background .18s, transform .18s;
}
.submit:hover { background: #ffac34; }
.submit:active { transform: translateY(1px); }
.submit span { font-size: 22px; font-weight: 400; line-height: 1; }
.submit:focus-visible, .show-password:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; color: #748394; font-size: 11px; }
.form-footer a { color: var(--blue); font-weight: 700; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-footer a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; }
  .brand-side { min-height: 250px; padding: 18px 25px 22px; }
  .cube-stage { top: -115%; right: -8%; width: 78%; height: 190%; opacity: .68; }
  .cube-object { --cube-size: 220px; }
  .brand-logo { width: 185px; }
  .brand-center { margin: auto 0 0; }
  .brand-title { font-size: 85px; }
  .brand-footer { display: none; }
  .form-side { min-height: calc(100dvh - 250px); padding: 28px 25px 24px; }
  .form-content { padding: 28px 0; }
  .form-content h1 { margin-bottom: 29px; }
}
@media (max-width: 480px) {
  .launch-type { top: calc(50% + 145px); }
  .launch-name { font-size: 68px; }
  .launch-caption { max-width: 290px; font-size: 9px; line-height: 1.5; }
  .brand-side { min-height: 225px; }
  .cube-stage { top: 17px; right: 0; width: 220px; height: 190px; opacity: .7; }
  .cube-object { --cube-size: 135px; }
  .brand-logo { width: 170px; }
  .brand-overline { font-size: 9px; letter-spacing: .1em; }
  .brand-title { font-size: 78px; }
  .form-side { min-height: calc(100dvh - 225px); padding: 22px 24px; }
  .form-content { padding: 24px 0; }
  .form-content h1 { font-size: 44px; }
  .form-footer { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .launch-screen { display: none; }
  .brand-header, .brand-center, .brand-footer, .form-content { opacity: 1; transform: none; }
  .cube-light-run { display: none; }
  .cube-object { animation: none !important; opacity: 1; }
}
