/* 登入 (login.html), on top of site.css and landing/auth-pages.css. Two columns on desktop: 小鵲 bringing the phone
   that holds the parent's settings, then the form. One column on phones, the scene small on top so the Google button
   stays near the first screen. Only transform and opacity move; reduced motion shows the final state. */
.lg{padding:clamp(20px,4vw,56px) 0 0}
.lg-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:clamp(32px,5vw,72px);min-height:calc(100svh - 72px - 120px)}
.lg-art{position:sticky;top:96px;width:100%;max-width:520px;justify-self:center;margin-top:clamp(0px,3vw,40px)}
.lg-art svg{display:block;width:100%;height:auto;overflow:visible}
.lg-copy{max-width:480px;width:100%}
.lg-copy[aria-busy=true]{min-height:420px}
.lg-copy h1{font-size:clamp(30px,3.2vw,44px)}
.lg-copy h1:focus{outline:none}
.lg-lede{margin-top:12px}
.lg-lede b{color:var(--ink);word-break:break-all}

/* what an account keeps */
.lg-rows{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:14px}
.lg-rows li{display:flex;align-items:center;gap:14px}
.lg-ic{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:8px;background:var(--sky);color:var(--cobalt-deep)}
.lg-ic svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.lg-rows b{display:block;font-weight:700;font-size:17px;line-height:1.45}
.lg-rows span:not(.lg-ic){display:block;font-size:15px;line-height:1.55;color:var(--ink-soft)}
.lg-gnote{margin-top:10px}

.af-forgot{margin-top:8px}
.lg-switch{margin:20px 0 0;padding-top:16px;border-top:1px solid var(--line);font-size:16px;color:var(--ink-soft)}
.lg-switch .link{margin-left:4px}
.lg-later{margin:4px 0 0;font-size:14px;color:var(--ink-soft)}

.lg-acts{display:flex;flex-wrap:wrap;align-items:center;gap:14px 16px;margin:28px 0 0}

/* signed in */
.lg-acct{display:flex;align-items:center;gap:16px;margin:24px 0 0}
.lg-av{flex:none;display:grid;place-items:center;width:56px;height:56px;border-radius:8px;background:var(--sky);color:var(--cobalt-deep)}
.lg-av svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.lg-linked{display:inline-flex;align-items:center;gap:6px;margin:0;padding:2px 12px 2px 8px;border-radius:6px;background:var(--ok-wash);color:var(--ok);font-size:14px;font-weight:700}
.lg-linked svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.lg-name{margin:4px 0 0;font-family:var(--round);font-weight:900;font-size:22px;line-height:1.35;word-break:break-all}
.lg-out{margin-top:10px;font-size:16px;color:var(--ink-soft)}
#vConsent .af-form{margin-top:22px}
#vConsent .af-note{margin-top:4px}

/* ---------- the scene ---------- */
.lg-art :is(.pop,.actor,.act,.lg-stamp){transform-box:fill-box}
.lg-art .pop{opacity:0;transform:translateY(16px) scale(.9);transform-origin:50% 100%;transition:opacity .45s ease,transform .8s var(--out);transition-delay:var(--d,0s)}
.lg-art.in .pop{opacity:1;transform:none}
.lg-art .actor,.lg-art .act{transform-origin:50% 100%}
.lg-stamp{opacity:0;transform:scale(1.6);transform-origin:50% 50%;transition:opacity .12s ease,transform .4s var(--out)}
.lg-art.stamped .lg-stamp{opacity:1;transform:none}

@media (max-width:860px){
  .lg{padding-top:8px}
  .lg-in{grid-template-columns:1fr;gap:4px;min-height:0}
  .lg-art{position:static;max-width:280px;margin-top:0}
  .lg-copy{max-width:520px;margin:0 auto}
  .lg-copy h1{font-size:clamp(28px,7.6vw,40px)}
  .lg-lede{font-size:16px;line-height:1.7;margin-top:8px}
  .lg-acts{flex-direction:column;align-items:stretch}
  .lg-acts .btn{width:100%}
  .lg-out{display:flex;width:fit-content;margin:10px auto 0}
}
@media (max-width:560px){
  .lg-art{max-width:200px;margin-bottom:-6px}
}
@media (prefers-reduced-motion:reduce){
  .lg-art .pop,.lg-art.stamped .lg-stamp{opacity:1;transform:none;transition:none}
  .lg-art .lg-stamp{transition:none}
}
