/* aftertaste HK — 登入頁（由零設計，2026-09）。樣式限定喺 .at-lg 入面。 */
.at-lg{
  --plum:#57233D; --plum-700:#461B31; --plum-soft:#EFE3E8; --apricot:#D9884A;
  --bg:#F9F4EF; --surface:#FFFFFF; --surface-2:#FBF7F3; --line:#E7DDD3; --line-soft:#F1E9E1;
  --body:#2B2422; --muted:#6E605A; --faint:#A0928A;
  --success:#1F6B4A; --success-soft:#E3F0E8; --danger:#B3261E; --danger-soft:#FBE9E7;
  --font:'Noto Sans HK',-apple-system,'PingFang HK','Microsoft JhengHei',sans-serif;
  max-width:520px; margin:0 auto; padding:28px 20px 80px;
  color:var(--body); font-family:var(--font); font-size:15px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
.at-lg *,.at-lg *::before,.at-lg *::after{ box-sizing:border-box; }
.at-lg h1,.at-lg p{ margin:0; font-family:inherit; letter-spacing:normal; }
:where(.at-lg) :where(button,input){ font:inherit; color:inherit; }
:where(.at-lg) button{ cursor:pointer; }
.at-lg [hidden]{ display:none!important; }
.at-lg a{ color:var(--plum); }
.at-lg :focus-visible{ outline:2px solid var(--apricot); outline-offset:2px; }

.lg-card{ background:var(--surface); border:1px solid var(--line); border-radius:22px; padding:30px 28px; }
.lg-logo{ display:flex; justify-content:center; margin-bottom:22px; }
.lg-logo img{ display:block; width:auto; height:40px; }
.lg-card{ text-align:center; }
.lg-card form,.lg-field{ text-align:left; }
.lg-card h1{ font-size:26px; font-weight:600; color:var(--plum); }
.lg-sub{ font-size:14px; color:var(--muted); margin-top:6px!important; line-height:1.75; }

.lg-field{ display:flex; flex-direction:column; gap:6px; margin-top:18px; }
.lg-field label{ display:flex; align-items:baseline; gap:10px; font-size:13px; color:var(--muted); font-weight:500; }
.lg-input{ height:50px; border:1px solid var(--line); border-radius:13px; background:#fff; padding:0 14px; font-size:16px; width:100%; }
.lg-input:focus{ outline:none; border-color:var(--plum); box-shadow:0 0 0 3px rgba(87,35,61,.12); }
.lg-pw{ position:relative; }
.lg-eye{ position:absolute; right:6px; top:50%; transform:translateY(-50%); height:38px; padding:0 12px; border:0; border-radius:10px;
  background:var(--surface-2); color:var(--plum); font-size:13.5px; font-weight:600; }
.lg-eye:hover{ background:var(--plum-soft); }
.lg-link{ margin-left:auto; border:0; background:none; padding:0; color:var(--plum); font-size:13px; font-weight:600;
  text-decoration:underline; text-underline-offset:3px; }

.lg-btn{ display:flex; align-items:center; justify-content:center; gap:9px; width:100%; height:52px; margin-top:20px;
  border:1px solid var(--line); border-radius:14px; background:#fff; font-size:16px; font-weight:600; }
.lg-btn.primary{ background:var(--plum); border-color:var(--plum); color:#fff; }
.lg-btn.primary:hover{ background:var(--plum-700); }
.lg-btn.google:hover{ border-color:#D5C6B9; background:var(--surface-2); }
.lg-btn[disabled]{ opacity:.6; cursor:progress; }

.lg-msg{ margin-top:14px; font-size:13.5px; border-radius:11px; padding:10px 12px; line-height:1.7; }
.lg-msg.err{ color:var(--danger); background:var(--danger-soft); }
.lg-msg.ok{ color:var(--success); background:var(--success-soft); }

.lg-or{ position:relative; text-align:center; margin:22px 0 2px; }
.lg-or::before{ content:''; position:absolute; left:0; right:0; top:50%; height:1px; background:var(--line-soft); }
.lg-or span{ position:relative; background:var(--surface); padding:0 12px; font-size:13px; color:var(--faint); }

.lg-foot{ margin-top:20px!important; text-align:center; font-size:14.5px; color:var(--muted); }
.lg-foot a{ font-weight:600; }
.lg-back{ display:block; margin:18px auto 0; border:0; background:none; color:var(--muted); font-size:14px; }
.lg-back:hover{ color:var(--plum); }
.lg-note{ margin-top:18px!important; text-align:center; font-size:12.5px; color:var(--faint); line-height:1.8; }

.lg-loading{ padding:40px 10px; text-align:center; color:var(--muted); }
.lg-spin{ width:26px; height:26px; border-radius:50%; border:3px solid var(--plum-soft); border-top-color:var(--plum);
  animation:lgSpin .8s linear infinite; margin:0 auto 10px; }
@keyframes lgSpin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce){ .lg-spin{ animation-duration:2s; } }

@media (max-width:480px){
  .at-lg{ padding:18px 16px 60px; }
  .lg-card{ padding:24px 18px; border-radius:18px; }
  .lg-logo{ display:flex; justify-content:center; margin-bottom:22px; }
.lg-logo img{ display:block; width:auto; height:40px; }
.lg-card{ text-align:center; }
.lg-card form,.lg-field{ text-align:left; }
.lg-card h1{ font-size:23px; }
}

/* ── 登記頁額外元素 ── */
.lg-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.lg-row .lg-field{ margin-top:18px; }
.lg-hint{ font-size:12.5px; color:var(--faint); }
.lg-ref{ margin-top:12px!important; display:inline-block; background:var(--plum-soft); color:var(--plum); border-radius:999px; padding:5px 14px; font-size:13px; font-weight:600; }
.lg-check{ display:flex; gap:10px; align-items:flex-start; margin-top:18px; text-align:left; font-size:13.5px; color:var(--muted); line-height:1.7; }
.lg-check input{ width:20px; height:20px; margin:2px 0 0; flex:0 0 20px; accent-color:var(--plum); }
.lg-msg.err a{ font-weight:600; color:var(--danger); }
@media (max-width:420px){ .lg-row{ grid-template-columns:1fr; gap:0; } }
