.auth-pending { overflow: hidden; }
.auth-pending #app { visibility: hidden; }
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: clamp(18px, 4vw, 46px);
  background:
    radial-gradient(circle at 78% 18%, rgba(83, 145, 226, .18), transparent 31%),
    radial-gradient(circle at 13% 88%, rgba(211, 163, 51, .12), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 56%, #f9fbfd 100%);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.auth-gate::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(25, 62, 111, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 62, 111, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.auth-loading { color: #17355f; font-size: 13px; }
.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: min(680px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(370px, .72fr);
  overflow: hidden;
  border: 1px solid rgba(29, 66, 116, .12);
  border-radius: 30px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 32px 90px rgba(28, 58, 102, .16);
  backdrop-filter: blur(18px);
}
.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(42px, 6vw, 78px);
  color: #152d54;
  background:
    radial-gradient(circle at 78% 50%, rgba(70, 136, 222, .18), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(236,244,255,.82));
}
.auth-story::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -210px;
  bottom: -190px;
  border: 1px solid rgba(47, 104, 181, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(47,104,181,.035), 0 0 0 110px rgba(47,104,181,.025);
}
.auth-parentbrand {
  position: absolute;
  top: 34px;
  left: clamp(38px, 5vw, 72px);
  color: #b98522;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 3px;
}
.auth-product { position: relative; z-index: 1; }
.auth-product > span {
  display: block;
  margin-bottom: 14px;
  color: #b98522;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.4px;
}
.auth-product h1 {
  margin: 0;
  color: #172f58;
  font: 900 clamp(56px, 6vw, 82px)/1 "Microsoft YaHei", sans-serif;
  letter-spacing: -5px;
}
.auth-product p {
  margin: 18px 0 0;
  color: #526986;
  font-size: 17px;
  letter-spacing: 1px;
}
.auth-legend {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 54px;
}
.auth-legend b { display: flex; gap: 12px; }
.auth-legend i {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 30px 30px 30px 9px;
  color: #fff;
  background: linear-gradient(145deg, #15335f, #234d86);
  box-shadow: 0 18px 36px rgba(21, 51, 95, .16);
  font: normal 900 56px/1 "Songti SC", "Microsoft YaHei", serif;
}
.auth-legend i:first-child {
  color: #17345d;
  background: linear-gradient(145deg, #f2d990, #d5a52f);
  box-shadow: 0 18px 36px rgba(190, 139, 25, .17);
}
.auth-legend span {
  display: block;
  margin-top: 14px;
  color: #6c7e96;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-align: center;
}
.auth-promise {
  position: absolute;
  z-index: 1;
  right: clamp(35px, 4vw, 62px);
  bottom: 48px;
  display: grid;
  gap: 7px;
  padding: 18px 22px;
  border: 1px solid rgba(39, 82, 137, .13);
  border-radius: 16px 16px 16px 5px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 14px 36px rgba(32,72,125,.08);
}
.auth-promise strong { color: #17355f; font-size: 15px; }
.auth-promise span { color: #667b97; font-size: 12px; }
.auth-card {
  align-self: center;
  width: calc(100% - 48px);
  margin: 24px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(33, 71, 120, .11);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 60px rgba(24, 57, 101, .13);
}
.auth-card-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.auth-card-brand span { color: #17355f; font-size: 18px; font-weight: 900; }
.auth-card-brand small { color: #c08d27; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.auth-card .section-kicker { color: #b58020; font-size: 11px; font-weight: 900; letter-spacing: 1.5px; }
.auth-card h1 { margin: 8px 0 9px; color: #152f58; font: 900 30px/1.25 "Microsoft YaHei", sans-serif; }
.auth-card > p { margin: 0 0 24px; color: #6d7f96; font-size: 12px; line-height: 1.75; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 7px; color: #344e70; font-size: 11px; font-weight: 900; }
.auth-form input {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  background: #f7faff;
  color: #17355f;
  outline: none;
}
.auth-form input::placeholder { color: #9caac0; }
.auth-form input:focus { border-color: #d2a43b; box-shadow: 0 0 0 4px rgba(210, 164, 59, .12); background: #fff; }
.auth-password { display: grid; grid-template-columns: 1fr auto; }
.auth-password input { border-radius: 12px 0 0 12px; }
.auth-password button {
  padding: 0 14px;
  border: 1px solid #d8e2ef;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: #f7faff;
  color: #667b97;
  font-size: 10px;
  font-weight: 800;
}
.auth-submit {
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #15345f, #234e87);
  color: #fff;
  box-shadow: 0 14px 28px rgba(22, 54, 97, .18);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 3px;
  cursor: pointer;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 17px 32px rgba(22,54,97,.24); }
.auth-error { padding: 11px 13px; border-left: 3px solid #a34244; background: #faeceb; color: #8d383b; font-size: 11px; }
.auth-security { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 13px; border-radius: 12px; background: #f4f8fd; }
.auth-security i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #3d8068; box-shadow: 0 0 0 4px rgba(61,128,104,.12); }
.auth-security span,.auth-security b,.auth-security small { display: block; }
.auth-security b { color: #34516f; font-size: 10px; }
.auth-security small { margin-top: 3px; color: #8190a3; font-size: 9px; }
.auth-card footer { margin-top: 18px; padding-top: 15px; border-top: 1px solid #e6ebf1; color: #96a0af; font-size: 9px; line-height: 1.65; }
.auth-card footer b { color: #b17d1e; }
@media (max-width: 860px) {
  .auth-shell { width: min(520px, 100%); min-height: auto; grid-template-columns: 1fr; border-radius: 24px; }
  .auth-story { min-height: 185px; justify-content: flex-end; padding: 70px 28px 24px; }
  .auth-parentbrand { top: 22px; left: 27px; font-size: 12px; letter-spacing: 2px; }
  .auth-product > span,.auth-product p { display: none; }
  .auth-product h1 { font-size: 42px; letter-spacing: -3px; }
  .auth-legend { position: absolute; right: 24px; bottom: 25px; margin: 0; }
  .auth-legend b { gap: 7px; }
  .auth-legend i { width: 58px; height: 58px; border-radius: 17px 17px 17px 5px; font-size: 30px; }
  .auth-legend span { margin-top: 7px; font-size: 9px; letter-spacing: 1px; }
  .auth-promise { display: none; }
  .auth-card { width: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
}
@media (max-width: 520px) {
  .auth-gate { display: block; padding: 0; background: #eef5ff; }
  .auth-shell { width: 100%; min-height: 100dvh; border: 0; border-radius: 0; }
  .auth-story { min-height: 175px; }
  .auth-card { padding: 28px 22px max(28px, env(safe-area-inset-bottom)); }
  .auth-card-brand { margin-bottom: 20px; }
  .auth-card h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-submit { transition: none; }
  .auth-submit:hover { transform: none; }
}
