/* Sign in with Apple button. Follows Apple's HIG: black with white text on light, white with black text on dark,
   official wording, Apple logo at least as tall as the text, corner radius matched to the page's buttons. */
.apple-signin{max-width:520px;margin:0 0 1.4rem}
.apple-btn{
  display:flex;align-items:center;justify-content:center;gap:.55rem;
  width:100%;min-height:48px;padding:.7rem 1.2rem;box-sizing:border-box;
  background:#000;color:#fff;border:1px solid #000;border-radius:10px;
  font:600 1.06rem/1.2 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;
  letter-spacing:0;text-decoration:none;cursor:pointer;
  transition:background-color .15s,color .15s;
}
.apple-btn svg{width:1.3em;height:1.3em;flex:none;fill:currentColor;margin-top:-.12em}
.apple-btn:hover{background:#1a1a1a;border-color:#1a1a1a}
.apple-btn:focus-visible{outline:2px solid var(--accent,#e4572e);outline-offset:3px}
.apple-btn:active{background:#000;opacity:.88}
.apple-signin .apple-note{margin:.6rem 0 0;font-size:.88rem;color:var(--muted,#666)}
.apple-or{display:flex;align-items:center;gap:.8rem;margin:1.3rem 0 0;color:var(--muted,#666);font-size:.9rem}
.apple-or::before,.apple-or::after{content:"";flex:1;height:1px;background:var(--line,#ececec)}

/* Dark: follow the system unless the page forces light. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .apple-btn{background:#fff;color:#000;border-color:#fff}
  :root:not([data-theme="light"]) .apple-btn:hover{background:#e8e8e8;border-color:#e8e8e8}
  :root:not([data-theme="light"]) .apple-btn:active{background:#fff}
}
html[data-theme="dark"] .apple-btn{background:#fff;color:#000;border-color:#fff}
html[data-theme="dark"] .apple-btn:hover{background:#e8e8e8;border-color:#e8e8e8}
html[data-theme="dark"] .apple-btn:active{background:#fff}
html[data-theme="light"] .apple-btn{background:#000;color:#fff;border-color:#000}
.apple-signin .status{margin:.7rem 0 0;line-height:1.5}
