/* 登录、改密码（login.html / change_password.html）：真实机房照片铺满整页、几张轮换（workbench.js），
   表单是一张浮在照片上的磨砂玻璃卡片：电脑上靠右，手机上靠下。品牌和语言切换在顶上同一行。 */

.au-body { display: block; min-height: 100vh; min-height: 100dvh; margin: 0; padding: 0; background: #04201e; color: var(--ink); }
.wb-auth.au { position: relative; z-index: 1; max-width: none; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- 背景照片：一张一层，淡入淡出、慢慢推近 */
.au-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #04201e; }
.au-shot { position: absolute; inset: 0; background: var(--img) center / cover no-repeat; opacity: 0; transition: opacity 1.8s ease; }
.au-shot.is-on { opacity: 1; animation: au-drift 16s ease-out both; }
.au-bg::after {   /* 上下压暗给品牌和卡片让出对比度，再罩一层品牌青色，四张照片色调统一 */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 16, 15, .72) 0%, rgba(2, 16, 15, .14) 24%, rgba(2, 16, 15, .1) 62%, rgba(2, 16, 15, .64) 100%),
    linear-gradient(105deg, rgba(3, 38, 35, .6) 0%, rgba(3, 38, 35, .16) 46%, rgba(3, 38, 35, .52) 100%);
}
@keyframes au-drift { from { transform: scale(1.07); } to { transform: scale(1); } }

.au-dots { position: fixed; left: clamp(20px, 4vw, 56px); bottom: 32px; display: flex; gap: 8px; }
.au-dots span { width: 24px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .32); transition: width .5s ease, background .5s ease; }
.au-dots span.is-on { width: 40px; background: #fff; }

/* ---------------------------------------------------------------- 顶栏：品牌底牌（登录页客户 logo 在左、运营工作台在右）+ 语言 */
.au-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 28px clamp(20px, 4vw, 56px) 0; }
.au-brands {
  display: flex; align-items: center; gap: 16px; min-width: 0; min-height: 56px; padding: 8px 20px 8px 10px; border-radius: 16px;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 14px 36px -16px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
.au-brands.is-cobrand { padding-left: 18px; }
.au-client { display: block; flex: none; width: auto; height: 32px; }
.au-sep { flex: none; width: 1px; height: 28px; background: #c9d6db; }
.au .au-brand { flex: 0 1 auto; min-width: 0; min-height: 40px; display: flex; align-items: center; gap: 10px; padding: 0; color: var(--ink); }
.au .au-brand img { width: 36px; height: 36px; flex: none; border-radius: 9px; }
html[lang] .au .au-brand .wb-brand-name { min-width: 0; font-size: 1.0625rem; font-weight: 650; line-height: 1.2; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }   /* 盖过 i18n.css 英文品牌字号 */
.au-top .cx-language { flex: none; margin: 0; }
.au-top .cx-language .wb-btn {
  min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: .875rem; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.au-top .cx-language .wb-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .2); color: #fff; }
.au-top .cx-language .wb-btn:focus-visible { outline: 2px solid #acf7d2; outline-offset: 2px; }

/* ---------------------------------------------------------------- 卡片 */
.au-main { flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-end; min-width: 0; padding: 32px clamp(20px, 9vw, 168px) 72px; }
.au-card {
  width: 100%; max-width: 420px; padding: 40px 36px 36px; border-radius: 20px;
  background: rgba(255, 255, 255, .88); border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 32px 80px -24px rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .au-card { background: #fff; } }
.au-card h1 { margin: 0 0 24px; font-size: 1.625rem; font-weight: 650; letter-spacing: .02em; color: var(--ink); }
.au-who { margin: -14px 0 20px; color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.au-form { display: grid; gap: 18px; }
.au-field { display: grid; gap: 8px; min-width: 0; }
.au-field > span, .au-field > label { font-size: .875rem; font-weight: 600; color: #33454e; }
.au .wb-input {
  width: 100%; height: 48px; min-height: 48px; padding: 0 14px; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.au .wb-input::placeholder { color: #98a9b1; }
.au .wb-input:hover { border-color: #b3c5cd; }
.au .wb-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(8, 127, 116, .14); }
.au .wb-password-control .wb-input { padding-right: 70px; }
.au .wb-password-toggle { inset: 2px 2px 2px auto; min-width: 58px; border-radius: 8px; font-size: .8125rem; font-weight: 600; }
.au .wb-notice-err { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: .9rem; line-height: 1.5; }

.au-captcha[hidden] { display: none; }
.au-captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.au-captcha-row .wb-input { font-family: var(--mono); letter-spacing: .24em; text-transform: uppercase; }
.au-captcha-img {
  width: 124px; height: 48px; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #f1f6f7;
}
.au-captcha-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.au-captcha-img:hover { border-color: var(--primary); }
.au-captcha-img:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.au .au-submit {
  height: 48px; min-height: 48px; margin-top: 6px; border: 0; border-radius: 10px; font-size: 1rem; font-weight: 600; letter-spacing: .1em;
  background: linear-gradient(180deg, #0a8d81, #077066); box-shadow: 0 10px 22px -10px rgba(7, 112, 102, .6);
}
html[lang] .au .au-submit { height: 48px; min-height: 48px; }   /* 盖过 i18n.css 英文下按钮的 min-height: 40px */
html[lang="en"] .au .au-submit { letter-spacing: .02em; }
.au .au-submit:hover:not(:disabled) { background: linear-gradient(180deg, #08887c, #05625a); }
.au .au-submit:active:not(:disabled) { transform: translateY(1px); }
.au .au-submit[aria-busy="true"] { cursor: progress; opacity: .88; }
.au .au-submit[aria-busy="true"]::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: au-spin .7s linear infinite;
}
.au-rule { margin: -6px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.au-logout { margin-top: 12px; }
.au-logout .wb-btn { min-height: 44px; }

@keyframes au-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .au-shot { transition: none; }
  .au-shot.is-on { animation: none; }
  .au .au-submit[aria-busy="true"]::after { animation-duration: 2.4s; }
}

/* ---------------------------------------------------------------- 手机 / 窄屏：竖图，卡片靠下 */
@media (max-width: 900px) {
  .au-shot { background-image: var(--img-m); }
  .au-dots { display: none; }
  .au-top { padding: calc(env(safe-area-inset-top) + 12px) 16px 0; }
  .au-brands { gap: 10px; min-height: 48px; padding: 6px 14px 6px 8px; border-radius: 14px; }
  .au-brands.is-cobrand { padding-left: 12px; }
  .au-client { height: 22px; }
  .au-sep { height: 22px; }
  .au .au-brand { gap: 8px; }
  .au .au-brand img { width: 30px; height: 30px; border-radius: 8px; }
  html[lang] .au .au-brand .wb-brand-name { font-size: .9375rem; line-height: 1.2; }
  html[lang="en"] .au .au-brand .wb-brand-name { white-space: normal; }   /* 英文折两行：Operations / workbench；中文一行 */
  /* 语言按钮缩成「EN / 中」，给两个 logo 让地方 */
  .au-top .cx-language .wb-btn { min-width: 44px; padding: 0 12px; font-size: 0; }
  .au-top .cx-language .wb-btn::after { content: "EN"; font-size: .875rem; }
  html[lang="en"] .au-top .cx-language .wb-btn::after { content: "中"; }
  .au-main { align-items: flex-end; justify-content: center; padding: 28px 16px calc(env(safe-area-inset-bottom) + 20px); }
  .au-card { max-width: 480px; padding: 28px 20px 24px; border-radius: 18px; background: rgba(255, 255, 255, .92); }
  .au-card h1 { margin-bottom: 20px; font-size: 1.5rem; }
}
@media (max-width: 374px) {   /* 小屏：客户 logo 和图标都留着，「运营工作台」几个字收起 */
  .au-brands.is-cobrand .wb-brand-name { display: none; }
  .au-card { padding: 24px 16px 20px; }
}
/* 横屏手机：高度不够，卡片回到中间 */
@media (max-width: 900px) and (max-height: 560px) { .au-main { align-items: center; } }
