:root {
  --login-ink: #07111f;
  --login-muted: #61708a;
  --login-blue: #1d4ed8;
  --login-cyan: #18e1d4;
  --login-green: #10b981;
  --login-card: rgba(255, 255, 255, .92);
  --login-line: rgba(148, 163, 184, .25);
}

html,
body {
  min-height: 100%;
}

body.login-page {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 212, 191, .28), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, .24), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #0b1220 46%, #102a3f 100%);
  overflow-x: hidden;
}

.login-shell {
  position: relative;
  min-height: 100vh;
  padding: 34px 22px 28px;
  isolation: isolate;
}

.login-bg,
.login-shell::before,
.login-shell::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
}

.login-bg {
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(8, 18, 33, .2), rgba(8, 18, 33, .82)),
    var(--login-bg-core) left 8% center / min(760px, 58vw) auto no-repeat,
    var(--login-bg-orb) right 4% top 12% / min(620px, 46vw) auto no-repeat;
  opacity: .54;
  filter: saturate(1.08);
}

.login-shell::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, .94) 0%, rgba(15, 42, 63, .58) 48%, rgba(7, 17, 31, .92) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 90px);
}

.login-shell::after {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 39%, rgba(255, 255, 255, .2), transparent 13%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 24%, rgba(6, 12, 24, .54));
}

.login-stage {
  width: min(960px, 100%);
  min-height: calc(100vh - 210px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(6, 15, 28, .52);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .25);
  backdrop-filter: blur(18px);
}

.login-brand__mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(29, 78, 216, .95), rgba(20, 184, 166, .72));
  border: 1px solid rgba(255, 255, 255, .22);
}

.login-brand__mark img {
  width: 50px;
  height: 58px;
  object-fit: contain;
}

.login-brand__name {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: .92;
  font-weight: 950;
  letter-spacing: .02em;
}

.login-brand__copy p {
  margin: 4px 0 0;
  color: #b8e7f6;
  font-weight: 800;
  letter-spacing: .01em;
}

.login-intro {
  width: min(720px, 100%);
  text-align: center;
  padding: 18px 24px;
  border-radius: 24px;
  background: rgba(8, 18, 33, .58);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .25);
  backdrop-filter: blur(16px);
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .15);
  border: 1px solid rgba(45, 212, 191, .36);
  color: #a7f3d0;
  font-weight: 900;
  font-size: .78rem;
  text-transform: uppercase;
}

.login-intro h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2.28rem);
  font-weight: 950;
  letter-spacing: 0;
}

.login-intro p {
  width: min(620px, 100%);
  margin: 10px auto 0;
  color: #dbeafe;
  font-size: .98rem;
  font-weight: 600;
}

.login-card {
  width: min(480px, 100%);
  padding: 24px;
  border-radius: 28px;
  background: var(--login-card);
  color: var(--login-ink);
  border: 1px solid rgba(255, 255, 255, .68);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
  backdrop-filter: blur(22px);
}

.login-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.login-card__icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .28);
  font-size: 1.45rem;
}

.login-card__eyebrow {
  color: #2563eb;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .12em;
}

.login-card h2 {
  margin: 1px 0 2px;
  font-size: 1.34rem;
  font-weight: 950;
  letter-spacing: 0;
}

.login-card p {
  margin: 0;
  color: var(--login-muted);
  font-size: .88rem;
  font-weight: 650;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-weight: 800;
  font-size: .88rem;
}

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

.login-field {
  display: grid;
  gap: 7px;
}

.login-label {
  color: #1e293b;
  font-size: .82rem;
  font-weight: 900;
}

.login-control {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d8e2ef;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.login-control i {
  color: #2563eb;
  font-size: 1.08rem;
}

.login-control input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-weight: 750;
}

.login-control input::placeholder {
  color: #94a3b8;
  font-weight: 700;
}

.login-control:focus-within {
  border-color: rgba(37, 99, 235, .72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .13);
  transform: translateY(-1px);
}

.login-submit {
  min-height: 54px;
  border: 0;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 48%, #14b8a6 100%);
  box-shadow: 0 20px 38px rgba(37, 99, 235, .34);
  font-weight: 950;
  letter-spacing: .01em;
}

.login-submit:hover {
  filter: brightness(1.04);
}

.login-card__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 750;
}

.login-features {
  width: min(1120px, 100%);
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.login-feature {
  min-height: 112px;
  padding: 14px 12px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, .9);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, .62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .2);
}

.login-feature span {
  width: 42px;
  height: 42px;
  margin: 0 auto 9px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 1.18rem;
}

.login-feature:nth-child(2) span {
  color: #1d4ed8;
  background: #dbeafe;
}

.login-feature:nth-child(3) span {
  color: #7c3aed;
  background: #ede9fe;
}

.login-feature:nth-child(4) span {
  color: #0f766e;
  background: #dcfce7;
}

.login-feature:nth-child(5) span {
  color: #ea580c;
  background: #ffedd5;
}

.login-feature:nth-child(6) span {
  color: #be123c;
  background: #ffe4e6;
}

.login-feature strong {
  display: block;
  font-size: .92rem;
  font-weight: 950;
}

.login-feature small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .login-stage {
    min-height: auto;
    padding-top: 18px;
  }

  .login-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .login-bg {
    background-size: min(680px, 88vw) auto, min(520px, 75vw) auto;
    background-position: center 35%, center 10%;
  }
}

@media (max-width: 640px) {
  .login-shell {
    padding: 18px 12px 22px;
  }

  .login-brand {
    width: 100%;
    justify-content: center;
    border-radius: 18px;
  }

  .login-brand__mark {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .login-brand__mark img {
    width: 76px;
    height: 76px;
  }

  .login-brand__copy p {
    font-size: .76rem;
  }

  .login-intro {
    padding: 15px;
    border-radius: 20px;
  }

  .login-intro p {
    font-size: .86rem;
  }

  .login-card {
    padding: 18px;
    border-radius: 22px;
  }

  .login-card__head {
    align-items: flex-start;
  }

  .login-card h2 {
    font-size: 1.12rem;
  }

  .login-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .login-feature {
    min-height: 104px;
    padding: 12px 9px;
    border-radius: 17px;
  }
}
