/* 登入頁與安裝精靈 */
body.auth { background: var(--bg); }
.auth-wrap { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art {
  position: relative; overflow: hidden; color: #fff; padding: 36px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  background: radial-gradient(700px 360px at 90% 0%, rgba(255, 213, 74, .28), transparent 60%), linear-gradient(150deg, #111a45 0%, #253a9f 55%, #3d5be0 100%);
}
.brand.on-dark { color: #fff; }
.brand.on-dark .brand-sub { color: rgba(255, 255, 255, .7); }
.brand.on-dark .brand-mark { background: rgba(255, 255, 255, .16); box-shadow: none; }
.art-keys { --k: clamp(44px, 4.6vw, 60px); position: relative; align-self: center; padding: 26px 40px 26px 26px; transform: rotate(-6deg); }
.art-row { display: flex; gap: 10px; margin-bottom: 10px; margin-left: calc(var(--i, 0) * (var(--k) + 10px) / 2); }
.art-row span {
  min-width: var(--k); height: var(--k); padding: 0 6px; border-radius: 14px; display: grid; place-items: center; font: 900 1.2rem var(--mono);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-bottom-width: 5px; color: rgba(255, 255, 255, .85);
}
.art-row span.wide { font-size: .95rem; }
.art-row span.on { background: #ffd54a; color: #3b2800; border-color: #e0a100; box-shadow: 0 8px 22px -8px rgba(255, 213, 74, .7); animation: key-tap var(--cycle, 2.4s) infinite; }
@keyframes key-tap { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(4px); border-bottom-width: 1px; } }
.art-star { position: absolute; color: #ffd54a; animation: float 4s ease-in-out infinite; }
.art-star .i { width: 34px; height: 34px; }
.art-star.s1 { top: -6px; right: 10px; } .art-star.s2 { bottom: 0; left: -10px; animation-delay: 1.2s; } .art-star.s2 .i { width: 24px; height: 24px; }
.art-star.s3 { top: 40%; right: -6px; animation-delay: .6s; color: #fff; }
@keyframes float { 50% { transform: translateY(-10px) rotate(8deg); } }
.art-copy { max-width: 470px; }
.art-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: .78rem; font-weight: 900; letter-spacing: .12em;
  color: #ffd54a; background: rgba(255, 213, 74, .12); border: 1px solid rgba(255, 213, 74, .3);
}
.art-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; line-height: 1.25; letter-spacing: .02em; margin-top: 14px; }
.art-sub { margin: 10px 0 0; font-size: 1rem; line-height: 1.75; color: rgba(255, 255, 255, .78); }
.art-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.art-points li {
  display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; font-weight: 700; font-size: .95rem; line-height: 1.5;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
}
.pt-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(255, 213, 74, .16); color: #ffd54a; }
.pt-ic .i { width: 18px; height: 18px; }
.auth-card { margin: auto; width: min(460px, calc(100% - 32px)); border-radius: var(--r-xl); box-shadow: var(--shadow); border: 0; }
.auth-card-in { padding: clamp(24px, 4vw, 40px); }
.auth-card h1 { font-size: 1.75rem; font-weight: 900; margin-top: 14px; }
.auth-card .back { margin-left: -8px; }
.google-box { margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--brand-50); display: grid; gap: 10px; justify-items: center; }
.gsi-slot { min-height: 44px; width: 100%; display: flex; justify-content: center; }
.g-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 4px; }
.g-tabs button {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2, var(--ink));
  font: 700 .82rem var(--mono); cursor: pointer; overflow-wrap: anywhere;
}
.g-tabs button:hover { border-color: var(--brand-400); }
.g-tabs button.on { background: var(--brand-600, #3d5be0); border-color: transparent; color: #fff; cursor: default; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .82rem; font-weight: 800; margin: 18px 0 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 48px; }
.pw-wrap .btn { position: absolute; right: 5px; top: 5px; }
#loginMsg { margin-top: 16px; }

/* 安裝精靈 */
.install { max-width: 860px; margin: 0 auto; padding: 32px 18px 60px; }
.install h1 { font-size: 1.6rem; font-weight: 900; }
.install .card { margin-top: 16px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.checks div { display: flex; gap: 8px; align-items: center; font-size: .88rem; font-weight: 700; padding: 8px 10px; border-radius: 10px; background: #f7f8fc; }
.checks .ok { color: var(--mint-ink); } .checks .no { color: var(--coral-ink); background: var(--coral-50); }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.log li { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.log .i { color: var(--mint); }

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { padding: 20px 18px 26px; gap: 14px; }
  .art-keys, .art-points, .art-eyebrow { display: none; }
  .art-copy h2 { font-size: 1.2rem; margin-top: 4px; }
  .art-sub { font-size: .88rem; margin-top: 4px; }
  .auth-card { margin: -16px auto 30px; position: relative; }
}
