/* Local vector scene: no video, GIF, remote asset or animation library. */
:root {
  --login-sidebar-width: clamp(370px, 38.2vw, 550px);
}

body {
  background: #0c1c30;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(120deg, #0a192b, #102b40 68%, #102536);
  contain: strict;
}

.login-scene__glow {
  position: absolute;
  width: 80vw;
  height: 85vh;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(83 151 176 / .26), transparent 65%);
  animation: login-light-drift 24s ease-in-out infinite alternate;
}

.login-scene__glow--top { right: -25%; top: -35%; }
.login-scene__glow--bottom {
  right: 4%;
  bottom: -40%;
  opacity: .65;
  animation-direction: alternate-reverse;
  animation-delay: -12s;
}

.login-scene__art {
  position: absolute;
  inset: 0 0 0 var(--login-sidebar-width);
}
.login-scene__field { display: block; width: 100%; height: 100%; }
.login-scene__ribbons {
  transform-origin: 65% 50%;
  animation: login-ribbon-drift 16s ease-in-out infinite alternate;
}
.login-scene__trace {
  stroke: #b6e4ed;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 4 96;
  opacity: .6;
  animation: login-light-trace 18s linear infinite;
}
.login-scene__trace--second { animation-delay: -9s; opacity: .4; }
.login-scene__w-outline {
  fill: none;
  stroke: #c2e3ea;
  stroke-width: 1.5;
  opacity: .12;
}
.login-scene__pen { animation: login-signature-pen 16s cubic-bezier(.4, 0, .2, 1) infinite; }
.login-scene__w-ink { animation: login-signature-ink 16s ease-in-out infinite; }

.login-sidebar {
  width: var(--login-sidebar-width);
  height: 100dvh;
  overflow-y: auto;
  justify-content: safe center;
  padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(155deg, #f5f9fd, #d8e9f7 68%, #c9dfef);
  box-shadow: 12px 0 40px rgb(5 20 34 / .14);
}
.login-sidebar > div { width: 100%; max-width: 340px; }
.login-sidebar img { width: 100%; height: auto; }

.main-content {
  margin-left: var(--login-sidebar-width) !important;
  height: auto !important;
  min-height: 100dvh;
  padding: clamp(20px, 2.5vw, 44px) !important;
  z-index: 1;
}
.main-content::before {
  background: linear-gradient(90deg, rgb(10 25 43 / .4), rgb(10 25 43 / .06));
}
.welcome-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: clamp(16px, 2.1vw, 34px);
}
.welcome-content h1 { letter-spacing: -.04em; line-height: 1.12; }
.welcome-topline {
  margin-bottom: 16px;
  color: #a9c4d1;
  font-size: .82rem;
  letter-spacing: .06em;
}
.welcome-content > p {
  white-space: normal;
  max-width: 64ch;
  text-wrap: pretty;
}
.login-system {
  position: relative;
  height: 340px;
  margin: 8px 0 22px;
}
.login-system__connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.login-system__connections path { vector-effect: non-scaling-stroke; }
.login-system__lines { fill: none; stroke: rgb(168 218 232 / .28); stroke-width: 1.2; }
.login-system__signals { fill: none; stroke: #c1eaf2; stroke-width: 1.8; stroke-linecap: round; }
.login-system__signals use {
  stroke-dasharray: 4 96;
  animation: login-system-signal 7s linear infinite;
}
.login-system__signals use:nth-child(2) { animation-delay: -1.75s; }
.login-system__signals use:nth-child(3) { animation-delay: -3.5s; }
.login-system__signals use:nth-child(4) { animation-delay: -5.25s; }
.login-system__terminals { fill: #8abfce; }
.login-module {
  position: absolute;
  width: 29%;
  color: #eaf4f8;
  animation: login-module-enter .65s ease-out both;
}
.login-module--work { left: 0; top: 14%; animation-delay: .3s; }
.login-module--hr { right: 0; top: 14%; animation-delay: .45s; }
.login-module--assets { left: 0; bottom: 14%; animation-delay: .6s; }
.login-module--finance { right: 0; bottom: 14%; animation-delay: .75s; }
.login-module h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.login-module h2 svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: #98c8d8;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-module > span {
  display: block;
  color: #b8ccd6;
  font-size: .92rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.login-system__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgb(177 224 236 / .3);
  background: #102b40;
}
.login-system__hub::before {
  content: "";
  position: absolute;
  inset: -11px;
  border: 1px solid rgb(177 224 236 / .15);
  border-radius: inherit;
  box-shadow: 0 0 30px rgb(129 193 216 / .1);
  animation: login-hub-pulse 5s ease-in-out infinite alternate;
}
.login-system__hub > svg { width: 49px; height: 65px; }
.login-system__hub-label {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  text-align: center;
}
.login-system__hub-label strong {
  display: block;
  font-size: .94rem;
  font-weight: 600;
  color: #ecf7fb;
  margin-bottom: 5px;
}
.login-system__hub-label span { display: block; color: #9dbbc8; font-size: .76rem; }
.login-workflow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid rgb(172 207 220 / .18);
  color: #a8c4d1;
  font-size: .87rem;
}
.login-workflow span { display: flex; align-items: center; gap: 12px; }
.login-workflow span:not(:last-child)::after {
  content: "\2192";
  color: #739baa;
  font-size: 1.08rem;
}
.login-intro-footer { margin-top: 6px; color: #7e9eae; font-size: .75rem; }

@keyframes login-system-signal { to { stroke-dashoffset: -100; } }
@keyframes login-module-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes login-hub-pulse {
  from { opacity: .4; transform: scale(.97); }
  to { opacity: 1; transform: scale(1.03); }
}

@keyframes login-light-drift {
  from { transform: translate3d(-4%, 3%, 0) scale(.94); }
  to { transform: translate3d(4%, -3%, 0) scale(1.06); }
}
@keyframes login-ribbon-drift {
  from { transform: translate3d(-14px, 12px, 0) rotate(-1.5deg); }
  to { transform: translate3d(14px, -12px, 0) rotate(1deg); }
}
@keyframes login-light-trace { to { stroke-dashoffset: -100; } }
@keyframes login-signature-pen {
  0%, 8% { stroke-dashoffset: 100; }
  56%, 100% { stroke-dashoffset: 0; }
}
@keyframes login-signature-ink {
  0%, 8%, 94%, 100% { opacity: 0; }
  22%, 74% { opacity: .22; }
}

@media (min-width: 769px) and (max-height: 800px) {
  .main-content { padding: 16px !important; }
  .welcome-content { padding: 12px 24px; }
  .login-system { height: 300px; margin-bottom: 18px; }
}
@media (max-width: 1000px) and (min-width: 769px) {
  .welcome-content { padding: 16px 0; }
  .welcome-content h1 { font-size: 2.35rem !important; }
  .login-module h2 { font-size: .94rem; gap: 6px; }
  .login-module h2 svg { width: 18px; height: 18px; }
  .login-module > span { font-size: .79rem; }
  .login-system__hub { width: 80px; height: 80px; }
  .login-system__hub > svg { width: 38px; height: 50px; }
  .login-system__hub-label { width: 132px; }
  .login-system__hub-label strong { font-size: .8rem; }
  .login-system__hub-label span { font-size: .7rem; }
  .login-workflow { font-size: .76rem; gap: 6px; }
  .login-workflow span { gap: 6px; }
}
@media (max-width: 768px) {
  .main-content { display: none !important; margin-left: 0 !important; }
  .login-sidebar {
    width: 100%;
    min-height: 100dvh;
    height: auto;
    position: relative;
    border-radius: 0;
    padding: 32px 24px;
  }
  .login-sidebar > div { max-width: 360px; }
  .login-scene__art { display: none; }
  .login-scene__glow { animation: none; }
}
@media (max-width: 1000px) and (max-height: 580px) {
  .main-content { display: none !important; }
  .login-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100dvh;
    padding: 24px;
    border-radius: 0;
  }
  .login-scene__art { display: none; }
  .login-scene__glow { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .login-scene *,
  .login-sidebar,
  .login-sidebar .w3-animate-zoom,
  .welcome-content,
  .login-module,
  .login-system__signals use,
  .login-system__hub::before { animation: none !important; }
  .login-scene__pen { stroke-dashoffset: 0; }
  .login-scene__w-ink { opacity: .16; }
  .welcome-content, .login-module { opacity: 1; transform: none; }
  .auth-fields, .buttonLogin { transition: none; }
}
