.login-screen {
  isolation: isolate;
  overflow: hidden;
}

.login-bg {
  background-image: url("/assets/login-bg-p98-pacific-dawn.webp");
  background-position: center center;
  transform: scale(1.015);
}

.login-fog {
  background:
    linear-gradient(180deg, rgba(3, 7, 12, .28) 0%, rgba(4, 8, 11, .04) 35%, rgba(5, 9, 10, .22) 53%, rgba(5, 9, 8, .88) 74%, rgba(5, 8, 7, .98) 100%),
    radial-gradient(ellipse at 50% 40%, rgba(185, 151, 84, .08), transparent 44%);
}

.login-manifesto {
  position: absolute;
  z-index: 2;
  top: calc(10.5vh + var(--safe-t));
  left: 26px;
  right: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(239, 230, 203, .82);
  font-family: STKaiti, KaiTi, FangSong, "Noto Serif SC", "Songti SC", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: .08em;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .95), 0 0 18px rgba(0, 0, 0, .7);
  pointer-events: none;
}

.login-manifesto::before {
  content: "“";
  position: absolute;
  top: -38px;
  left: 1px;
  color: rgba(202, 176, 110, .16);
  font-family: Georgia, serif;
  font-size: 76px;
  font-weight: 400;
  line-height: 1;
  text-shadow: none;
}

.login-manifesto span {
  display: block;
}

.login-manifesto strong {
  display: block;
  margin-top: 8px;
  color: rgba(237, 213, 155, .94);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .42em;
  text-indent: .42em;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .95), 0 0 22px rgba(194, 153, 66, .2);
}

.login-panel {
  z-index: 3;
  border-color: rgba(106, 114, 95, .62);
  background:
    linear-gradient(180deg, rgba(24, 34, 29, .96), rgba(8, 13, 11, .985)),
    linear-gradient(135deg, rgba(196, 165, 87, .04), transparent 40%);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, .72),
    inset 0 1px rgba(255, 255, 255, .045);
}

.login-crest.login-commander-crest {
  position: relative;
  width: 70px;
  height: 70px;
  margin-top: -4px;
  margin-bottom: 9px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(220, 190, 104, .82);
  border-radius: 50%;
  background: linear-gradient(145deg, #e0c56f, #7c6323 55%, #d0aa42);
  box-shadow:
    0 0 0 3px rgba(12, 17, 14, .94),
    0 0 0 4px rgba(197, 164, 73, .34),
    0 6px 18px rgba(0, 0, 0, .65),
    0 0 22px rgba(195, 157, 60, .16);
}

.login-crest.login-commander-crest::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 238, 176, .28);
  pointer-events: none;
}

.login-commander-crest img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  filter: contrast(1.04) saturate(.86) sepia(.08);
}

.login-panel h1 {
  color: #efe0a5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .78), 0 0 16px rgba(199, 160, 56, .12);
}

@media (max-height: 760px) {
  .login-manifesto {
    top: calc(5.5vh + var(--safe-t));
    font-size: 13px;
    line-height: 1.65;
  }

  .login-manifesto strong {
    margin-top: 4px;
    font-size: 20px;
  }

  .login-panel {
    padding-top: 14px;
  }

  .login-crest.login-commander-crest {
    width: 58px;
    height: 58px;
    margin-bottom: 5px;
  }
}

@media (max-height: 620px) {
  .login-manifesto {
    display: none;
  }
}
