.login-page {
  min-height: 100vh;
  padding: 20px;
  background: #eef1f5;
}

.login-page .login-shell {
  width: min(1420px, 100%);
  min-height: calc(100vh - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(520px, 1.2fr) minmax(460px, .8fr);
  overflow: hidden;
  background: #f8f9fb;
  border: 1px solid rgba(17, 31, 51, .08);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(18, 30, 48, .12);
}

.login-page .brand-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 58px);
  margin: 9px;
  padding: 36px clamp(42px, 5vw, 76px) 34px;
  color: #fff;
  background: linear-gradient(145deg, #0b439c 0%, #082d69 58%, #061a3d 100%);
  border-radius: 23px;
}

.login-page .brand-panel::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -160px;
  bottom: -190px;
  z-index: -1;
  border: 72px solid rgba(255, 255, 255, .04);
  border-radius: 50%;
}

.login-page .brand-panel::after { display: none; }

.brand-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 76%);
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.login-page .brand-logo {
  width: min(270px, 62%);
  height: auto;
  padding: 8px 10px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(2, 18, 45, .15);
}

.login-page .brand-message {
  margin: auto 0;
  max-width: 650px;
  padding: 70px 0 54px;
}

.login-page .eyebrow-light { color: #9fc1ff; }

.login-page .brand-message h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(64px, 6.1vw, 98px);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 760;
}

.login-page .brand-message > p:last-child {
  max-width: 510px;
  margin: 32px 0 0;
  color: #d9e4f7;
  font-size: 17px;
  line-height: 1.65;
}

.login-page .server-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  color: #dce8fa;
  background: rgba(5, 25, 58, .42);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  white-space: nowrap;
}

.brand-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 500px;
  border-top: 1px solid rgba(255,255,255,.16);
}

.brand-footer div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 20px 0 0;
}

.brand-footer strong { color: #73a3f8; font-size: 10px; letter-spacing: .08em; }
.brand-footer span { color: #e4ecfa; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.login-page .login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px clamp(32px, 4.6vw, 72px) 26px;
  background: transparent;
}

.login-page .login-card {
  width: min(100%, 460px);
  padding: clamp(34px, 4vw, 50px);
  background: #fff;
  border: 1px solid #e1e6ee;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(27, 40, 59, .09);
}

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 7px 10px;
  color: #244264;
  background: #eef4fc;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.access-badge span { width: 6px; height: 6px; background: #1558c4; border-radius: 50%; }

.login-page .login-card h2 {
  margin: 0;
  font-size: clamp(38px, 3.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -.05em;
}

.login-page .intro { margin: 14px 0 34px; font-size: 14px; }

.login-page .input-wrap input {
  height: 56px;
  background: #f9fafc;
  border-radius: 10px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.login-page .input-wrap input:focus { background: #fff; }

.login-page .primary-button {
  justify-content: space-between;
  height: 56px;
  padding: 0 20px 0 24px;
  border-radius: 10px;
}

.login-page .primary-button.is-loading span::after { content: "..."; }

.login-page .privacy-note {
  justify-content: flex-start;
  margin-top: 24px;
  font-size: 11px;
}

.login-page .copyright { margin: 28px 0 0; padding: 0; font-size: 10px; }

@media (max-width: 860px) {
  .login-page { padding: 12px; }
  .login-page .mobile-brand { display: none; }

  .login-page .login-shell {
    display: block;
    min-height: calc(100vh - 24px);
    overflow: visible;
    border-radius: 24px;
  }

  .login-page .brand-panel {
    display: flex;
    min-height: auto;
    margin: 7px;
    padding: 22px 24px 28px;
    border-radius: 18px;
  }

  .login-page .brand-logo { width: 210px; }
  .login-page .brand-message { padding: 66px 0 8px; }
  .login-page .brand-message h1 { font-size: clamp(44px, 12vw, 68px); line-height: .92; }
  .login-page .brand-message > p:last-child { max-width: 500px; margin-top: 22px; font-size: 15px; }
  .brand-footer { display: none; }
  .login-page .login-panel { min-height: 0; padding: 22px 18px 28px; }
  .login-page .login-card { width: min(100%, 520px); }
  .login-page .copyright { margin-top: 24px; }
}

@media (max-width: 520px) {
  .login-page { padding: 0; background: #f8f9fb; }

  .login-page .login-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-page .brand-panel {
    margin: 0;
    padding: 20px 20px 28px;
    border-radius: 0 0 22px 22px;
  }

  .brand-top { align-items: flex-start; }
  .login-page .brand-logo { width: 178px; }
  .login-page .server-status { padding: 8px 9px; font-size: 0; }
  .login-page .server-status::after { content: "Online"; font-size: 10px; }
  .login-page .brand-message { padding: 54px 0 4px; }
  .login-page .brand-message .eyebrow { margin-bottom: 12px; }
  .login-page .brand-message h1 { font-size: 48px; }
  .login-page .brand-message > p:last-child { display: none; }
  .login-page .login-panel { justify-content: flex-start; padding: 16px; }
  .login-page .login-card { padding: 30px 22px 26px; border-radius: 18px; box-shadow: 0 10px 34px rgba(27, 40, 59, .07); }
  .login-page .login-card h2 { font-size: 36px; }
}
