/* Login-scoped semantic tokens; static pages do not load the React stylesheet. */
:root {
  --background: #f7f9f8;
  --surface: #ffffff;
  --foreground: #202a28;
  --muted-foreground: #73807b;
  --border: #dce4df;
  --primary: #15785e;
  --primary-foreground: #ffffff;
  --primary-soft: #e7f3ed;
  --pii-highlight: #f9ead5;
  --pii-foreground: #82551e;
  --mask: #263b34;
  --error: #b52a34;
  --document-shadow: 0 16px 40px -24px #243c3452;
  --google-background: #ffffff;
  --google-border: #747775;
  --google-foreground: #1f1f1f;
}
body { background: var(--background); color: var(--foreground); }
.cl-login02-demo { display: block; min-height: 100svh; padding: 28px 32px 20px; background-image: none; }
.cl-login02 { max-width: 1080px; margin: auto; color: var(--foreground); }
.cl-login02__card { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.cl-login02__brand { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 20px; }
.cl-login02__logo { width: 46px; height: 46px; margin: 0; }
.cl-login02__brand .cl-login02__title { font-size: 24px; font-weight: 600; letter-spacing: 0; }
.intro-title { margin: 0 0 10px; font-size: 32px; font-weight: 500; line-height: 1.25; letter-spacing: 0; }
.intro-copy { margin: 0; color: var(--muted-foreground); font-size: 15px; }
.workflow { display: grid; grid-template-columns: minmax(0,1fr) 170px minmax(0,1fr); align-items: center; gap: 28px; margin: 35px auto 27px; max-width: 900px; text-align: left; position: relative; }
.document-column { min-width: 0; }
.document-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.document-label span:last-child { font-size: 11px; color: var(--pii-foreground); }
.output-column .document-label span:last-child { color: var(--primary); }
.document { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 25px 24px; box-shadow: var(--document-shadow); min-height: 300px; overflow: hidden; }
.doc-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.doc-heading strong { font-size: 13px; font-weight: 600; }
.doc-heading svg { width: 18px; height: 18px; color: var(--muted-foreground); }
.doc-ref { font-size: 10px; color: var(--muted-foreground); margin: 0 0 18px; }
.doc-field { margin: 0 0 14px; }
.doc-field dt { font-size: 10px; color: var(--muted-foreground); margin-bottom: 5px; }
.doc-field dd { margin: 0; font-size: 13px; font-weight: 500; line-height: 22px; }
.pii-value { display: inline-block; padding: 0 5px; border-radius: 2px; background: var(--pii-highlight); color: var(--pii-foreground); }
.doc-footer { display: flex; gap: 7px; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; color: var(--muted-foreground); font-size: 10px; }
.doc-footer svg { width: 12px; height: 12px; }
.scan { position: absolute; height: 2px; left: 0; right: 0; top: 55px; background: var(--primary); opacity: 0; animation: scan 8s ease-in-out infinite; }
.processor { position: relative; display: grid; justify-items: center; text-align: center; }
.processor::before, .processor::after { content: ''; position: absolute; top: 49px; height: 1px; width: 36px; background: var(--border); }
.processor::before { left: -32px; }
.processor::after { right: -32px; }
.engine-mark { width: 96px; height: 96px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; position: relative; }
.engine-mark img { width: 76px; height: 76px; object-fit: contain; }
.engine-status { position: absolute; bottom: -5px; right: -5px; width: 18px; height: 18px; border: 4px solid var(--background); border-radius: 50%; background: var(--primary); animation: engine 8s ease infinite; }
.processor strong { margin-top: 17px; font-size: 13px; font-weight: 600; }
.processor small { margin-top: 4px; font-size: 11px; color: var(--muted-foreground); }
.masked-value { position: relative; display: inline-block; padding: 0 5px; }
.mask-bar { position: absolute; inset: 2px 0; border-radius: 2px; background: var(--mask); transform-origin: left; animation: mask 8s ease infinite; }
.mask-two { animation-delay: .35s; }
.mask-three { animation-delay: .7s; }
.output-column .doc-footer { color: var(--primary); }
.animation-control { display: grid; place-items: center; width: 28px; height: 28px; margin: 15px auto 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--muted-foreground); cursor: pointer; }
.animation-control svg { width: 12px; height: 12px; }
.animation-control .play-icon { display: none; }
.workflow.is-paused * { animation-play-state: paused; }
.workflow.is-paused .pause-icon { display: none; }
.workflow.is-paused .play-icon { display: block; }
.sign-in-area { border-top: 1px solid var(--border); padding-top: 23px; max-width: 340px; margin: auto; }
.sign-in-area h2 { font-size: 16px; font-weight: 500; margin: 0 0 14px; }
.cl-login02__google { background: var(--google-background); border: 1px solid var(--google-border); color: var(--google-foreground); border-radius: 6px; min-height: 46px; gap: 10px; padding: 0 12px; box-shadow: none; }
.cl-login02__google:hover { background: var(--background); border-color: var(--foreground); box-shadow: none; }
.cl-login02__google:focus-visible, .animation-control:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.cl-login02__notice { margin: 0 0 12px; color: var(--error); }
.email-form { display: grid; gap: 10px; margin: 0 0 10px; }
.email-form input { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 6px; background: var(--background); color: var(--foreground); font: inherit; font-size: 14px; padding: 11px 12px; }
.email-form input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.email-submit { width: 100%; border: 0; border-radius: 6px; background: var(--primary); color: var(--primary-foreground); font: inherit; font-size: 14px; font-weight: 500; min-height: 46px; cursor: pointer; }
.email-submit:hover { filter: brightness(1.05); }
.email-submit:disabled { opacity: 0.6; cursor: wait; }
.email-submit:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.email-switch { margin: 0 0 14px; text-align: center; }
.email-switch button { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.divider { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--muted-foreground); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.cl-login02__setup { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow-wrap: anywhere; }
.login-foot { margin: 15px 0 0; color: var(--muted-foreground); font-size: 11px; }
.page-foot { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; max-width: 1080px; margin: 27px auto 0; font-size: 10px; color: var(--muted-foreground); }
@keyframes scan { 0%, 12% { top: 55px; opacity: 0; } 18% { opacity: .7; } 48% { top: 265px; opacity: .7; } 55%, 100% { top: 265px; opacity: 0; } }
@keyframes mask { 0%, 25% { transform: scaleX(0); } 42%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes engine { 0%, 15%, 60%, 100% { opacity: 1; } 25%, 45% { opacity: .3; } 35%, 55% { opacity: 1; } }
@media (max-width: 760px) {
  .cl-login02-demo { padding: 22px 18px; }
  .intro-title { font-size: 26px; }
  .intro-copy { font-size: 13px; max-width: 300px; margin: auto; }
  .workflow { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; margin-top: 22px; }
  .processor { grid-column: 1 / -1; grid-row: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
  .engine-mark { width: 38px; height: 38px; border-radius: 6px; }
  .engine-mark img { width: 30px; height: 30px; }
  .engine-status { width: 12px; height: 12px; border-width: 3px; }
  .processor strong { margin: 0; align-self: center; }
  .processor small, .processor::before, .processor::after { display: none; }
  .animation-control { margin: 0 0 0 2px; align-self: center; }
  .document { padding: 16px 12px; min-height: 287px; }
  .document-label { font-size: 11px; flex-wrap: wrap; gap: 5px; }
  .document-label span:last-child { font-size: 10px; }
  .doc-heading strong { font-size: 11px; }
  .doc-field dd { font-size: 11px; }
  .doc-ref, .doc-footer { font-size: 9px; }
  .doc-heading svg { display: none; }
  .page-foot { margin-top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .scan, .engine-status, .mask-bar { animation: none; }
  .mask-bar { transform: scaleX(1); }
  .animation-control { display: none; }
}