/* Login composition uses the shared website tokens, controls and form fields. */
.auth-page { min-height:100dvh; display:flex; flex-direction:column; background:var(--card); }
.auth-header,.auth-footer { width:100%; display:flex; align-items:center; justify-content:space-between; gap:var(--space-5); padding:var(--space-6) var(--space-11); }
.auth-header .brand img { width:159px; height:48px; }
.auth-header .text-link { color:var(--sub); }
.auth-layout { flex:1; display:grid; grid-template-columns:1fr 1fr; width:min(1180px,100%); margin:auto; padding:var(--space-5) var(--space-8); gap:var(--space-12); }
.auth-story { border-radius:var(--radius-panel); padding:var(--space-11); background:var(--yellow-soft); display:flex; flex-direction:column; justify-content:center; position:relative; overflow:hidden; }
.auth-eyebrow { color:var(--hint-ink); font-size:var(--font-size-small); font-weight:var(--weight-bold); letter-spacing:.08em; }
.auth-story h2 { margin:var(--space-6) 0 var(--space-5); font-size:var(--font-size-hero-small); line-height:var(--leading-title); }
.auth-story-intro { color:var(--text); margin:0; line-height:var(--leading-read); }
.auth-art { display:flex; align-items:center; justify-content:center; flex-direction:column; padding:var(--space-6) 0; }
.auth-art img { width:200px; height:200px; }
.auth-art-note { font-size:var(--font-size-small); color:var(--hint-ink); }
.auth-example { display:grid; gap:var(--space-3); border:1px solid color-mix(in srgb,var(--hint-ink) 16%,transparent); border-radius:var(--radius-medium); padding:var(--space-6); background:var(--card); transition:box-shadow var(--motion-ui); }
.auth-example:hover { box-shadow:var(--shadow); }
.auth-example-label { display:flex; justify-content:space-between; color:var(--sub); font-size:var(--font-size-caption); }
.auth-example strong { font-size:var(--font-size-card); color:var(--ink); }
.auth-example>span:last-child { font-size:var(--font-size-small); color:var(--sub); }
.auth-content { display:flex; align-items:center; justify-content:center; padding:var(--space-9) var(--space-5); min-width:0; }
.auth-form-wrap { width:100%; max-width:400px; }
.auth-title { margin-bottom:var(--space-8); }
.auth-title .auth-eyebrow { color:var(--sub); letter-spacing:0; }
.auth-title h1 { font-size:var(--font-size-section); margin:var(--space-3) 0 var(--space-4); }
.auth-description { color:var(--sub); margin:0; font-size:var(--font-size-label); }
.auth-page #sso-login { width:100%; justify-content:space-between; }
.auth-page #sso-login svg { width:20px; height:20px; }
.auth-page #sso-status { color:var(--sub); font-size:var(--font-size-small); margin:var(--space-3) 0; }
.auth-page #sso-status:empty { display:none; }
.auth-divider { display:flex; align-items:center; gap:var(--space-5); color:var(--sub); font-size:var(--font-size-caption); margin:var(--space-7) 0; }
.auth-divider::before,.auth-divider::after { content:''; flex:1; height:1px; background:var(--line); }
.auth-page .member-form { gap:var(--space-5); }
.auth-page .member-form input:not([type=checkbox]) { min-height:var(--control-primary); background:var(--canvas); border-color:transparent; }
.auth-page .member-form input:focus { background:var(--card); border-color:var(--ink); }
.auth-page .member-form input::placeholder { color:var(--muted); font-weight:var(--weight-regular); }
.auth-page .member-form label { font-size:var(--font-size-label); }
.auth-password { display:flex; align-items:center; position:relative; }
.auth-password input { padding-right:var(--space-13) !important; }
.auth-password button { position:absolute; right:var(--space-3); border:0; background:transparent; min-width:var(--control-touch); min-height:var(--control-touch); color:var(--sub); font-size:var(--font-size-small); border-radius:var(--radius-small); }
.auth-page #auth-error { margin:0; color:var(--red-ink); font-size:var(--font-size-small); }
.auth-page #auth-error:empty { display:none; }
.auth-page .auth-email-submit { background:var(--ink); color:var(--card); width:100%; margin-top:var(--space-2); }
.auth-page .auth-email-submit:hover { background:var(--text); }
.auth-page .dialog-links { margin-top:var(--space-5); gap:var(--space-4); }
.auth-page .dialog-links .text-link { padding:0; font-size:var(--font-size-small); color:var(--sub); }
.auth-page .check-label,.auth-page .field-hint { font-size:var(--font-size-caption); font-weight:var(--weight-regular); }
.auth-account-note { text-align:center; border-top:1px solid var(--line); color:var(--sub); font-size:var(--font-size-caption); margin:var(--space-8) 0 0; padding-top:var(--space-6); }
.auth-footer { color:var(--sub); font-size:var(--font-size-caption); padding-top:var(--space-7); padding-bottom:var(--space-7); }
.auth-footer nav { display:flex; gap:var(--space-6); }
.auth-footer a { display:flex; align-items:center; min-height:var(--control-touch); }
/* Brief, composited motion. The mascot settles after 4.8 seconds so the form stays calm. */
@media (prefers-reduced-motion:no-preference) {
  .auth-story { animation:auth-arrive 420ms var(--motion-ease) backwards; }
  .auth-art img { transform-origin:50% 85%; animation:auth-sheep-float 2400ms ease-in-out 2; }
  .auth-title,.auth-page #sso-login,.auth-divider,.auth-page .member-form,.auth-page .dialog-links,.auth-account-note { animation:auth-arrive 360ms var(--motion-ease) backwards; }
  .auth-page #sso-login { animation-delay:60ms; }
  .auth-divider { animation-delay:100ms; }
  .auth-page .member-form { animation-delay:140ms; }
  .auth-page .dialog-links { animation-delay:200ms; }
  .auth-account-note { animation-delay:220ms; }
  .auth-page #sso-login>span:last-child { transition:transform var(--motion-ui) var(--motion-ease); }
  .auth-page #sso-login:not(:disabled):is(:hover,:focus-visible)>span:last-child { transform:translate(3px,-3px); }
  .auth-page .member-form input { transition:background var(--motion-ui),border-color var(--motion-ui); }
  .auth-page .btn:not(:disabled):active { transform:translateY(0) scale(.985); }
  .auth-page #auth-error:not(:empty) { animation:auth-arrive var(--motion-enter) var(--motion-ease); }
}
@keyframes auth-arrive { from { opacity:.45; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes auth-sheep-float { 0%,100% { transform:translateY(0) rotate(0); } 50% { transform:translateY(-7px) rotate(-1.5deg); } }
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .auth-page *,.auth-page *::before,.auth-page *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  .auth-page .btn:hover { transform:none; }
}
@media(max-width:900px) { .auth-layout { gap:var(--space-6); }.auth-story { padding:var(--space-8); }.auth-story h2 { font-size:var(--font-size-section); }.auth-header,.auth-footer { padding-left:var(--space-7); padding-right:var(--space-7); } }
@media(max-width:700px) { .auth-layout { display:block; padding:0 var(--space-7); }.auth-story { display:none; }.auth-content { padding:var(--space-8) 0; }.auth-header { padding:var(--space-5) var(--space-7); }.auth-header .brand img { width:132px; height:40px; }.auth-title h1 { font-size:var(--font-size-section); }.auth-footer { flex-wrap:wrap; gap:0; }.auth-footer nav { gap:var(--space-5); }.auth-account-note { margin-top:var(--space-7); }.auth-page .member-notice { bottom:var(--space-7); } }
