body.is-login { background: #0571d2; }
#loginView {
  color: #112d50;
  background: radial-gradient(ellipse at 50% 40%, #73d5ff 0%, #1475c4 52%, #0c4187 100%);
  min-height: 100svh;
  display: grid;
  align-items: center;
}
body.is-home #loginView, #loginView[hidden] { display: none; }
#loginView .player-login {
  --poster: url("./player-login-blue.png");
  --field: linear-gradient(155deg, #c6e6ff, #e4f2ff);
  --ink: #163453;
  --button: linear-gradient(#fff5b6 0%, #ffd942 22%, #ffb700 64%, #f7a000 86%, #ffdf50);
  width: min(100%, max(410px, 60svh), 590px);
  container-type: inline-size;
  margin: 0 auto;
  box-shadow: 0 0 48px #09448075;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
#loginView .login-art-top, #loginView .login-art-foot {
  background-image: var(--poster);
  background-size: 100% auto;
  background-repeat: no-repeat;
}
#loginView .login-art-top { aspect-ratio: 768 / 449; background-position: center top; position: relative; }
#loginView .login-art-foot { aspect-ratio: 768 / 397; background-position: center bottom; }
#loginView .login-art-name:not([hidden]) {
  position: absolute;
  inset: 36.8% 26% auto 26%;
  height: 23%;
  display: grid;
  place-items: center;
  border: 2px solid #ffd25a;
  border-radius: 12px;
  background: linear-gradient(#1267cf, #073e8c 60%, #075caf);
  box-shadow: inset 0 0 8px #539dff, 0 2px 5px #124c90;
  color: #ffe078;
  font-size: min(var(--brand-size, 7cqw), 7.6cqw);
  line-height: 1.04;
  font-weight: 900;
  text-shadow: 0 2px 1px #734219;
  text-align: center;
  overflow-wrap: anywhere;
}
#loginView .login-panel {
  position: relative;
  padding: clamp(9px, 2.3cqw, 16px) 9.6% clamp(6px, 1.1cqw, 10px);
  /* Stretch a clean strip of the reference panel between the illustrated header and footer. */
  border-image: var(--poster) 545 0 729 fill / 0 / 0 stretch;
}
#loginView h1, #loginView .login-input-row > label, #loginView .login-input-row > span:nth-child(2) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0;
}
#loginView .login-input-row {
  display: flex;
  align-items: center;
  gap: 3.2cqw;
  min-height: max(44px, 9.4cqw);
  padding: 0 4.6cqw;
  margin-bottom: 2.3cqw;
  border: 1px solid #fff;
  border-radius: 999px;
  background: var(--field);
  box-shadow: 0 1px 2px #295e9bb0, inset 0 0 8px #fff5;
}
#loginView .login-input-row:focus-within { outline: 2px solid #1466b7; outline-offset: 1px; }
#loginView .login-input-row input {
  min-width: 0; width: 0; flex: 1;
  padding: 0; border: 0; outline: none; background: transparent;
  color: var(--ink); font-size: max(16px, 3.7cqw); line-height: 1.3;
}
#loginView .login-input-row input::placeholder { color: var(--ink); opacity: .86; }
#loginView input::-ms-reveal { display: none; }
#loginView .login-icon { position: relative; width: 1.16em; height: 1.4em; flex: none; color: #0563b9; font-size: max(18px, 4cqw); }
#loginView .login-icon::before, #loginView .login-icon::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 2px solid; box-sizing: border-box; }
#loginView .icon-user::before { width: .68em; height: .74em; top: 0; border-radius: 50%; }
#loginView .icon-user::after { width: 1.12em; height: .57em; bottom: .07em; border-radius: 1em 1em .2em .2em; }
#loginView .icon-lock::before { width: .72em; height: .72em; top: .06em; border-radius: 1em 1em 0 0; }
#loginView .icon-lock::after { width: 1.1em; height: .78em; bottom: .05em; border-radius: .17em; background: #d7ebff; }
#loginView #loginReveal { display: grid; place-items: center; width: 40px; min-height: 42px; margin-right: -8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
#loginReveal span { position: relative; width: 21px; height: 14px; border: 2px solid; border-radius: 68% 30%; transform: rotate(23deg); }
#loginReveal span::before { content: ""; position: absolute; inset: 2px 5px; border: 1.6px solid; border-radius: 50%; }
#loginReveal[aria-pressed="false"] span::after { content: ""; position: absolute; top: 4px; left: -3px; width: 24px; border-top: 2px solid; transform: rotate(-60deg); }
#loginView .login-options { display: flex; align-items: center; justify-content: space-between; margin: 0 1% 1.5cqw; }
#loginView .remember { min-height: 40px; margin: 0; gap: 6px; color: #183354; font-size: max(14px, 3.6cqw); }
#loginView .checkmark { width: 1.28em; height: 1.28em; border-radius: .3em; background: linear-gradient(#31b3ff,#0051bc); color: white; box-shadow: 0 1px 3px #236aac70; }
#loginView .remember input:not(:checked) + .checkmark { background: #eff9ff; border: 1px solid #5297d0; color: transparent; }
#loginView .remember input:focus-visible + .checkmark { outline: 2px solid #144cc4; outline-offset: 2px; }
#loginView #helpOpen { border: 0; padding: 8px 0; background: transparent; color: #064caa; text-decoration: underline; font-weight: 700; cursor: pointer; }
#loginView #helpOpen, #loginView .login-signup { font-size: max(14px, 3.5cqw); }
#loginView .login-submit {
  position: relative; width: 100%; min-height: max(47px, 11.4cqw); border-radius: 999px;
  border: 2px solid #ffeb91; background: var(--button); color: #092d65;
  box-shadow: inset 0 0 0 2px #eead13, inset 0 -4px 5px #ba6e09, 0 2px 1px #96530b, 0 4px 6px #1f629a52;
  font-size: max(24px, 6.5cqw); font-weight: 900; line-height: 1.1; cursor: pointer;
}
#loginView .login-submit::before, #loginView .login-submit::after { position: absolute; top: 50%; transform: translateY(-53%); color: #ae6308; font-size: .92em; }
#loginView .login-submit::before { content: "»"; left: 20%; }
#loginView .login-submit::after { content: "«"; right: 20%; }
#loginView .login-submit:disabled { opacity: .72; }
#loginView .login-signup { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 2.5cqw 0 0; color: #103362; }
#loginView #registerOpen { padding: 2px 13px 4px; border: 1px solid #ffdc73; border-radius: 999px; background: linear-gradient(#218fe8,#003a9e); color: #ffe486; font-weight: 750; box-shadow: 0 1px 2px #755a20; cursor: pointer; }
@media(max-width: 599px) {
  #loginView { align-items: start; background: linear-gradient(#0370da, #84cfff 75%, #d6efff); }
  #loginView .player-login { width: 100%; box-shadow: none; }
}
