:root {
  --font-family: "Poppins", Arial, sans-serif;
  --ink: #101828;
  --label: #344054;
  --muted: #98a2b3;
  --primary: #1155cc;
  --primary-hover: #0d46ad;
  --link-hover: #18b9ff;
  --cyan: #18d7ef;
  --deep-blue: #030d4e;
  --navy: #020630;
  --field-border: #d0d5dd;
  --field-focus: #d1e9ff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-family);
  color: var(--ink);
  background: var(--navy);
}

button,
input {
  font: inherit;
}

button {
  appearance: none;
}

a {
  color: inherit;
}

.login-screen {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  padding: 84px 32px 48px;
  background:
    radial-gradient(circle at 63% 45%, rgba(23, 215, 238, 0.88) 0 9%, rgba(13, 132, 205, 0.55) 22%, rgba(2, 8, 58, 0.22) 43%, transparent 57%),
    radial-gradient(circle at 76% 61%, rgba(13, 94, 211, 0.55) 0 15%, transparent 43%),
    linear-gradient(145deg, #06125d 0%, #050b42 34%, #02052d 70%, #01031b 100%);
  isolation: isolate;
}

.login-screen::before,
.login-screen::after {
  position: absolute;
  content: "";
  pointer-events: none;
  z-index: -1;
}

.login-screen::before {
  inset: -20%;
  background:
    radial-gradient(ellipse at 52% 61%, transparent 0 27%, rgba(3, 16, 86, 0.68) 28%, transparent 35%),
    radial-gradient(ellipse at 67% 57%, transparent 0 22%, rgba(10, 116, 212, 0.35) 23%, transparent 38%),
    radial-gradient(ellipse at 72% 58%, transparent 0 31%, rgba(29, 213, 231, 0.28) 32%, transparent 42%);
  filter: blur(5px);
  transform: rotate(-9deg);
  animation: driftGlow 13s ease-in-out infinite alternate;
}

.login-screen::after {
  width: 78vw;
  height: 44vh;
  right: -16vw;
  bottom: 4vh;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(23, 190, 234, 0.28), rgba(7, 33, 129, 0.2) 38%, transparent 70%);
  filter: blur(16px);
  animation: breathe 8s ease-in-out infinite;
}

.ambient {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  mix-blend-mode: screen;
}

.ambient-one {
  width: 42vw;
  height: 42vw;
  right: 10vw;
  top: 22vh;
  background: radial-gradient(circle, rgba(19, 220, 237, 0.3), transparent 61%);
  filter: blur(26px);
  animation: floatOne 12s ease-in-out infinite alternate;
}

.ambient-two {
  width: 36vw;
  height: 24vw;
  left: 15vw;
  bottom: -6vw;
  background: radial-gradient(circle, rgba(13, 85, 204, 0.3), transparent 64%);
  filter: blur(28px);
  animation: floatTwo 15s ease-in-out infinite alternate;
}

.wave-lines {
  position: absolute;
  inset: -8% -10%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
  background:
    repeating-radial-gradient(ellipse 74% 42% at 88% 43%, transparent 0 27px, rgba(33, 172, 240, 0.42) 28px 30px, transparent 31px 52px),
    repeating-radial-gradient(ellipse 64% 28% at 3% 56%, transparent 0 32px, rgba(22, 96, 218, 0.32) 33px 34px, transparent 35px 58px);
  transform: rotate(-11deg);
  animation: lineFlow 16s linear infinite;
}

.dot-field {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.72;
  background-image: radial-gradient(circle, rgba(11, 94, 255, 0.9) 1.7px, transparent 2px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at center, #000 0 54%, transparent 76%);
  animation: dotPulse 5s ease-in-out infinite;
}

.dot-field-left {
  width: 52vw;
  height: 33vh;
  left: -6vw;
  top: 2vh;
}

.dot-field-right {
  width: 46vw;
  height: 24vh;
  right: -4vw;
  top: 46vh;
  background-image: radial-gradient(circle, rgba(28, 241, 230, 0.92) 1.8px, transparent 2.2px);
  background-size: 16px 16px;
  transform: rotate(-9deg);
  animation-delay: -1.8s;
}

.energy-ribbon {
  position: absolute;
  width: 66vw;
  height: 28vh;
  right: 4vw;
  top: 45vh;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  background:
    linear-gradient(92deg, transparent 4%, rgba(28, 222, 239, 0.25) 29%, rgba(17, 85, 204, 0.36) 54%, transparent 84%);
  filter: blur(18px);
  transform: rotate(-9deg);
  animation: ribbonGlow 6.8s ease-in-out infinite alternate;
}

.brand {
  position: absolute;
  top: 64px;
  left: 40px;
  display: inline-flex;
  align-items: center;
  width: 282px;
  text-decoration: none;
  color: #fff;
  z-index: 2;
}

.brand-mark {
  display: block;
  width: 100%;
  height: auto;
}

.login-card {
  width: min(100%, 514px);
  margin-top: 18px;
  padding: 45px 68px 44px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(0, 8, 41, 0.32);
  z-index: 1;
}

.login-card h1 {
  margin: 0 0 31px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.login-form {
  display: grid;
  gap: 23px;
}

.field {
  display: grid;
  gap: 12px;
  color: var(--label);
  font-size: 16px;
  line-height: 1;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.forgot-link {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease;
}

.forgot-link:hover,
.forgot-link:focus-visible {
  color: var(--link-hover);
}

.field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  outline: 0;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--primary);
  background: rgba(17, 85, 204, 0.08);
  box-shadow: 0 0 0 2px rgba(209, 233, 255, 0.7);
  outline: 0;
}

.eye-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.eye-icon-closed,
.password-toggle.is-visible .eye-icon-open {
  display: none;
}

.password-toggle.is-visible .eye-icon-closed {
  display: block;
}

.field:first-child input,
.field input:focus {
  border-color: var(--field-focus);
  box-shadow: 0 0 0 2px rgba(209, 233, 255, 0.78);
}

.field input::placeholder {
  color: var(--muted);
  opacity: 1;
  transition: opacity 120ms ease;
}

.field input:focus::placeholder {
  opacity: 0.72;
}

.field input:not(:placeholder-shown)::placeholder {
  opacity: 0;
}

.submit-button {
  width: 100%;
  height: 49px;
  margin-top: 7px;
  border: 0;
  border-radius: 8px;
  color: #fcfcfd;
  background: var(--primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--primary-hover);
  box-shadow: 0 10px 24px rgba(17, 85, 204, 0.32);
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .login-screen {
    min-height: 100vh;
    padding: 72px 32px 42px;
    background:
      radial-gradient(circle at 65% 44%, rgba(23, 215, 238, 0.84) 0 10%, rgba(13, 132, 205, 0.52) 24%, rgba(2, 8, 58, 0.24) 44%, transparent 59%),
      radial-gradient(circle at 76% 61%, rgba(13, 94, 211, 0.5) 0 16%, transparent 44%),
      linear-gradient(145deg, #06125d 0%, #050b42 35%, #02052d 72%, #01031b 100%);
  }

  .login-screen::before {
    inset: -18%;
    background:
      radial-gradient(ellipse at 51% 60%, transparent 0 26%, rgba(3, 16, 86, 0.68) 27%, transparent 35%),
      radial-gradient(ellipse at 68% 57%, transparent 0 22%, rgba(10, 116, 212, 0.34) 23%, transparent 39%),
      radial-gradient(ellipse at 72% 58%, transparent 0 30%, rgba(29, 213, 231, 0.26) 31%, transparent 42%);
  }

  .login-screen::after {
    width: 82vw;
    height: 42vh;
    right: -20vw;
    bottom: 1vh;
  }

  .brand {
    top: 52px;
    left: 36px;
    width: 252px;
  }

  .login-card {
    width: min(100%, 456px);
    margin-top: 10px;
    padding: 39px 60px 38px;
  }

  .login-card h1 {
    margin-bottom: 27px;
    font-size: 25px;
  }

  .login-form {
    gap: 20px;
  }

  .field {
    gap: 10px;
    font-size: 14px;
  }

  .field input {
    height: 42px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .password-control input {
    padding-right: 48px;
  }

  .password-toggle {
    right: 10px;
    width: 30px;
    height: 30px;
  }

  .eye-icon {
    width: 19px;
    height: 19px;
  }

  .forgot-link {
    font-size: 10px;
  }

  .submit-button {
    height: 44px;
    margin-top: 5px;
    font-size: 13px;
  }

  .wave-lines {
    inset: -10% -12%;
    opacity: 0.5;
    background:
      repeating-radial-gradient(ellipse 76% 41% at 90% 42%, transparent 0 25px, rgba(33, 172, 240, 0.4) 26px 28px, transparent 29px 49px),
      repeating-radial-gradient(ellipse 66% 27% at 1% 56%, transparent 0 29px, rgba(22, 96, 218, 0.3) 30px 31px, transparent 32px 54px);
  }

  .dot-field-left {
    width: 50vw;
    height: 29vh;
    left: -7vw;
    top: 1vh;
    background-size: 16px 16px;
  }

  .dot-field-right {
    width: 43vw;
    height: 22vh;
    right: -5vw;
    top: 46vh;
    background-size: 15px 15px;
  }

  .energy-ribbon {
    width: 64vw;
    height: 25vh;
    right: 3vw;
    top: 45vh;
  }
}

@media (max-width: 834px) {
  .login-screen {
    align-content: center;
    justify-items: center;
    min-height: 100vh;
    padding: 56px 32px 48px;
    place-items: center;
    background:
      radial-gradient(circle at 63% 42%, rgba(23, 215, 238, 0.78) 0 12%, rgba(13, 132, 205, 0.48) 26%, rgba(2, 8, 58, 0.26) 47%, transparent 62%),
      radial-gradient(circle at 76% 64%, rgba(13, 94, 211, 0.48) 0 18%, transparent 46%),
      linear-gradient(145deg, #06125d 0%, #050b42 36%, #02052d 72%, #01031b 100%);
  }

  .brand {
    position: relative;
    top: auto;
    left: auto;
    justify-self: center;
    width: 260px;
    margin: 0 0 74px;
  }

  .login-card {
    width: min(100%, 460px);
    margin-top: 0;
    padding: 40px 58px 39px;
  }

  .login-card h1 {
    margin-bottom: 28px;
    font-size: 25px;
  }

  .ambient-one {
    width: 68vw;
    height: 68vw;
    right: -7vw;
    top: 23vh;
  }

  .ambient-two {
    width: 54vw;
    height: 38vw;
    left: 4vw;
    bottom: -8vw;
  }

  .wave-lines {
    inset: -7% -34%;
    opacity: 0.46;
    background:
      repeating-radial-gradient(ellipse 78% 42% at 88% 43%, transparent 0 24px, rgba(33, 172, 240, 0.38) 25px 27px, transparent 28px 48px),
      repeating-radial-gradient(ellipse 65% 26% at 1% 58%, transparent 0 28px, rgba(22, 96, 218, 0.28) 29px 30px, transparent 31px 52px);
  }

  .dot-field-left {
    width: 70vw;
    height: 24vh;
    left: -20vw;
    top: 3vh;
    background-size: 15px 15px;
  }

  .dot-field-right {
    width: 58vw;
    height: 20vh;
    right: -14vw;
    top: 48vh;
    background-size: 14px 14px;
  }

  .energy-ribbon {
    width: 78vw;
    height: 24vh;
    right: -10vw;
    top: 46vh;
  }
}

@media (max-width: 430px) {
  .login-screen {
    align-content: center;
    min-height: 100vh;
    padding: 38px 20px 34px;
    background:
      radial-gradient(circle at 64% 38%, rgba(23, 215, 238, 0.72) 0 13%, rgba(13, 132, 205, 0.46) 28%, rgba(2, 8, 58, 0.28) 50%, transparent 66%),
      radial-gradient(circle at 76% 66%, rgba(13, 94, 211, 0.44) 0 20%, transparent 48%),
      linear-gradient(145deg, #06125d 0%, #050b42 38%, #02052d 74%, #01031b 100%);
  }

  .brand {
    width: min(76vw, 248px);
    margin-bottom: 42px;
  }

  .login-card {
    width: min(100%, 366px);
    padding: 34px 24px 32px;
    border-radius: 18px;
  }

  .login-card h1 {
    margin-bottom: 25px;
    font-size: 22px;
  }

  .login-form {
    gap: 19px;
  }

  .field {
    gap: 9px;
    font-size: 13px;
  }

  .field-row {
    gap: 12px;
  }

  .forgot-link {
    font-size: 10px;
  }

  .field input {
    height: 44px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .password-control input {
    padding-right: 46px;
  }

  .password-toggle {
    right: 9px;
    width: 30px;
    height: 30px;
  }

  .submit-button {
    height: 44px;
    margin-top: 4px;
    font-size: 13px;
  }

  .login-screen::before {
    inset: -12% -48%;
  }

  .login-screen::after {
    width: 118vw;
    height: 34vh;
    right: -42vw;
    bottom: 4vh;
  }

  .ambient-one {
    width: 92vw;
    height: 92vw;
    right: -32vw;
    top: 22vh;
  }

  .ambient-two {
    width: 76vw;
    height: 56vw;
    left: -18vw;
    bottom: -10vw;
  }

  .wave-lines {
    inset: -4% -82%;
    opacity: 0.38;
  }

  .dot-field-left {
    width: 92vw;
    height: 21vh;
    left: -34vw;
    top: 1vh;
    background-size: 14px 14px;
  }

  .dot-field-right {
    width: 78vw;
    height: 18vh;
    right: -28vw;
    top: 53vh;
    background-size: 13px 13px;
  }

  .energy-ribbon {
    width: 104vw;
    height: 21vh;
    right: -38vw;
    top: 50vh;
  }
}

@keyframes driftGlow {
  from {
    transform: translate3d(-1.8%, -1%, 0) rotate(-10deg);
  }
  to {
    transform: translate3d(2.2%, 1.5%, 0) rotate(-7deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.66;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@keyframes floatOne {
  from {
    transform: translate3d(-2vw, -1vh, 0);
  }
  to {
    transform: translate3d(1.5vw, 2vh, 0);
  }
}

@keyframes floatTwo {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(2.4vw, -2.2vh, 0);
  }
}

@keyframes lineFlow {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 80px 34px, -64px 28px;
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.52;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes ribbonGlow {
  from {
    opacity: 0.56;
    transform: translateX(-2vw) rotate(-10deg);
  }
  to {
    opacity: 0.96;
    transform: translateX(1.5vw) rotate(-7deg);
  }
}
:where([hidden]){display:none!important}
.login-feedback{margin:0;color:#a92f37;font-size:13px;line-height:1.4}
.login-demo-note{margin:20px 0 0;color:#667085;font-size:11px;line-height:1.5;text-align:center}
.submit-button:disabled{opacity:.65;cursor:wait}
.login-card{transition:opacity .32s ease,transform .32s ease}
.login-card.is-leaving{opacity:0;transform:translateY(12px)}
@media(prefers-reduced-motion:reduce){.login-card{transition:none}}
