/* 用户端样式:移动端优先,现代体育风格。
   登录/注册使用居中卡片,背景为真实足球场夜景素材;
   与运营后台(admin.css)视觉完全区分。 */

:root {
  --accent-green: #2be08a;
  --accent-blue: #3aa0ff;
  --text-light: #eef3fb;
  --text-muted: #b6c4da;
  --danger: #ff6b6b;
  --success: #2be08a;
  --card-bg: rgba(10, 18, 32, 0.82);
  --field-bg: rgba(3, 9, 18, 0.65);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-green);
  text-decoration: none;
}

input, button {
  font-family: inherit;
}

/* ============ 登录/注册:全屏体育背景 + 居中卡片 ============ */

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  background: #050b16 url("/static/img/stadium-bg.png") center / cover no-repeat fixed;
}

/* 背景压暗,保证卡片与文字清晰可读 */
.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.55) 0%, rgba(5, 11, 22, 0.78) 100%);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(43, 224, 138, 0.22);
  border-radius: 20px;
  padding: 34px 26px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.brand .brand-en {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--accent-blue);
  margin-top: 4px;
}

.brand-tag {
  font-size: 13px;
  color: var(--text-muted);
  margin: 10px 0 24px;
}

.auth-card h1 {
  font-size: 20px;
  margin: 0 0 4px;
}

.auth-card .subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 22px;
}

.field {
  margin-bottom: 16px;
  text-align: left;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="password"] {
  width: 100%;
  padding: 14px;
  font-size: 16px; /* 避免 iOS 聚焦时自动放大 */
  background: var(--field-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-light);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 50px;
}

.field input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(43, 224, 138, 0.16);
}

.field .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
}

.remember-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-green);
}

.btn-cta {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
  color: #04150e;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-cta:active {
  transform: scale(0.985);
}

.btn-cta:hover {
  box-shadow: 0 12px 26px rgba(43, 224, 138, 0.32);
}

.auth-switch {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: left;
}

.alert-error {
  background: rgba(255, 107, 107, 0.14);
  border: 1px solid rgba(255, 107, 107, 0.38);
  color: var(--danger);
}

.alert-success {
  background: rgba(43, 224, 138, 0.14);
  border: 1px solid rgba(43, 224, 138, 0.38);
  color: var(--success);
}

/* ============ 大厅页 ============ */

.lobby-body {
  background: #050b16 url("/static/img/stadium-bg.png") center top / cover no-repeat fixed;
  min-height: 100vh;
  min-height: 100dvh;
}

.lobby-overlay {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.72) 0%, rgba(5, 11, 22, 0.92) 60%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(6, 12, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43, 224, 138, 0.2);
  flex-wrap: wrap;
}

.site-header .brand-mark {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.wallet-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(43, 224, 138, 0.14);
  border: 1px solid rgba(43, 224, 138, 0.4);
  color: var(--accent-green);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-light);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

.lobby-wrap {
  padding: 18px 16px 48px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 18px;
  scrollbar-width: none;
}

.category-row::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(16, 27, 48, 0.7);
  border: 1px solid rgba(43, 224, 138, 0.16);
  font-size: 13px;
  color: var(--text-muted);
}

.category-chip.active {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  color: #04150e;
  font-weight: 700;
  border-color: transparent;
}

.lobby-panel {
  background: rgba(16, 27, 48, 0.72);
  border: 1px solid rgba(43, 224, 138, 0.16);
  border-radius: 18px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 14px;
}

.lobby-panel .panel-icon {
  width: 56px;
  height: 56px;
}

.lobby-panel h2 {
  margin: 0;
  font-size: 18px;
}

.lobby-panel p {
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.8;
  margin: 0;
  font-size: 14px;
}

@media (min-width: 860px) {
  .auth-card {
    max-width: 420px;
    padding: 40px 36px 34px;
  }
  .site-header { padding: 16px 32px; }
  .lobby-wrap { padding: 32px 32px 56px; }
}
