/* Sign-in dial and decorative fragments: token colours, scoped motion. */

body.md3-auth .auth-shell--dial{ --dial-accent:var(--md-p); --dial-font:clamp(25px,2.8vw,36px); --dial-row:clamp(44px,4.1vw,68px); }
/* --md-p on --md-pc is ~1.3 : 1 in both high-contrast sets; the container's own on-colour is the measured pair */
html[data-contrast="high"] body.md3-auth .auth-shell--dial{ --dial-accent:var(--md-opc); }
body.md3-auth .auth-shell--dial [hidden]{ display:none; }

body.md3-auth .auth-shell--dial .auth-aside{ padding:42px clamp(28px,4vw,66px) 34px; isolation:isolate; }
body.md3-auth .auth-shell--dial .auth-aside .entire-logo__block{ fill:var(--dial-accent); }
body.md3-auth .auth-shell--dial .dial-identity,
body.md3-auth .auth-shell--dial .dial-main,
body.md3-auth .auth-shell--dial .dial-footer{ position:relative; z-index:1; }
body.md3-auth .auth-shell--dial .dial-toggle{ display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; padding:0; color:var(--md-opc); background:transparent; border:1px solid color-mix(in srgb,var(--md-opc) 25%,transparent); border-radius:50%; cursor:pointer; opacity:.75; }
body.md3-auth .auth-shell--dial .dial-toggle[hidden]{ display:none; }
body.md3-auth .auth-shell--dial .dial-toggle:hover{ opacity:1; background:color-mix(in srgb,var(--md-opc) 8%,transparent); }
body.md3-auth .auth-shell--dial .dial-toggle:focus-visible{ opacity:1; outline:3px solid currentColor; outline-offset:2px; }
body.md3-auth .auth-shell--dial .dial-main{ display:flex; flex-direction:column; justify-content:center; flex:1; padding:34px 0 42px; min-width:0; }
body.md3-auth .auth-shell--dial .dial-eyebrow{ margin:0 0 25px; font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--dial-accent); }

body.md3-auth .auth-shell--dial .dial-heading{ display:flex; align-items:center; gap:clamp(7px,.7vw,12px); margin:0; min-width:0; white-space:nowrap; font-size:var(--dial-font); font-weight:700; line-height:1.18; }
body.md3-auth .auth-shell--dial .dial-sr{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
body.md3-auth .auth-shell--dial .dial-still{ flex:none; letter-spacing:-.035em; color:var(--md-opc); }
body.md3-auth .auth-shell--dial .dial{ flex:1 1 0; min-width:0; }
/* a one-row window: the neighbours are seen only while they roll through */
body.md3-auth .auth-shell--dial .dial-viewport{ display:block; height:var(--dial-row); overflow:hidden; }
body.md3-auth .auth-shell--dial .dial-track{ display:block; transform:translate3d(0,calc(-1 * var(--dial-index,1) * var(--dial-row)),0); transition:transform 700ms cubic-bezier(.24,.78,.2,1); }
body.md3-auth .auth-shell--dial .dial-track.no-transition,
body.md3-auth .auth-shell--dial .dial-track.no-transition .dial-item{ transition:none; }
body.md3-auth .auth-shell--dial .dial-item{ display:flex; align-items:center; height:var(--dial-row); letter-spacing:-.04em; color:var(--dial-accent); transform-origin:left center; transition:opacity 600ms ease,transform 700ms ease; }
body.md3-auth .auth-shell--dial .dial-track.is-live .dial-item{ opacity:.14; transform:scale(.94); }
body.md3-auth .auth-shell--dial .dial-track.is-live .dial-item.is-near{ opacity:.25; transform:scale(.97); }
body.md3-auth .auth-shell--dial .dial-track.is-live .dial-item.is-current{ opacity:1; transform:none; }

body.md3-auth .auth-shell--dial .dial-caption{ max-width:355px; margin:3px 0 0; font-size:15px; line-height:1.65; color:var(--md-opc); }
body.md3-auth .auth-shell--dial .dial-readout{ display:flex; align-items:center; gap:12px; margin:28px 0 0; font-size:11px; font-weight:700; letter-spacing:.12em; color:var(--dial-accent); }
body.md3-auth .auth-shell--dial .dial-rule{ display:block; width:44px; height:1px; background:currentColor; opacity:.45; }

body.md3-auth .auth-shell--dial .dial-footer{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; font-size:12px; }

body.md3-auth .auth-shell--dial .dial-rings{ position:absolute; right:-82px; bottom:7%; z-index:0; width:340px; height:340px; border:1px solid color-mix(in srgb,var(--md-opc) 10%,transparent); border-radius:50%; pointer-events:none; }
body.md3-auth .auth-shell--dial .dial-rings::after{ content:""; position:absolute; inset:50px; border:inherit; border-radius:50%; }

@media (max-width:1120px){
  body.md3-auth .auth-shell--dial{ --dial-font:clamp(25px,2.7vw,31px); --dial-row:48px; }
  body.md3-auth .auth-shell--dial .auth-aside{ padding-inline:32px; }
}
@media (prefers-reduced-motion: reduce){
  body.md3-auth .auth-shell--dial .dial-track,
  body.md3-auth .auth-shell--dial .dial-item{ transition:none; }
  body.md3-auth .auth-shell--dial .dial-toggle{ display:none; }
}
@media (forced-colors: active){
  body.md3-auth .auth-shell--dial,
  html[data-contrast="high"] body.md3-auth .auth-shell--dial{ --dial-accent:CanvasText; }
  body.md3-auth .auth-shell--dial .dial-track.is-live .dial-item,
  body.md3-auth .auth-shell--dial .dial-track.is-live .dial-item.is-near{ opacity:1; }
  body.md3-auth .auth-shell--dial .dial-rings{ display:none; }
}
@media print{
  body.md3-auth .auth-shell--dial .auth-aside{ display:none; }
}

/* Two logo fragments float gently; the same pause button stops all decorative motion. */
body.md3-auth .auth-shell--dial .dial-rings{display:none;}
body.md3-auth .auth-shell--dial .auth-aside::before,body.md3-auth .auth-shell--dial .auth-aside::after{animation:auth-fragment-drift 14s ease-in-out infinite alternate;}
body.md3-auth .auth-shell--dial .auth-aside::after{animation-delay:-7s;}
body.md3-auth .auth-shell--dial:has(.dial-toggle[aria-pressed="true"]) .auth-aside::before,body.md3-auth .auth-shell--dial:has(.dial-toggle[aria-pressed="true"]) .auth-aside::after{animation-play-state:paused;}
body.md3-auth .auth-shell--dial .dial-toggle{min-width:44px;min-height:44px;}

body.md3-auth .auth-shell--dial:has(.dial-toggle[hidden]) .auth-aside::before,body.md3-auth .auth-shell--dial:has(.dial-toggle[hidden]) .auth-aside::after{animation-play-state:paused;}
