/* =====================================================================
   screens-auth-fc.css —— 登录/注册屏「FC 风 v2」（前缀 au-）。
   电竞 / EA Sports FC Mobile 风：fc-screen 基底 + 五层背景组 + 玻璃卡
   （theme-fc.css 共享组件 fc-*），电光绿能量 #15e371、clip-path 棱角、
   Saira Condensed 粗斜体 Wordmark（与主页 hm-wordmark 同语言）。
   双设计稿：竖版 1080x1920（默认，品牌区在上、卡片居中在下）/
   横版 1920x1080（body.landscape，左品牌右卡双栏，https://d1u4k7xc6u3yed.cloudfront.net/agent-soccer/js/app.js fitStage() 切换）。
   旧 auth 样式留在 screens-misc.css（按旧类名失效，不引用）。
   ===================================================================== */

/* ---------------- 幽灵跑马灯（装饰背景字，与主页英雄区同语言） ---------------- */
#screen-auth .au-ghost {
  position: absolute; left: -10%; top: 26%; width: 140%;
  white-space: nowrap; overflow: hidden;
  transform: rotate(-7deg);
  pointer-events: none; z-index: 0;
}
#screen-auth .au-ghost-track {
  display: inline-block;
  font-family: var(--fc-d); font-style: italic; font-weight: 800;
  font-size: 230px; line-height: .9; letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.032);
  animation: au-march 26s linear infinite;
}
@keyframes au-march { to { transform: translateX(-50%); } }

/* ---------------- 右上角语言切换：观感对齐主页（theme.css 的定位保留） ---------------- */
#screen-auth .lang-toggle {
  background: var(--fc-panel);
  border: 1px solid var(--fc-stroke);
  backdrop-filter: blur(10px);
  border-radius: 0;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  font-family: var(--fc-f);
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--fc-txt);
  transition: .16s;
}
#screen-auth .lang-toggle:hover {
  color: var(--fc-energy);
  border-color: var(--fc-stroke);
  box-shadow: 0 0 18px rgba(21, 227, 113, 0.3);
  transform: none;
}

/* ---------------- 布局（竖版默认：品牌区在上、登录卡在下，整体居中） ---------------- */
#screen-auth .au-app {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 72px;
  padding: 130px 90px 80px; /* 顶部给右上角语言钮留位 */
  overflow-y: auto;
}

/* ---------------- 品牌区：Wordmark + 标签条 + SEASON 徽章 ---------------- */
#screen-auth .au-brand {
  display: flex; flex-direction: column; align-items: center;
  gap: 26px;
  text-align: center;
  flex: 0 0 auto;
  user-select: none;
}
#screen-auth .au-wordmark {
  font-family: var(--fc-d); font-style: italic; font-weight: 800;
  line-height: .88; font-size: 148px; letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .55);
}
#screen-auth .au-wordmark .a { color: #fff; }
#screen-auth .au-wordmark .s { color: var(--fc-energy); text-shadow: 0 0 26px rgba(21, 227, 113, 0.55); }
#screen-auth .au-tagrule { display: flex; align-items: center; gap: 20px; }
#screen-auth .au-tagrule .bar {
  height: 8px; width: 96px;
  background: var(--fc-energy);
  box-shadow: 0 0 14px rgba(21, 227, 113, 0.7);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
#screen-auth .au-tagrule .bar.r { transform: scaleX(-1); } /* 右侧镜像短杠 */
#screen-auth .au-tagrule .txt {
  font-family: var(--fc-d); font-style: italic; font-weight: 700;
  letter-spacing: 5px; font-size: 30px; color: var(--fc-cyan);
  white-space: nowrap;
}
#screen-auth .au-season { font-size: 24px; padding: 6px 20px; }

/* ---------------- 登录/注册玻璃卡 ---------------- */
#screen-auth .au-card {
  position: relative;
  width: 840px; max-width: 100%;
  display: flex; flex-direction: column;
  gap: 30px;
  padding: 54px 60px 44px;
  flex: 0 0 auto;
}
/* 左侧绿→青能量竖条（与主页资料 HUD 同语言） */
#screen-auth .au-card::before {
  content: '';
  position: absolute; left: 0; top: 0; width: 8px; height: 100%;
  background: linear-gradient(180deg, var(--fc-energy), var(--fc-cyan));
  box-shadow: 0 0 16px rgba(21, 227, 113, 0.5);
}
#screen-auth .au-title { font-size: 54px; margin-bottom: 4px; }

/* ---------------- 表单字段（覆盖 screens-misc.css 的 #screen-auth label 旧规则） ---------------- */
#screen-auth .au-field {
  display: flex; flex-direction: column;
  gap: 14px;
  font-size: 26px;
  color: var(--fc-txt-dim);
}
#screen-auth .au-label {
  font-family: var(--fc-d); font-style: italic; font-weight: 700;
  font-size: 26px; letter-spacing: 3px;
  color: var(--fc-txt-dim);
  text-transform: uppercase;
}
#screen-auth .au-field .fc-input { width: 100%; }
#screen-auth .au-extra { display: flex; flex-direction: column; gap: 30px; }

/* ---------------- 国籍选择行：◀ | 国旗 PNG + 国名 | ▶ ---------------- */
#screen-auth .au-nation {
  display: flex; align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: rgba(6, 10, 20, 0.8);
  border: 1px solid var(--fc-stroke);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
#screen-auth .au-nav {
  flex: none;
  width: 88px; padding: 14px 0;
  background: var(--fc-panel2);
  border: 1px solid var(--fc-stroke);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-family: var(--fc-d); font-style: italic; font-weight: 800;
  font-size: 30px; line-height: 1;
  color: var(--fc-txt-dim);
  transition: .16s;
}
#screen-auth .au-nav:hover {
  color: var(--fc-energy);
  border-color: rgba(21, 227, 113, 0.5);
  box-shadow: 0 0 14px rgba(21, 227, 113, 0.3);
}
#screen-auth .au-nav:active { transform: scale(.96); }
#screen-auth .au-nation-display {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
}
/* 中间「国旗+国名」可点开网格选择弹窗 */
#screen-auth .au-nation-pick { cursor: pointer; border-radius: 8px; transition: .14s; }
#screen-auth .au-nation-pick:hover { background: rgba(21, 227, 113, 0.08); }
#screen-auth .au-nation-pick::after {
  content: "▾"; flex: none; font-size: 22px; color: var(--fc-txt-dim); margin-left: -8px;
}

/* ===== 国籍选择弹窗（网格 + 搜索） ===== */
#screen-auth .au-natpick { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; }
#screen-auth .au-natpick[hidden] { display: none; }
#screen-auth .au-natpick-backdrop { position: absolute; inset: 0; background: rgba(4, 8, 16, 0.74); backdrop-filter: blur(6px); }
#screen-auth .au-natpick-panel {
  position: relative; z-index: 1;
  width: min(880px, 92%); max-height: 84%;
  display: flex; flex-direction: column;
  background: var(--fc-panel2, #0b1322);
  border: 1px solid var(--fc-stroke);
  border-radius: 22px; padding: 26px 26px 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
#screen-auth .au-natpick-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
#screen-auth .au-natpick-title { font-family: var(--fc-d); font-style: italic; font-weight: 800; font-size: 30px; letter-spacing: 1px; color: var(--fc-txt); }
#screen-auth .au-natpick-close {
  width: 52px; height: 52px; border-radius: 12px; font-size: 26px; cursor: pointer;
  color: #ffb3bd; background: rgba(251, 113, 133, 0.14); border: 1px solid rgba(251, 113, 133, 0.35);
}
#screen-auth .au-natpick-close:hover { background: rgba(251, 113, 133, 0.28); }
#screen-auth .au-natpick-search {
  flex: none; width: 100%; box-sizing: border-box; margin-bottom: 16px;
  padding: 16px 20px; font-size: 26px; font-family: inherit;
  color: var(--fc-txt); background: rgba(6, 10, 20, 0.85);
  border: 1px solid var(--fc-stroke); border-radius: 12px; outline: none;
}
#screen-auth .au-natpick-search:focus { border-color: rgba(21, 227, 113, 0.55); box-shadow: 0 0 14px rgba(21, 227, 113, 0.25); }
#screen-auth .au-natpick-grid {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding-right: 6px;
}
#screen-auth .au-natcell {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--fc-stroke); border-radius: 12px;
  transition: .14s;
}
#screen-auth .au-natcell:hover { background: rgba(21, 227, 113, 0.08); border-color: rgba(21, 227, 113, 0.4); }
#screen-auth .au-natcell.sel { background: rgba(21, 227, 113, 0.14); border-color: rgba(21, 227, 113, 0.6); }
#screen-auth .au-natcell.hidden { display: none; }
#screen-auth .au-natcell-flag { flex: none; width: 46px; height: auto; border-radius: 4px; }
#screen-auth .au-natcell-name {
  flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: 'Noto Sans SC', sans-serif; font-weight: 700; font-size: 26px; color: var(--fc-txt);
}
#screen-auth .au-nation-name {
  font-family: var(--fc-d); font-style: italic; font-weight: 700;
  font-size: 38px; letter-spacing: 1px;
  color: var(--fc-txt);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------- 提交 / 切换 / 状态 ---------------- */
#screen-auth .au-submit {
  width: 100%;
  font-size: 38px; letter-spacing: 6px;
  padding: 22px;
  margin-top: 8px;
}
#screen-auth .au-toggle {
  align-self: center;
  background: none; border: none;
  padding: 8px 14px;
  font-family: var(--fc-f); font-weight: 600;
  font-size: 26px; letter-spacing: 1px;
  color: var(--fc-cyan);
  transition: .16s;
}
#screen-auth .au-toggle:hover { color: #7ddcf7; text-shadow: 0 0 12px rgba(43, 199, 240, 0.6); }
#screen-auth .au-status {
  min-height: 36px;
  text-align: center;
  font-size: 26px; letter-spacing: 1px;
  color: var(--fc-gold);
}
#screen-auth .au-demo {
  text-align: center;
  font-size: 22px; line-height: 1.5;
  color: var(--fc-txt-faint);
}

/* ---------------- 动效弱化 ---------------- */
@media (prefers-reduced-motion: reduce) {
  #screen-auth .au-ghost-track { animation: none; }
}

/* =====================================================================
   ★ 横版（body.landscape，1920x1080）：左品牌 | 右登录卡 双栏
   ===================================================================== */
body.landscape #screen-auth .au-app {
  flex-direction: row;
  justify-content: center; align-items: center;
  gap: 120px;
  padding: 70px 90px;
}
body.landscape #screen-auth .au-ghost { top: 34%; }
body.landscape #screen-auth .au-ghost-track { font-size: 190px; letter-spacing: 2px; }
body.landscape #screen-auth .au-brand { align-items: flex-start; text-align: left; }
body.landscape #screen-auth .au-wordmark { font-size: 124px; }
body.landscape #screen-auth .au-tagrule { gap: 14px; }
body.landscape #screen-auth .au-tagrule .bar { height: 6px; width: 70px; }
body.landscape #screen-auth .au-tagrule .bar.r { display: none; } /* 左对齐时只留左杠 */
body.landscape #screen-auth .au-tagrule .txt { font-size: 24px; letter-spacing: 4px; }
body.landscape #screen-auth .au-season { font-size: 20px; padding: 4px 16px; }

body.landscape #screen-auth .au-card {
  width: 680px;
  gap: 20px;
  padding: 40px 46px 32px;
  max-height: 100%;
  overflow-y: auto;
}
body.landscape #screen-auth .au-title { font-size: 42px; margin-bottom: 0; }
body.landscape #screen-auth .au-field { gap: 10px; font-size: 21px; }
body.landscape #screen-auth .au-label { font-size: 21px; letter-spacing: 2px; }
body.landscape #screen-auth .au-card .fc-input { font-size: 22px; padding: 11px 16px; }
body.landscape #screen-auth .au-extra { gap: 20px; }
body.landscape #screen-auth .au-nation { gap: 14px; padding: 10px 14px; }
body.landscape #screen-auth .au-nav { width: 66px; padding: 10px 0; font-size: 24px; }
body.landscape #screen-auth .au-nation-display { gap: 18px; }
body.landscape #screen-auth .au-nation-display .fc-flag { width: 64px; height: 43px; }
body.landscape #screen-auth .au-nation-name { font-size: 30px; }
body.landscape #screen-auth .au-submit { font-size: 30px; letter-spacing: 4px; padding: 16px; margin-top: 6px; }
body.landscape #screen-auth .au-toggle { font-size: 21px; padding: 6px 12px; }
body.landscape #screen-auth .au-status { font-size: 21px; min-height: 28px; }
body.landscape #screen-auth .au-demo { font-size: 18px; }
