/* ==========================================================================
   登录 / 注册
   一屏一张卡：昵称 + 密码 + 一个按钮，底下一个小链接切注册。
   参考的是派对游戏的通行做法 —— 进游戏的门槛越低越好，
   确认密码、验证码、分步向导这些都在劝退路人。
   ========================================================================== */

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(120% 78% at 50% 112%, rgba(154, 44, 26, .30), transparent 62%),
    radial-gradient(96% 64% at 50% -8%, rgba(60, 48, 78, .34), transparent 70%),
    #07060a;
  transition: opacity .34s ease, visibility .34s;
}
.auth-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ag-card {
  width: min(356px, 100%);
  padding: 32px 28px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(32, 27, 38, .88) 0%, rgba(10, 8, 14, .93) 100%);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .72),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  animation: agIn .42s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes agIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.ag-brand {
  font-family: 'Songti SC', 'STSong', 'SimSun', serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .30em;
  text-indent: .30em;           /* 字距会把整行推右，补回来 */
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(180deg, #fffaf1 0%, #e2cfb2 58%, #a98f70 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 20px rgba(200, 90, 55, .26));
}
.ag-sub {
  margin-top: 9px;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: .34em;
  text-indent: .34em;
  color: #776c62;
}

.ag-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ag-in {
  height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(0, 0, 0, .42);
  color: #f2e6d4;
  font-size: 13.5px;
  letter-spacing: .05em;
  transition: border-color .16s, background .16s;
}
.ag-in::placeholder { color: #5d5450; letter-spacing: .04em; }
.ag-in:focus {
  outline: none;
  border-color: rgba(214, 65, 42, .58);
  background: rgba(0, 0, 0, .56);
}
.ag-go {
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #e0553a 0%, #b8331f 100%);
  color: #fff5ea;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .24em;
  text-indent: .24em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(214, 65, 42, .30);
  transition: filter .16s, transform .12s;
}
.ag-go:hover { filter: brightness(1.07); }
.ag-go:active { transform: scale(.985); }
.ag-go:disabled { opacity: .55; cursor: default; filter: none; }
.ag-err {
  min-height: 15px;
  margin: 1px 0 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: .04em;
  color: #e08b78;
}
.ag-swap {
  margin-top: 14px;
  width: 100%;
  border: 0;
  background: none;
  color: #7d716a;
  font-size: 11px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .16s;
}
.ag-swap:hover { color: #d9a86a; }

@media (max-width: 420px) {
  .ag-card { padding: 26px 20px 18px; }
  .ag-brand { font-size: 28px; }
}
