:root {
  --midnight: #020b1d;
  --navy-950: #041226;
  --navy-900: #071a32;
  --navy-800: #102a44;
  --teal-700: #0f7e89;
  --teal-600: #1596a0;
  --teal-500: #20b8bd;
  --teal-400: #43d6d2;
  --ice: #f2fbfb;
  --ice-soft: #dce9ea;
  --silver: #b7c3c4;
  --text: #0a1426;
  --muted: #44515d;
  --danger: #9c3043;
  --success: #0b7b70;
  --shadow-deep: 0 30px 80px rgba(0, 8, 24, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 16%, rgba(35, 196, 199, 0.42), transparent 31%),
    radial-gradient(circle at 72% 36%, rgba(232, 247, 247, 0.19), transparent 28%),
    radial-gradient(circle at 72% 78%, rgba(25, 148, 160, 0.17), transparent 32%),
    linear-gradient(135deg, #020713 0%, #06192d 48%, #03101f 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  content: "";
  pointer-events: none;
}

body::before {
  inset: -12% auto auto -14%;
  width: 760px;
  height: 620px;
  opacity: 0.14;
  background:
    linear-gradient(46deg, transparent 19%, rgba(69, 220, 218, 0.7) 19% 21%, transparent 21% 31%, rgba(69, 220, 218, 0.7) 31% 33%, transparent 33%),
    linear-gradient(46deg, transparent 58%, rgba(242, 251, 251, 0.72) 58% 60%, transparent 60%);
  border-radius: 90px;
  transform: rotate(-4deg);
}

body::after {
  right: clamp(18px, 5vw, 70px);
  bottom: clamp(18px, 7vh, 72px);
  width: 46px;
  height: 46px;
  background: rgba(242, 251, 251, 0.9);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
  filter: drop-shadow(0 0 18px rgba(242, 251, 251, 0.48));
}

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

a:hover {
  color: var(--teal-700);
}

button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(67, 214, 210, 0.42);
  outline-offset: 3px;
}

.login-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
  isolation: isolate;
}

.login-shell::before {
  position: absolute;
  z-index: -1;
  width: min(1240px, 94vw);
  height: min(570px, 82vh);
  content: "";
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(32, 184, 189, 0.17), rgba(242, 251, 251, 0.08)),
    rgba(255, 255, 255, 0.04);
  filter: blur(22px);
}

.login-frame {
  position: relative;
  width: min(1180px, calc(100vw - 36px));
  min-height: min(560px, calc(100vh - 36px));
  border: 1px solid rgba(170, 225, 226, 0.26);
  border-radius: 24px;
  box-shadow: var(--shadow-deep);
  isolation: isolate;
}

.login-frame::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background:
    radial-gradient(circle at 34% 16%, rgba(67, 214, 210, 0.32), transparent 28%),
    linear-gradient(110deg, rgba(13, 65, 75, 0.84), rgba(10, 30, 53, 0.96) 52%, rgba(210, 219, 219, 0.58));
}

.login-frame::after {
  position: absolute;
  inset: -1px;
  z-index: 3;
  content: "";
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-panel {
  position: relative;
  display: grid;
  min-height: inherit;
  width: 63%;
  overflow: hidden;
  place-items: center start;
  border-radius: 23px;
  background:
    radial-gradient(circle at 43% 20%, rgba(50, 198, 201, 0.72), transparent 28%),
    radial-gradient(circle at 47% 51%, rgba(20, 136, 145, 0.42), transparent 34%),
    linear-gradient(180deg, rgba(29, 121, 128, 0.9) 0%, rgba(8, 39, 62, 0.96) 47%, rgba(3, 15, 35, 0.98) 100%);
}

.brand-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(180deg, transparent 54%, rgba(0, 6, 18, 0.54)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 42%);
}

.brand-panel::after {
  position: absolute;
  inset: 1px;
  content: "";
  border: 1px solid rgba(165, 231, 231, 0.22);
  border-right: 0;
  border-radius: 22px 0 0 22px;
  pointer-events: none;
}

.brand-panel__circuit {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.3;
}

.circuit-line {
  position: absolute;
  display: block;
  height: 72px;
  border: 11px solid rgba(78, 219, 216, 0.42);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  filter: drop-shadow(0 0 18px rgba(67, 214, 210, 0.44));
  transform: rotate(48deg);
}

.circuit-line::before,
.circuit-line::after {
  position: absolute;
  width: 14px;
  height: 14px;
  content: "";
  border: 5px solid rgba(238, 255, 255, 0.72);
  border-radius: 50%;
}

.circuit-line::before {
  left: -10px;
  top: -12px;
}

.circuit-line::after {
  left: -10px;
  bottom: -12px;
}

.circuit-line--one {
  width: 380px;
  left: -175px;
  top: 46px;
}

.circuit-line--two {
  width: 510px;
  right: -88px;
  top: -64px;
  opacity: 0.28;
}

.circuit-line--three {
  width: 480px;
  left: -132px;
  bottom: 20px;
  opacity: 0.36;
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(560px, calc(100% - 112px));
  justify-items: center;
  margin-left: clamp(42px, 6vw, 78px);
  padding: 38px 0 34px;
  text-align: center;
}

.nextra-symbol {
  overflow: visible;
}

.nextra-symbol--hero {
  width: clamp(186px, 18vw, 238px);
  height: clamp(186px, 18vw, 238px);
  margin-bottom: 12px;
  filter:
    drop-shadow(0 6px 0 rgba(255, 255, 255, 0.22))
    drop-shadow(0 22px 22px rgba(0, 8, 24, 0.48));
}

.symbol-track {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 10;
}

.symbol-track--navy {
  stroke: var(--navy-900);
}

.symbol-track--teal {
  stroke: var(--teal-500);
}

.symbol-track--aqua {
  stroke: var(--ice);
  opacity: 0.82;
}

.symbol-node {
  fill: var(--ice);
  stroke: var(--navy-900);
  stroke-width: 5;
}

.symbol-node--teal {
  stroke: var(--teal-400);
}

.brand-panel .symbol-track--navy {
  stroke: #eefafa;
}

.brand-panel .symbol-track--teal {
  stroke: #35ced1;
}

.brand-panel .symbol-track--aqua {
  stroke: rgba(255, 255, 255, 0.78);
}

.brand-panel .symbol-node {
  fill: #edfafa;
  stroke: #edfafa;
}

.brand-panel .symbol-node--teal {
  stroke: #3ed8d3;
}

.brand-wordmark {
  color: var(--ice);
  text-shadow: 0 12px 22px rgba(0, 8, 24, 0.54);
}

.brand-wordmark h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.2rem, 6.2vw, 4.75rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: 0.2em;
}

.brand-wordmark p {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0 0;
  color: rgba(67, 214, 210, 0.76);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.62em;
}

.brand-wordmark p::before,
.brand-wordmark p::after {
  display: inline-block;
  width: clamp(54px, 6vw, 96px);
  height: 3px;
  content: "";
  background: rgba(67, 214, 210, 0.64);
}

.brand-tagline {
  margin: 15px 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 14px rgba(0, 8, 24, 0.48);
}

.brand-tools {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-tools li {
  display: inline-grid;
  place-items: center;
}

.brand-tools li + li {
  position: relative;
}

.brand-tools li + li::before {
  position: absolute;
  left: -7px;
  width: 1px;
  height: 20px;
  content: "";
  background: rgba(255, 255, 255, 0.28);
}

.brand-tools svg {
  width: 27px;
  height: 27px;
  color: rgba(67, 214, 210, 0.74);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px rgba(67, 214, 210, 0.36));
}

.login-card {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(48%, 560px);
  min-height: inherit;
  padding: clamp(38px, 5vw, 46px) clamp(60px, 6.5vw, 88px) 24px;
  border: 1px solid rgba(245, 255, 255, 0.78);
  border-radius: 24px;
  background:
    radial-gradient(circle at 52% 41%, rgba(67, 214, 210, 0.2), transparent 22%),
    radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(135deg, rgba(226, 237, 237, 0.86), rgba(164, 175, 176, 0.72) 56%, rgba(232, 237, 237, 0.72));
  box-shadow:
    0 26px 68px rgba(0, 8, 24, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 24px 0 56px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(1.08);
}

.login-card::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.54), transparent 34%),
    linear-gradient(315deg, rgba(8, 24, 45, 0.12), transparent 34%);
}

.login-card > * {
  position: relative;
  z-index: 1;
}

.login-card__logo {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 12px;
  width: 204px;
  min-height: 72px;
  margin-bottom: clamp(24px, 4vh, 30px);
  padding: 9px 18px;
  border: 1px solid rgba(80, 214, 214, 0.18);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 24% 28%, rgba(31, 184, 189, 0.18), transparent 32%),
    linear-gradient(145deg, #061a33 0%, #020b1d 100%);
  box-shadow:
    0 18px 32px rgba(0, 8, 24, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nextra-symbol--mini {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
}

.login-card__logo .symbol-track {
  stroke-width: 9;
}

.login-card__logo .symbol-track--navy {
  stroke: #b4cbcf;
}

.login-card__logo .symbol-track--teal {
  stroke: var(--teal-400);
}

.login-card__logo .symbol-track--aqua {
  stroke: rgba(255, 255, 255, 0.64);
}

.login-card__logo .symbol-node {
  fill: #061a33;
  stroke: rgba(192, 240, 241, 0.9);
  stroke-width: 5;
}

.login-card__logo span {
  display: grid;
  gap: 4px;
  line-height: 1;
}

.login-card__logo strong {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.2em;
}

.login-card__logo small {
  color: rgba(67, 214, 210, 0.72);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.46em;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.field__label {
  padding-left: 2px;
}

.field__control {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 2px solid rgba(66, 212, 211, 0.42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(67, 214, 210, 0.46), transparent 25%),
    linear-gradient(90deg, rgba(35, 103, 116, 0.72), rgba(64, 153, 159, 0.58) 52%, rgba(33, 101, 113, 0.66));
  box-shadow:
    0 0 22px rgba(67, 214, 210, 0.48),
    inset 0 2px 10px rgba(2, 11, 29, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.field__control:focus-within {
  border-color: rgba(220, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(67, 214, 210, 0.34),
    0 0 30px rgba(67, 214, 210, 0.72),
    inset 0 2px 10px rgba(2, 11, 29, 0.26);
  transform: translateY(-1px);
}

.field__control svg {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  color: rgba(220, 255, 255, 0.78);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 1rem;
  font-weight: 650;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 1000px rgba(40, 124, 137, 0.92) inset;
}

.field.is-invalid .field__control {
  border-color: rgba(156, 48, 67, 0.76);
  box-shadow:
    0 0 0 2px rgba(156, 48, 67, 0.15),
    0 0 18px rgba(156, 48, 67, 0.3),
    inset 0 2px 10px rgba(2, 11, 29, 0.26);
}

.field__error {
  min-height: 13px;
  color: var(--danger);
  font-size: 0.68rem;
  font-weight: 750;
}

.icon-button {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(220, 255, 255, 0.78);
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.primary-button {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border: 2px solid rgba(67, 214, 210, 0.72);
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 30, 57, 0.98), rgba(2, 11, 29, 1));
  box-shadow:
    0 0 0 1px rgba(2, 11, 29, 0.86),
    0 0 21px rgba(67, 214, 210, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: 1.06rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.primary-button:hover {
  border-color: rgba(231, 255, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(2, 11, 29, 0.86),
    0 0 30px rgba(67, 214, 210, 0.88),
    0 12px 26px rgba(2, 11, 29, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

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

.forgot-link {
  align-self: center;
  margin: 10px 0 2px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.form-message {
  min-height: 18px;
  margin: 4px 0 0;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 750;
  text-align: center;
}

.form-message.is-error {
  color: var(--danger);
}

.login-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin: auto 0 0;
  color: var(--text);
  font-size: 0.86rem;
}

.login-card__footer a {
  font-weight: 850;
}

@media (max-width: 980px) {
  .login-shell {
    align-items: start;
    padding: 18px 14px;
  }

  .login-frame {
    display: grid;
    width: min(560px, 100%);
    min-height: 0;
  }

  .brand-panel {
    width: 100%;
    min-height: 360px;
    place-items: center;
    border-radius: 24px 24px 0 0;
  }

  .brand-panel::after {
    border-right: 1px solid rgba(165, 231, 231, 0.22);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
  }

  .brand-lockup {
    width: min(520px, calc(100% - 42px));
    margin: 0;
    padding: 34px 0 30px;
  }

  .nextra-symbol--hero {
    width: 178px;
    height: 178px;
  }

  .brand-wordmark h1 {
    font-size: clamp(2.5rem, 10vw, 3.6rem);
  }

  .login-card {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    padding: 36px clamp(24px, 9vw, 58px) 28px;
    border-radius: 0 0 24px 24px;
  }

  .login-card__footer {
    margin-top: 18px;
  }
}

@media (max-width: 560px) {
  body::after {
    display: none;
  }

  .login-shell {
    padding: 12px;
  }

  .login-frame {
    width: 100%;
  }

  .brand-panel {
    min-height: 300px;
  }

  .nextra-symbol--hero {
    width: 136px;
    height: 136px;
    margin-bottom: 8px;
  }

  .brand-wordmark h1 {
    font-size: 2.25rem;
    letter-spacing: 0.16em;
  }

  .brand-wordmark p {
    gap: 10px;
    font-size: 0.82rem;
    letter-spacing: 0.48em;
  }

  .brand-wordmark p::before,
  .brand-wordmark p::after {
    width: 42px;
  }

  .brand-tagline {
    margin-bottom: 18px;
    font-size: 0.58rem;
  }

  .brand-tools {
    gap: 9px;
  }

  .brand-tools li + li::before {
    left: -5px;
  }

  .brand-tools svg {
    width: 21px;
    height: 21px;
  }

  .login-card {
    padding: 28px 18px 24px;
  }

  .login-card__logo {
    width: 190px;
    min-height: 70px;
    margin-bottom: 26px;
  }

  .nextra-symbol--mini {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .field {
    font-size: 0.96rem;
  }

  .field__control {
    min-height: 46px;
  }

  .primary-button {
    min-height: 50px;
  }

  .forgot-link,
  .login-card__footer {
    font-size: 0.86rem;
  }

  .login-card__footer {
    justify-content: center;
    flex-wrap: wrap;
  }
}
