/* 登录 — 1920×1080 画布缩放（与大厅/对局一致） */

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 450;
  overflow: hidden;
  background: #06060e;
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
  box-sizing: border-box;
}

.auth-screen.hidden {
  display: none;
}

.auth-stage-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-stage-viewport {
  position: relative;
  overflow: hidden;
}

.auth-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  overflow: hidden;
  font-family: "Segoe UI", "Microsoft YaHei", "Consolas", "Courier New", monospace;
  color: #c8e6ff;
}

.auth-screen__bg {
  position: absolute;
  inset: 0;
  background-color: #06060e;
  background-image: url("dating-bg.jpeg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.auth-screen__grid,
.auth-screen__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-screen__grid {
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 20%, transparent 75%);
}

.auth-screen__scan {
  opacity: 0.03;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 4px
  );
}

.auth-panel-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 80px;
  box-sizing: border-box;
}

.auth-panel {
  position: relative;
  width: 720px;
  max-height: 100%;
  overflow: auto;
  box-sizing: border-box;
  padding: 32px 36px 28px;
  background: rgba(7, 10, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow:
    0 0 40px rgba(180, 74, 255, 0.15),
    0 0 80px rgba(68, 136, 255, 0.08),
    inset 0 0 60px rgba(0, 240, 255, 0.03);
  clip-path: polygon(
    20px 0, 100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%, 0 20px
  );
}

.auth-head {
  text-align: center;
  margin-bottom: 28px;
}

.auth-head__en {
  font-family: Consolas, "Courier New", monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #00f0ff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.55);
  margin-bottom: 8px;
}

.auth-head__cn {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  margin-bottom: 0;
}

.auth-head__line {
  margin: 16px auto 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 240, 255, 0.8),
    rgba(255, 42, 109, 0.75),
    rgba(180, 74, 255, 0.8),
    transparent
  );
  box-shadow: 0 0 12px rgba(255, 42, 109, 0.45);
}

.auth-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 16px;
}

.auth-label {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(0, 240, 255, 0.85);
  text-align: right;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border-radius: 0;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(12, 16, 32, 0.85);
  color: #e8f4ff;
  font-size: 22px;
  font-family: inherit;
  outline: none;
  touch-action: manipulation;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.auth-input::placeholder {
  color: rgba(200, 230, 255, 0.35);
  font-size: 20px;
}

.auth-input:focus {
  border-color: rgba(252, 238, 9, 0.65);
  box-shadow: 0 0 16px rgba(252, 238, 9, 0.2);
}

.auth-hint {
  min-height: 28px;
  margin: 4px 0 0;
  font-size: 20px;
  color: #ff8a80;
  text-align: center;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.auth-hint.ok {
  color: #a5d6a7;
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 18px 20px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 26px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.22em;
  color: #1a1020;
  background: linear-gradient(135deg, #fcee09 0%, #ff8f00 100%);
  box-shadow: 0 0 28px rgba(252, 238, 9, 0.28);
  transition: filter 0.12s;
  touch-action: manipulation;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.auth-submit:hover {
  filter: brightness(1.08);
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
