/* ============================================================
   AOW 登录（官网用户中心 / 商家后台 / 员工后台 三处共用）
   全部挂在 .aow-lg 下面，不会和各个页面自己的样式打架
   ============================================================ */
.aow-lg {
  --lg-coral: #F4784B; --lg-coral-deep: #D9522A; --lg-ink: #1F1813; --lg-ink2: #574B42; --lg-ink3: #8C7E72;
  --lg-line: #E9DFD3; --lg-line2: #D9CCBC; --lg-paper: #F5EFE7; --lg-ok: #2E7D5B; --lg-bad: #C0492F;
  text-align: left; color: var(--lg-ink);
}
.aow-lg *, .aow-lg *::before, .aow-lg *::after { box-sizing: border-box; }
/* v90（Rita AN #9）：`.aow-lg .field { display: block }` 比 [hidden] 更具体，把 hidden 盖掉了 →
   注册页一打开验证码那一格就在。组件里凡是写了 hidden 的一律不显示（商家后台以前是碰巧没露出来） */
.aow-lg [hidden] { display: none !important; }
.aow-lg .lg-tabs { display: flex; margin-bottom: 20px; padding: 4px; border-radius: 999px; background: var(--lg-paper); }
.aow-lg .lg-tabs button { flex: 1; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--lg-ink2); font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; }
.aow-lg .lg-tabs button.on { background: #fff; color: var(--lg-ink); box-shadow: 0 2px 8px rgba(31, 24, 19, .1); }
.aow-lg .field { display: block; margin: 0 0 12px; }
.aow-lg .field > span { display: block; margin: 0 0 6px 4px; font-size: 12.5px; font-weight: 600; color: var(--lg-ink3); }
.aow-lg .input {
  display: block; width: 100%; height: 50px; margin: 0; padding: 0 16px; border-radius: 14px; border: 1px solid var(--lg-line2);
  background: #fff; color: var(--lg-ink); font: inherit; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.aow-lg select.input {
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--lg-ink3) 50%), linear-gradient(135deg, var(--lg-ink3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-size: 5px 5px; background-repeat: no-repeat;
}
.aow-lg .input:focus { border-color: var(--lg-coral); box-shadow: 0 0 0 4px rgba(244, 120, 75, .15); }
.aow-lg .input.code { text-align: center; font-size: 22px; letter-spacing: .4em; font-weight: 700; }
.aow-lg .row2 { display: flex; gap: 10px; }
.aow-lg .row2 .field:first-child { flex: 0 0 132px; }
.aow-lg .row2 .field:last-child { flex: 1; min-width: 0; }
/* v106 帮手 E（第 13 条）：英文（韩文、日文）的地区名比中文长，132px 里「Australia +61」被截成「Australia +6」→ 宽一点；
   手机上放不下两格就地区、号码各占一行 */
html:not([lang^="zh"]) .aow-lg .row2 .field:first-child { flex-basis: 176px; }
@media (max-width: 480px) {
  html:not([lang^="zh"]) .aow-lg .row2 { flex-wrap: wrap; }
  html:not([lang^="zh"]) .aow-lg .row2 .field { flex: 1 1 100%; }
}
.aow-lg .lg-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin: 0; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; font: 600 15.5px/1 inherit; font-family: inherit;
  transition: background .2s, border-color .2s, opacity .2s;
}
.aow-lg .lg-btn.pri { background: var(--lg-coral); color: #fff; box-shadow: 0 12px 26px -12px rgba(217, 82, 42, .65); }
.aow-lg .lg-btn.pri:hover { background: var(--lg-coral-deep); }
.aow-lg .lg-btn.out { background: #fff; color: var(--lg-ink); border-color: var(--lg-line2); }
.aow-lg .lg-btn.out:hover, .aow-lg .lg-btn.google:hover { border-color: var(--lg-ink); }
.aow-lg .lg-btn.google { background: #fff; color: var(--lg-ink); border-color: var(--lg-line2); }
.aow-lg .lg-btn svg { width: 20px; height: 20px; flex: none; }
.aow-lg .lg-btn[disabled] { opacity: .55; cursor: default; }
.aow-lg .lg-msg { min-height: 22px; margin: 4px 2px 10px; font-size: 13.5px; line-height: 1.6; color: var(--lg-bad); }
.aow-lg .lg-msg.ok { color: var(--lg-ok); }
.aow-lg .lg-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; color: var(--lg-ink3); }
.aow-lg .lg-or::before, .aow-lg .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--lg-line); }
.aow-lg .lg-hint { margin: 18px 2px 0; font-size: 12.5px; line-height: 1.75; color: var(--lg-ink3); }
.aow-lg .lg-hint b { color: var(--lg-ink2); }

/* v84：注册、找回密码、切换链接、同意条款 */
.aow-lg .field > span em { font-style: normal; font-weight: 500; color: var(--lg-ink3); margin-left: 4px; opacity: .85; }
.aow-lg .lg-link { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 13.5px; color: var(--lg-coral-deep); cursor: pointer; }
.aow-lg .lg-link:hover { text-decoration: underline; }
.aow-lg .lg-link.strong { font-weight: 700; font-size: 14.5px; }
.aow-lg .lg-link[disabled] { color: var(--lg-ink3); cursor: default; text-decoration: none; }
.aow-lg .lg-right { text-align: right; margin: -6px 0 2px; }
.aow-lg .lg-center { text-align: center; margin-top: 10px; }
.aow-lg .lg-foot { text-align: center; margin: 18px 0 0; }
.aow-lg .lg-h { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--lg-ink); }
.aow-lg .lg-check { display: flex; gap: 8px; align-items: flex-start; margin: 4px 2px 12px; font-size: 13px; line-height: 1.6; color: var(--lg-ink2); cursor: pointer; }
.aow-lg .lg-check input { width: 17px; height: 17px; margin: 2px 0 0; flex: none; accent-color: var(--lg-coral); }
.aow-lg .lg-check a { color: var(--lg-coral-deep); }
.aow-lg .lg-in { animation: lgIn .22s ease both; }
@keyframes lgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.aow-lg .lg-btn:not([disabled]):active, .aow-lg .lg-tabs button:active { transform: scale(.97); }
.aow-lg .lg-btn, .aow-lg .lg-tabs button { transition: background .2s, border-color .2s, opacity .2s, transform .1s; }
@media (prefers-reduced-motion: reduce) { .aow-lg .lg-in { animation: none; } .aow-lg .lg-btn:active, .aow-lg .lg-tabs button:active { transform: none; } }
.aow-lg input.input[readonly] { background: var(--lg-paper); color: var(--lg-ink2); }

/* v90：邮箱注册第二步：「验证码已经发到 …」一条、下面「重新发送（60 秒）· 换个邮箱」并排 */
.aow-lg .lg-sent { margin: 0 2px 14px; padding: 12px 14px; border-radius: 14px; background: #EAF5EF; color: var(--lg-ok);
  font-size: 13.5px; line-height: 1.65; overflow-wrap: anywhere; }
.aow-lg .lg-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }

/* 商家后台 / 员工后台的登录页（整页夜空 + 中间一张「好滴」卡片，和官网的三个登录口同一个样子） */
.aow-lg-page {
  position: fixed; inset: 0; z-index: 30; overflow-y: auto; display: flex; align-items: flex-start; justify-content: center;
  padding: 7vh 16px 48px; background: linear-gradient(166deg, #0A1B2D 0%, #11284A 55%, #17324F 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
}
.aow-lg-page[hidden] { display: none; }
.aow-lg-back { position: absolute; left: 20px; top: 18px; color: #A9BDCD; font-size: 13.5px; text-decoration: none; }
.aow-lg-back:hover { color: #fff; }
/* v106 帮手 E（Rita 10/24 第 13 条）：两个后台没登录的那几屏右上角切 English / 中文（和左上角「返回 AOW 官网」同一行） */
.aow-lg-lang { position: absolute; right: 16px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  border: 1px solid rgba(169, 189, 205, .45); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #DCE6EF;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif; cursor: pointer; }
.aow-lg-lang svg { width: 15px; height: 15px; flex: 0 0 auto; }
.aow-lg-lang:hover { color: #fff; border-color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .12); }
.aow-lg-lang:focus-visible { outline: 2px solid #F4784B; outline-offset: 2px; }
.aow-lg-card {
  position: relative; width: 100%; max-width: 440px; padding: 38px 30px 28px; border-radius: 28px; background: #fff;
  border: 1.2px solid rgba(244, 120, 75, .2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55); text-align: center;
}
.aow-lg-card .lg-logo { display: block; width: 56px; height: 56px; margin: 0 auto 14px; filter: drop-shadow(0 10px 22px rgba(244, 120, 75, .4)); }
.aow-lg-card h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: .01em; color: #1F1813; }
.aow-lg-card .lg-sub { margin: 0 0 22px; font-size: 13.5px; line-height: 1.7; color: #8C7E72; }
.aow-lg-paw { position: absolute; width: 18px; height: 18px; opacity: .35; }
.aow-lg-paw.p1 { left: 16px; top: 16px; transform: rotate(-28deg); }
.aow-lg-paw.p2 { right: 18px; bottom: 16px; transform: rotate(22deg); width: 21px; height: 21px; }

/* v98（READY 3.199 ①）：「用 Google 账号登录」上面的勾选（第一次用 Google 登录会建一个新账号）*/
.aow-lg .lg-gwrap { margin: 0 0 12px; }
.aow-lg .lg-gwrap .lg-check { margin-bottom: 4px; }
.aow-lg .lg-ghint { margin: 0 2px 0 27px; font-size: 12px; line-height: 1.6; color: var(--lg-ink3); }
.aow-lg [data-gmsg] { min-height: 0; margin: 8px 2px 0; }
.aow-lg [data-gmsg]:empty { display: none; }

/* v98：「好滴」样子的卡片（新账号先同意两份协议、30 天没用再输一次验证码）：屏幕正中间、背景压暗、要点按钮才关 */
.aow-lg-dlg { width: min(440px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); padding: 0; margin: auto; border: 0;
  background: transparent; overflow: visible; color: #1F1813; }
.aow-lg-dlg::backdrop { background: rgba(9, 24, 42, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.aow-lg-dlg[open] { animation: lgIn .22s ease both; }
.aow-lg.aow-lg-dcard { position: relative; max-height: calc(100svh - 32px); overflow-y: auto; padding: 34px 24px 22px; border-radius: 28px; background: #fff;
  border: 1.2px solid rgba(244, 120, 75, .2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55); text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif; }
.aow-lg-dcard .lg-dh { margin: 0 0 10px; font-size: 21px; font-weight: 800; line-height: 1.35; color: var(--lg-ink); }
.aow-lg-dcard .lg-dp { margin: 0 0 16px; font-size: 14.5px; line-height: 1.75; color: var(--lg-ink2); text-align: left; }
.aow-lg-dcard .lg-dlinks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.aow-lg-dcard .lg-dlinks a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--lg-paper); color: var(--lg-ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.aow-lg-dcard .lg-dlinks a:hover { color: var(--lg-coral-deep); }
.aow-lg-dcard .lg-dacts { display: grid; gap: 10px; }
.aow-lg-dcard .lg-dacts .lg-btn { height: auto; min-height: 50px; padding: 12px 18px; line-height: 1.35; overflow-wrap: anywhere; }
.aow-lg-dcard .lg-dfoot { margin-top: 12px; }
.aow-lg-dcard .lg-msg:empty { min-height: 0; margin: 0; }
.aow-lg-dcard form { margin: 0; text-align: left; }
.aow-lg-dcard .lg-pair { margin: 10px 0 0; }
/* 验证码发不出去、又没有别的方式：「这次先进去」那一块 */
.aow-lg-dcard .lg-dskip { margin: 4px 0 0; padding: 14px 14px 12px; border-radius: 16px; background: #FFF6EC; }
.aow-lg-dcard .lg-dskip .lg-dp { margin: 0 0 12px; color: #7A4410; }
@media (prefers-reduced-motion: reduce) { .aow-lg-dlg[open] { animation: none; } }
