@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #212492;
  --blue: #00a2ff;
  --blue-dark: #0080cc;
  --teal: #3fcfd5;
  --yellow: #f5ec5a;
  --ink: #0c1830;
  --muted: #5b6b86;
  --line: #dde6f1;
  --wash-1: #eef6ff;
  --wash-2: #dcecfb;
  --halo: rgba(0, 162, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: #fff;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  appearance: none;
}

a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#app {
  width: 100%;
  height: 100vh;
  display: flex;
}

.panel-visual {
  position: relative;
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6vh 6vw;
  background:
    linear-gradient(130deg, rgba(33, 36, 146, 0.07), transparent 36%),
    linear-gradient(145deg, #f9fcff 0%, var(--wash-1) 46%, var(--wash-2) 100%);
}

.panel-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.72) 0 20%, transparent 20.2%),
    linear-gradient(112deg, transparent 0 70%, rgba(0, 162, 255, 0.08) 70.2% 78%, transparent 78.2%);
  pointer-events: none;
}

.panel-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--blue) 1px, transparent 1px), linear-gradient(90deg, var(--blue) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.06;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle at 50% 50%, #000, transparent 68%);
  mask: radial-gradient(circle at 50% 50%, #000, transparent 68%);
}

.brand-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.brand-grid {
  position: absolute;
  inset: -80px;
  background-image: linear-gradient(rgba(33, 36, 146, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(33, 36, 146, 0.07) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: skewX(-13deg);
  opacity: 0.55;
}

.brand-ribbon {
  position: absolute;
  left: -26vw;
  width: 92vw;
  transform: rotate(-21deg);
  transform-origin: left center;
  box-shadow: 0 28px 60px rgba(33, 36, 146, 0.12);
}

.ribbon-navy {
  top: 8vh;
  height: 112px;
  background: linear-gradient(90deg, rgba(33, 36, 146, 0.94), rgba(33, 36, 146, 0.1));
}

.ribbon-blue {
  top: 26vh;
  height: 68px;
  left: -18vw;
  background: linear-gradient(90deg, rgba(0, 162, 255, 0.88), rgba(0, 162, 255, 0.08));
  animation: ribbonDrift 8s ease-in-out infinite;
}

.ribbon-teal {
  bottom: 20vh;
  height: 54px;
  left: -22vw;
  background: linear-gradient(90deg, rgba(63, 207, 213, 0.86), rgba(63, 207, 213, 0.07));
  animation: ribbonDrift 9.5s ease-in-out infinite reverse;
}

.ribbon-yellow {
  bottom: 11vh;
  height: 22px;
  left: -14vw;
  background: linear-gradient(90deg, rgba(245, 236, 90, 0.95), rgba(245, 236, 90, 0.12));
  box-shadow: 0 18px 40px rgba(245, 236, 90, 0.2);
}

.brand-col {
  position: relative;
  z-index: 1;
  width: min(86%, 700px);
  transform: translateY(-2%);
}

.brand-composition {
  position: relative;
  display: grid;
  grid-template-columns: 188px minmax(300px, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 44px;
}

.symbol-stage {
  position: relative;
  width: 188px;
  height: 188px;
  display: grid;
  place-items: center;
}

.app-mark {
  position: relative;
  z-index: 3;
  width: 140px;
  height: 140px;
  display: block;
  border-radius: 24px;
  filter: drop-shadow(0 24px 34px rgba(33, 36, 146, 0.25));
}

.scan-frame {
  position: absolute;
  z-index: 1;
  transform: rotate(45deg);
}

.frame-a {
  width: 184px;
  height: 184px;
  border: 2px solid rgba(0, 162, 255, 0.44);
  animation: framePulse 5.2s ease-in-out infinite;
}

.frame-b {
  width: 146px;
  height: 146px;
  border: 2px solid rgba(63, 207, 213, 0.5);
  animation: framePulse 5.2s ease-in-out infinite 0.85s;
}

.signal-track {
  position: absolute;
  z-index: 2;
  height: 4px;
  border-radius: 999px;
  transform-origin: center;
}

.track-a {
  left: -42px;
  top: 42px;
  width: 106px;
  background: linear-gradient(90deg, transparent, var(--blue));
  animation: signalSweep 5.4s ease-in-out infinite;
}

.track-b {
  right: -34px;
  top: 92px;
  width: 84px;
  background: linear-gradient(90deg, var(--teal), transparent);
  animation: signalSweep 5.4s ease-in-out infinite 1.2s;
}

.track-c {
  left: 24px;
  bottom: 32px;
  width: 136px;
  background: linear-gradient(90deg, var(--yellow), var(--teal), transparent);
  animation: signalSweep 5.4s ease-in-out infinite 2.1s;
}

.brand-wording {
  min-width: 0;
  padding: 22px 0 18px;
}

.wordmark {
  width: min(100%, 342px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 26px rgba(33, 36, 146, 0.1));
}

.product-name {
  display: block;
  margin-top: 0;
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--teal) 72%, var(--navy));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(25px, 2.75vw, 40px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.color-signature {
  width: min(218px, 64%);
  display: grid;
  grid-template-columns: 1fr 0.7fr 0.38fr;
  gap: 7px;
  margin-top: 13px;
}

.color-signature span {
  height: 6px;
  border-radius: 999px;
}

.color-signature span:nth-child(1) {
  background: var(--blue);
}

.color-signature span:nth-child(2) {
  background: var(--teal);
}

.color-signature span:nth-child(3) {
  background: var(--yellow);
}

.brand-pitch {
  max-width: 500px;
  margin-left: clamp(188px, 16vw, 222px);
  padding-left: 20px;
  border-left: 4px solid var(--blue);
  transform: none;
}

.brand-pitch h1 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.brand-pitch h1 em {
  color: var(--blue);
  font-style: normal;
}

.brand-pitch p {
  max-width: 480px;
  margin: 0;
  color: #46587a;
  font-size: 16px;
  line-height: 1.45;
}

.panel-login {
  position: relative;
  z-index: 2;
  width: clamp(420px, 32vw, 560px);
  min-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  box-shadow: -30px 0 60px -40px rgba(33, 36, 146, 0.25);
}

.login-container {
  width: 100%;
  max-width: 380px;
}

.mobile-brand {
  display: none;
}

.login-card {
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 56px -30px rgba(33, 36, 146, 0.32);
}

.login-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--navy) 0 34%, var(--blue) 34% 62%, var(--teal) 62% 84%, var(--yellow) 84% 100%);
}

.login-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.login-header-title {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.login-header-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.login-body {
  padding: 24px 26px 26px;
}

.field-group {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 13px 42px 13px 14px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  font-size: 15px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.input-wrapper input::placeholder {
  color: #aab4c5;
}

.input-wrapper input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--halo), 0 12px 22px -20px var(--teal);
}

.input-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: #9aa6b8;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.login-btn {
  width: 100%;
  margin-top: 6px;
  padding: 14px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 58%, var(--blue-dark) 100%);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 28px -12px var(--blue);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.login-btn:hover {
  box-shadow: 0 16px 34px -12px var(--blue);
  filter: brightness(1.05);
  transform: translateY(-1px);
}

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

.sso-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
}

.sso-separator::before,
.sso-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sso-separator span {
  color: #aab4c5;
  font-size: 12.5px;
}

.sso-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.sso-btn:hover {
  background: #f7fcff;
  border-color: rgba(0, 162, 255, 0.38);
  transform: translateY(-1px);
}

.microsoft-mark {
  width: 17px;
  height: 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  flex: 0 0 auto;
}

.microsoft-mark span:nth-child(1) {
  background: #f25022;
}

.microsoft-mark span:nth-child(2) {
  background: #7fba00;
}

.microsoft-mark span:nth-child(3) {
  background: #00a4ef;
}

.microsoft-mark span:nth-child(4) {
  background: #ffb900;
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.login-footer a {
  font-size: 13px;
}

.version-text {
  color: #aab4c5;
  font-size: 11px;
  font-weight: 500;
}

@keyframes ribbonDrift {
  0%,
  100% {
    transform: rotate(-21deg) translateX(0);
  }

  50% {
    transform: rotate(-21deg) translateX(24px);
  }
}

@keyframes framePulse {
  0%,
  100% {
    opacity: 0.46;
    transform: rotate(45deg) scale(1);
  }

  45% {
    opacity: 0.95;
    transform: rotate(45deg) scale(1.04);
  }
}

@keyframes signalSweep {
  0%,
  100% {
    opacity: 0.26;
    transform: translateX(-10px);
  }

  42% {
    opacity: 0.82;
    transform: translateX(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1120px) {
  .brand-composition {
    grid-template-columns: 144px minmax(260px, 1fr);
    gap: 18px;
  }

  .symbol-stage {
    width: 144px;
    height: 144px;
  }

  .app-mark {
    width: 116px;
    height: 116px;
    border-radius: 20px;
  }

  .frame-a {
    width: 144px;
    height: 144px;
  }

  .frame-b {
    width: 112px;
    height: 112px;
  }

  .track-a {
    left: -32px;
    top: 32px;
    width: 82px;
  }

  .track-b {
    right: -26px;
    top: 70px;
    width: 70px;
  }

  .track-c {
    left: 18px;
    bottom: 25px;
    width: 105px;
  }

  .brand-pitch {
    margin-left: 160px;
    padding-left: 18px;
  }
}

@media (max-width: 960px) {
  body {
    overflow-y: auto;
  }

  #app {
    min-height: 100vh;
    height: auto;
  }

  .panel-visual {
    display: none;
  }

  .panel-login {
    width: 100%;
    min-width: 0;
    flex: 1;
    padding: 40px 20px;
    box-shadow: none;
  }

  .mobile-brand {
    width: min(100%, 380px);
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: -18px auto 24px;
    padding-bottom: 16px;
  }

  .mobile-brand::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(240px, 66vw);
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--navy) 0 28%, var(--blue) 28% 58%, var(--teal) 58% 82%, var(--yellow) 82% 100%);
    transform: translateX(-50%);
  }

  .mobile-brand-sym {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    flex: 0 0 auto;
    display: block;
    filter: drop-shadow(0 14px 22px rgba(33, 36, 146, 0.12));
  }

  .mobile-brand-word {
    min-width: 0;
    margin: 0;
    font-size: initial;
    font-weight: initial;
    letter-spacing: 0;
    line-height: 1;
  }

  .mobile-brand-word img {
    width: 150px;
    max-width: 100%;
    display: block;
  }

  .mobile-brand-word span {
    display: block;
    margin-top: 0;
    color: var(--blue);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
  }
}

@media (max-width: 480px) {
  .panel-login {
    padding: 24px 16px;
  }

  .login-container {
    max-width: 100%;
  }

  .login-header {
    padding: 20px 22px 16px;
  }

  .login-body {
    padding: 22px;
  }

  .mobile-brand {
    margin-top: 0;
  }
}
