/* LPと共有する背景色・白いプレパラート・黒／黄緑の操作面。認証フォーム専用。 */
:root { color-scheme: light; --auth-button-text: #ffffff; }
.auth-page { margin: 0; min-height: 100svh; color: #1a1a1a; background: linear-gradient(125deg, #a8e6cf, #dcedc1, #ffd3b6, #ff8b94, #ff2e63) fixed; font-family: "Noto Sans JP", sans-serif; line-height: 1.6; background-size: 250% 250%; animation: auth-background-flow 48s ease-in-out infinite; }
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page a { color: inherit; text-underline-offset: 3px; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(18px, calc((100vw - 1100px) / 2)); background: rgba(255, 255, 255, 0.42); border-bottom: 1px solid rgba(255, 255, 255, 0.62); }
.auth-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 17px; font-weight: 800; white-space: nowrap; }
.auth-brand img { width: 32px; height: 32px; }
.auth-header nav { display: flex; gap: 8px; align-items: center; }
.auth-header nav a { font-size: 13px; font-weight: 600; padding: 7px 13px; text-decoration: none; border: 1px solid transparent; border-radius: 30px; white-space: nowrap; }
.auth-header nav a[aria-current] { border-color: rgba(26, 26, 26, 0.28); }
.auth-header nav .auth-nav-signup { background: rgba(0, 0, 0, 0.72); color: #d4ff00; }
.auth-main { width: min(100% - 32px, 460px); margin: 28px auto 0; }
.auth-slide { padding: 8px; background: rgba(255, 255, 255, 0.42); border: 1px solid rgba(255, 255, 255, 0.62); border-radius: 10px; box-shadow: 0 12px 32px rgba(34, 32, 31, 0.10); }
.auth-sheet { background: rgba(255, 255, 255, 0.94); border-radius: 6px; padding: 24px 28px; }
.auth-sheet h1 { margin: 0 0 22px; font-size: 24px; font-weight: 800; line-height: 1.3; border-left: 5px solid #d4ff00; padding-left: 12px; }
.auth-page .auth-google { position: relative; margin-top: 52px; display: flex; justify-content: center; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 14px 18px; border: 1px solid transparent; border-radius: 8px; background: rgba(0, 0, 0, 0.84); color: var(--auth-button-text); text-decoration: none; font-size: 17px; font-weight: 700; box-shadow: 0 4px 12px rgba(26, 26, 26, 0.12); }
.auth-google:hover { background: #151515; }
.auth-google-icon { font-family: Arial, sans-serif; font-weight: 700; font-size: 25px; }
.auth-google-arrow { position: absolute; left: calc(50% - 20px); bottom: calc(100% + 8px); width: 40px; height: 38px; background: #d4ef00; clip-path: polygon(30% 0, 70% 0, 70% 46%, 100% 46%, 50% 100%, 0 46%, 30% 46%); pointer-events: none; transform: rotate(22deg); animation: auth-google-nudge 1.8s ease-in-out infinite; }
@keyframes auth-google-nudge { 0%, 100% { transform: translate(2px, -3px) rotate(22deg); } 50% { transform: translate(-2px, 3px) rotate(22deg); } }
@keyframes auth-background-flow { 0%, 100% { background-position: 15% 40%; } 50% { background-position: 85% 60%; } }
@media (prefers-reduced-motion: reduce) { .auth-page, .auth-google-arrow { animation: none; } }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: #717578; font-size: 12px; text-align: center; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: rgba(26, 26, 26, 0.12); }
.auth-field { margin-top: 14px; }
.auth-field label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; }
.auth-field input { appearance: none; width: 100%; min-height: 44px; border: 1px solid #b5b8b8; border-radius: 5px; padding: 8px 11px; background: rgba(255, 255, 255, 0.85); color: #1a1a1a; font: inherit; font-size: 16px; line-height: 1.5; }
.auth-field input:focus { outline: 2px solid #454b4e; outline-offset: 1px; border-color: #454b4e; }
.auth-field input[aria-invalid] { border-color: #a54444; }
.auth-field-help { color: #707578; font-size: 12px; line-height: 1.6; }
.auth-field-help:not(:empty) { margin-top: 5px; }
.auth-field-help ul { padding-left: 18px; margin: 0; }
.auth-field-errors { color: #934343; font-size: 12px; }
.auth-field-errors ul, .auth-error ul { list-style: none; margin: 5px 0 0; padding: 0; }
.auth-error { padding: 10px 12px; background: #f7eaea; border-radius: 5px; color: #813c3c; font-size: 13px; margin-bottom: 14px; }
.auth-submit { display: block; width: 100%; min-height: 44px; margin-top: 22px; padding: 10px 16px; border: 1px solid transparent; border-radius: 6px; background: rgba(0, 0, 0, 0.83); color: #ffffff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.auth-submit--account { color: var(--auth-button-text); }
.auth-submit:hover { background: #1a1a1a; }
.auth-submit:focus-visible, .auth-page a:focus-visible { outline: 2px solid #353a3d; outline-offset: 3px; }
.auth-alternative { margin: 18px 0 0; font-size: 12px; text-align: center; color: #5c6265; }
.auth-alternative a { font-weight: 600; }
.auth-footer { display: flex; justify-content: center; gap: 20px; padding: 18px 0 24px; font-size: 12px; }
@media (max-width: 600px) {
  .auth-header { padding: 10px 12px; gap: 8px; }
  .auth-brand span { display: none; }
  .auth-header nav a { padding: 6px 10px; font-size: 12px; }
  .auth-main { width: calc(100% - 24px); margin-top: 18px; }
  .auth-slide { padding: 6px; }
  .auth-sheet { padding: 20px; }
  .auth-google { min-height: 58px; padding: 12px 16px; font-size: 16px; }
  .auth-sheet h1 { font-size: 22px; margin-bottom: 18px; }
}

.auth-login-help { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(26, 26, 26, 0.12); }
.auth-login-help h2 { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.auth-login-help p { margin: 6px 0 0; font-size: 12px; line-height: 1.8; color: #5c6265; }
.auth-login-help a { font-weight: 600; }
.auth-account-name { font-size: 15px; padding: 9px 12px; margin: 14px 0; background: rgba(26, 26, 26, 0.05); border-radius: 5px; overflow-wrap: anywhere; }
.auth-instruction { font-size: 13px; color: #5c6265; line-height: 1.8; }
.auth-return-link { display: block; margin-top: 16px; text-align: center; font-size: 13px; }

.auth-status-icon { width: 48px; height: 48px; margin: 4px 0 18px; padding: 10px; border: 1px solid rgba(26,26,26,.12); border-radius: 12px; background: rgba(255,255,255,.55); color: #525a59; }
.auth-status-icon svg { display: block; width: 100%; height: 100%; }
.auth-status-message { margin: 0; font-size: 14px; line-height: 1.9; }
.auth-status-help { margin: 18px 0 0; font-size: 12px; line-height: 1.8; color: #707578; }
.auth-page .auth-status-action { color: #fff; text-align: center; text-decoration: none; }

/* Block interaction only while a login form submission is in progress. */
.auth-login-progress:not([hidden]) { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: rgba(255, 255, 255, 0.65); cursor: progress; }
.auth-login-progress > span { padding: 16px 24px; border-radius: 6px; background: rgba(255, 255, 255, 0.97); color: #262a2c; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); font-size: 15px; }
