/* Login brand layout v3: stable desktop/mobile composition. */
.access-shell .brand-panel {
  display: grid;
  grid-template-rows: auto minmax(28px, 1fr) auto auto auto;
  align-content: stretch;
  justify-content: initial;
  gap: 0;
}

.access-shell .brand-panel > div:nth-child(2) {
  align-self: end;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.access-shell .brand-panel .brand-mark.brand-glyph {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 8px;
  width: max-content;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.access-shell .brand-panel .brand-mark.brand-glyph > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 50px;
  border: 1px solid #b58b3a;
  background: #191b1d;
  box-shadow: inset 0 0 0 3px #191b1d, inset 0 0 0 4px #655127;
  font-family: STKaiti, KaiTi, "Kaiti SC", SimSun, serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}

.access-shell .brand-panel .brand-char-xuan { color: #d7b66f; }
.access-shell .brand-panel .brand-char-shi { color: #87a99a; }
.access-shell .brand-panel .brand-char-shuang { color: #bd5a4b; }

.access-shell .brand-panel .eyebrow {
  margin: 0;
  color: #a88a51;
  font-size: 10px;
  letter-spacing: 0;
}

.access-shell .brand-panel h1 {
  margin: 0;
  color: #f6f2e8;
  font-size: clamp(46px, 5vw, 70px);
  line-height: 1.08;
  letter-spacing: 0;
}

.access-shell .brand-panel .brand-copy {
  align-self: start;
  display: block;
  max-width: 430px;
  margin: 22px 0 0;
  padding-left: 18px;
  color: #c9c3b7;
  border-left: 1px solid #92702e;
  font-family: STKaiti, KaiTi, "Kaiti SC", SimSun, serif;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
}

.access-shell .brand-panel .brand-copy::first-letter {
  color: #d8b258;
  font-size: 1.35em;
  font-weight: 700;
}

.access-shell .brand-panel .brand-foot {
  display: flex;
  align-items: center;
  margin-top: 28px;
  color: #8d8b84;
}

.access-shell .brand-panel .public-project-auth {
  position: static;
  justify-self: start;
  align-self: end;
  display: inline-flex;
  width: auto;
  margin-top: 20px;
  padding: 10px 0 0;
  color: #d5b66f;
  background: transparent;
  border: 0;
  border-top: 1px solid #49432f;
  font-size: 13px;
  font-weight: 600;
}

.access-shell .brand-panel .public-project-auth:hover {
  color: #fff;
  border-color: #9c7937;
}

@media (max-width: 760px) {
  .access-shell .brand-panel {
    grid-template-rows: auto auto auto auto;
    min-height: 310px;
    padding: 22px 20px 24px;
    border-right: 0;
    border-bottom: 4px solid #a87924;
  }

  .access-shell .brand-panel > div:nth-child(2) {
    align-self: auto;
    margin-top: 22px;
    gap: 6px;
  }

  .access-shell .brand-panel .brand-mark.brand-glyph {
    grid-template-columns: repeat(3, 36px);
    gap: 6px;
  }

  .access-shell .brand-panel .brand-mark.brand-glyph > span {
    width: 36px;
    height: 40px;
    font-size: 19px;
  }

  .access-shell .brand-panel h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .access-shell .brand-panel .brand-copy {
    margin-top: 13px;
    padding-left: 12px;
    font-size: 15px;
    line-height: 1.5;
  }

  .access-shell .brand-panel .brand-foot {
    display: none;
  }

  .access-shell .brand-panel .public-project-auth {
    position: absolute;
    top: 22px;
    right: 20px;
    left: auto;
    bottom: auto;
    margin: 0;
    padding: 8px 0;
    border-top: 0;
    border-bottom: 1px solid #5d5034;
    font-size: 12px;
  }

  .access-shell .auth-panel {
    padding: 28px 18px 40px;
  }
}

@media (max-width: 390px) {
  .access-shell .brand-panel {
    min-height: 300px;
    padding-inline: 18px;
  }

  .access-shell .brand-panel .public-project-auth {
    right: 18px;
  }

  .access-shell .brand-panel .brand-copy {
    max-width: 310px;
    font-size: 14px;
  }
}
