/* v4054 — 注册登录整页：深蓝牌桌视觉 + 响应式整页表单。 */

html body.theme-pearl-blue .login-page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  width: 100vw;
  height: 100svh;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  background-color: #07143f;
  background-image: url("./assets/club-lobby-background-v4034.jpg");
  background-position: center;
  background-size: cover;
}

html body.theme-pearl-blue .login-visual {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background-color: #0d2b72;
  background-image: url("./assets/login-game-table-hero-v4054.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: inset -24px 0 54px rgba(3, 10, 38, .34);
}

html body.theme-pearl-blue .login-panel {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  padding: max(34px, env(safe-area-inset-top)) 42px max(34px, env(safe-area-inset-bottom));
  border-left: 1px solid rgba(239, 199, 103, .74);
  background-color: #07153f;
  box-shadow: -22px 0 46px rgba(2, 8, 34, .3);
}

html body.theme-pearl-blue .login-card {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html body.theme-pearl-blue .login-brand {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  text-align: left;
}

html body.theme-pearl-blue .login-card .login-brand strong {
  color: #f3d482;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-shadow: 0 5px 16px rgba(0, 0, 0, .32);
}

html body.theme-pearl-blue .login-card .login-brand em {
  max-width: 34em;
  color: #b9c7ee;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.7;
}

html body.theme-pearl-blue .login-field {
  display: grid;
  gap: 8px;
}

html body.theme-pearl-blue .login-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

html body.theme-pearl-blue .login-field label {
  color: #eef3ff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

html body.theme-pearl-blue .login-card .login-field input {
  box-sizing: border-box;
  width: 100%;
  height: 58px;
  padding: 0 17px;
  border: 1px solid rgba(173, 193, 245, .42);
  border-radius: 14px;
  background-color: #142653;
  color: #fff;
  caret-color: #f1c665;
  font-size: 17px;
  font-weight: 800;
  outline: 0;
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, .2);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

html body.theme-pearl-blue .login-card .login-field input::placeholder {
  color: #91a2cf;
  opacity: 1;
}

html body.theme-pearl-blue .login-card .login-field input:focus {
  border-color: #efc86f;
  background-color: #182e63;
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, .16), 0 6px 18px rgba(0, 0, 0, .2);
}

html body.theme-pearl-blue .login-card .login-field input:-webkit-autofill,
html body.theme-pearl-blue .login-card .login-field input:-webkit-autofill:hover,
html body.theme-pearl-blue .login-card .login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  box-shadow: inset 0 0 0 999px #142653;
  transition: background-color 9999s ease-out 0s;
}

html body.theme-pearl-blue #loginPhoneInput:-webkit-autofill,
html body.theme-pearl-blue #loginPhoneInput:-webkit-autofill:hover,
html body.theme-pearl-blue #loginPhoneInput:-webkit-autofill:focus {
  background-color: #edf3ff !important;
  color: #101a38 !important;
  -webkit-text-fill-color: #101a38 !important;
  caret-color: #101a38;
  border-color: #d7b85f;
  box-shadow: inset 0 0 0 999px #edf3ff !important;
}

html body.theme-pearl-blue #loginPhoneInput:autofill {
  background-color: #edf3ff !important;
  color: #101a38 !important;
  caret-color: #101a38;
  border-color: #d7b85f;
}

html body.theme-pearl-blue .login-card .login-password-toggle {
  width: auto;
  min-width: 44px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e8c66f;
  font-size: 13px;
  font-weight: 850;
}

html body.theme-pearl-blue .login-card .login-password-toggle:hover,
html body.theme-pearl-blue .login-card .login-password-toggle:focus-visible {
  background-color: #162a5e;
  outline: 1px solid rgba(239, 200, 111, .7);
}

html body.theme-pearl-blue .login-card > #loginBtn {
  width: 100%;
  height: 58px;
  margin-top: 4px;
  border: 1px solid #ffe59c;
  border-radius: 14px;
  background-color: #e5b64d;
  color: #251700;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: .01em;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .48), 0 9px 20px rgba(0, 0, 0, .28);
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

html body.theme-pearl-blue .login-card > #loginBtn:hover {
  background-color: #f0c55f;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 12px 25px rgba(0, 0, 0, .3);
}

html body.theme-pearl-blue .login-card > #loginBtn:active {
  transform: translateY(1px);
}

html body.theme-pearl-blue .login-card > #loginBtn:focus-visible {
  outline: 3px solid rgba(255, 228, 153, .42);
  outline-offset: 3px;
}

html body.theme-pearl-blue .login-card > #loginBtn:disabled {
  cursor: wait;
  background-color: #ac8b48;
  color: #3f3014;
  transform: none;
  box-shadow: none;
}

html body.theme-pearl-blue .login-card #loginMsg {
  min-height: 21px;
  margin: -4px 0 0;
  color: #ffbdc5;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

html body.theme-pearl-blue .login-assurance {
  position: relative;
  display: block;
  margin-top: -7px;
  color: #8fa1ce;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 820px) {
  html body.theme-pearl-blue .login-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(248px, 38svh) minmax(0, 1fr);
    overflow-y: auto;
    background-color: #07153f;
    background-image: none;
  }

  html body.theme-pearl-blue .login-visual {
    min-height: 248px;
    background-position: center 49%;
    box-shadow: inset 0 -22px 38px rgba(3, 10, 38, .22);
  }

  html body.theme-pearl-blue .login-panel {
    align-items: start;
    margin-top: -28px;
    padding: 52px 26px max(24px, env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid rgba(239, 199, 103, .82);
    border-radius: 34px 34px 0 0;
    background-color: #07153f;
    box-shadow: 0 -18px 34px rgba(2, 8, 34, .2);
  }

  html body.theme-pearl-blue .login-card {
    gap: 14px;
    max-width: 480px;
  }

  html body.theme-pearl-blue .login-brand {
    gap: 7px;
    margin-bottom: 5px;
    text-align: center;
  }

  html body.theme-pearl-blue .login-card .login-brand strong {
    font-size: clamp(32px, 9vw, 42px);
  }

  html body.theme-pearl-blue .login-card .login-brand em {
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.55;
  }

  html body.theme-pearl-blue .login-card .login-field input,
  html body.theme-pearl-blue .login-card > #loginBtn {
    height: 54px;
  }
}

@media (max-width: 380px), (max-height: 720px) and (max-width: 820px) {
  html body.theme-pearl-blue .login-page {
    grid-template-rows: minmax(210px, 32svh) minmax(0, 1fr);
  }

  html body.theme-pearl-blue .login-visual {
    min-height: 210px;
  }

  html body.theme-pearl-blue .login-panel {
    margin-top: -22px;
    padding: 38px 18px max(18px, env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
  }

  html body.theme-pearl-blue .login-card {
    gap: 11px;
  }

  html body.theme-pearl-blue .login-card .login-brand strong {
    font-size: 30px;
  }

  html body.theme-pearl-blue .login-card .login-brand em {
    font-size: 12px;
  }

  html body.theme-pearl-blue .login-card .login-field input,
  html body.theme-pearl-blue .login-card > #loginBtn {
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.theme-pearl-blue .login-card .login-field input,
  html body.theme-pearl-blue .login-card > #loginBtn {
    transition: none;
  }
}
