/* Sign-in pages for all four products (Eidos, Scenos, Hodos, Pharos): one look.
   Source of truth: brand/auth.css, copied by brand/sync.mjs. Hodos draws the same page in React (components/auth/AuthShell.tsx)
   with the same rules in app/globals.css; keep the two in step. Colours come from the --ls tokens in tokens.css only. */
.auth-page,.auth-page *{box-sizing:border-box}
html,body{margin:0}
body.auth-body{margin:0;font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:16px;line-height:1.5;color:var(--ls-ink);background:#fff}
.auth-page{font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--font-display:"Plus Jakarta Sans",system-ui,sans-serif;--font-sans:"Plus Jakarta Sans",system-ui,sans-serif}
/* zero specificity, so the margins set by the rules below still win */
:where(.auth-page) :is(h1,h2,p){margin:0}
.auth-form button{font-family:inherit;cursor:pointer}
.auth-form button:disabled{opacity:.6;cursor:default}
.auth-text-link{background:none;border:0;padding:0;font-family:inherit;cursor:pointer}

.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  background: var(--ls-wash);
}

.auth-intro {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 9vw, 148px);
  overflow: hidden;
  color: var(--ls-ink);
}

.auth-intro::before,
.auth-intro::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.auth-intro::before {
  width: min(52vw, 700px);
  aspect-ratio: 1;
  right: -28%;
  bottom: -38%;
  border: 1px solid rgb(34 80 224 / 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgb(34 80 224 / 0.035), 0 0 0 116px rgb(34 80 224 / 0.025);
}

.auth-intro::after {
  width: 7px;
  height: 7px;
  top: 30%;
  right: 21%;
  border-radius: 50%;
  background: var(--ls-blue-400);
  box-shadow: 126px 42px 0 rgb(34 80 224 / 0.6), -62px 160px 0 rgb(34 80 224 / 0.55);
}

.auth-intro > *,
.auth-panel > * {
  position: relative;
  z-index: 1;
}

.auth-brand,
.auth-panel__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--ls-ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.7px;
  text-decoration: none;
}

.auth-brand {
  position: absolute;
  top: 36px;
  left: clamp(32px, 5vw, 70px);
}

.auth-brand span,
.auth-panel__brand span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: var(--ls-blue-600);
  color: white;
  font-family: var(--font-display);
  font-size: 16px;
}

.auth-eyebrow,
.auth-kicker {
  margin: 0 0 17px;
  color: var(--ls-blue-600);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}

.auth-intro h1 {
  max-width: 610px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 1.02;
}

.auth-intro__copy {
  max-width: 550px;
  margin: 25px 0 0;
  color: var(--ls-ink-2);
  font-size: 18px;
  line-height: 1.58;
}

.auth-intro__note {
  max-width: 360px;
  margin: 62px 0 0;
  color: var(--ls-ink-3);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.auth-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(32px, 7vw, 112px);
  border-left: 1px solid var(--ls-line);
  background: #fff;
}

.auth-panel__top {
  position: absolute;
  top: 34px;
  right: clamp(32px, 5vw, 70px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-panel__top > p {
  margin: 0;
  color: var(--ls-ink-2);
  font-size: 12px;
}

.auth-panel__brand { display: none; }

.auth-card { width: min(100%, 410px); }

.auth-card__heading h2 {
  margin: 0;
  color: var(--ls-ink);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.08;
}

.auth-card__heading > p:last-child {
  margin: 10px 0 28px;
  color: var(--ls-ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.auth-form { display: grid; gap: 17px; }

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--ls-blue-800);
  font-size: 12px;
  font-weight: 750;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  margin: 0;
  border: 1px solid var(--ls-line);
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ls-ink);
}

.auth-form input:focus {
  border-color: var(--ls-blue-600);
  box-shadow: 0 0 0 3px var(--ls-blue-50);
  outline: none;
}

.auth-form button {
  min-height: 48px;
  margin-top: 7px;
  border: 1px solid var(--ls-blue-400);
  border-radius: 7px;
  background: var(--ls-blue-400);
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.auth-form button:hover:not(:disabled) { background: var(--ls-blue-400); border-color: var(--ls-blue-400); }

.auth-text-link,
.auth-footer a {
  color: var(--ls-blue-600);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.auth-text-link { display: inline-block; margin-top: 21px; }
.auth-text-link:hover,
.auth-footer a:hover { color: var(--ls-blue-700); text-decoration: underline; }

.auth-footer {
  width: min(100%, 410px);
  margin-top: 28px;
  padding-top: 21px;
  border-top: 1px solid var(--ls-line);
  color: var(--ls-ink-2);
  font-size: 13px;
}

.auth-error {
  margin: 0 0 20px;
  padding: 12px 13px;
  border: 1px solid #f2b8b8;
  border-radius: 7px;
  background: var(--ls-danger-bg);
  color: var(--ls-danger);
  font-size: 13px;
  line-height: 1.45;
}

.auth-confirmation {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--ls-green-200);
  border-radius: 10px;
  background: var(--ls-green-50);
}

.auth-confirmation > span {
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--ls-green-100);
  color: var(--ls-green-600);
  font-weight: 800;
}

.auth-confirmation h2 {
  margin: 0 0 5px;
  color: var(--ls-green-700);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-confirmation p { margin: 0; color: var(--ls-green-600); font-size: 13px; line-height: 1.5; }


/* The values Hodos actually draws (its theme layer overrides some of the rules above); every product uses these. */
.auth-intro h1,
.auth-card__heading h2 { color: var(--ls-ink); font-size: 40px; font-weight: 700; line-height: 44px; letter-spacing: -0.8px; }
.auth-intro h1 { max-width: 610px; }
.auth-intro__copy { max-width: 550px; margin-top: 25px; color: var(--ls-ink-2); font-size: 18px; line-height: 1.58; }
.auth-intro__note { max-width: 360px; margin-top: 62px; color: var(--ls-ink-3); font-size: 12px; font-weight: 650; line-height: 1.55; }
.auth-card__heading > p:last-child { margin: 10px 0 28px; color: var(--ls-ink-2); font-size: 14px; line-height: 1.55; }
.auth-form label { gap: 7px; color: var(--ls-blue-800); font-size: 12px; font-weight: 750; line-height: 24px; }
.auth-form input { min-height: 46px; padding: 11px 12px; border: 1px solid var(--ls-line); border-radius: 10px; background: #fff; color: var(--ls-ink); font-size: 16px; }
.auth-form input:focus { border-color: var(--ls-blue-600); box-shadow: 0 0 0 3px rgb(34 80 224 / 0.18); outline: 0; }
.auth-form button { min-height: 48px; margin-top: 7px; padding: 8px 16px; border: 1px solid var(--ls-blue-600); border-radius: 10px; background: var(--ls-blue-600); color: #fff; font-size: 14px; font-weight: 800; line-height: 24px; }
.auth-form button:hover:not(:disabled) { border-color: var(--ls-blue-600); background: var(--ls-blue-600); opacity: 0.92; }
.brand-logo.auth-panel__brand { display: none; }

@media (max-width: 860px) {
  .auth-page { display: block; background: #fff; }
  .auth-intro { min-height: 235px; padding: 86px 28px 38px; }
  .auth-brand { top: 25px; left: 28px; }
  .auth-intro h1 { font-size: clamp(36px, 9vw, 52px); letter-spacing: -2px; }
  .auth-intro__copy { margin-top: 13px; font-size: 15px; }
  .auth-intro__note { display: none; }
  .auth-panel { min-height: auto; padding: 42px 28px 50px; border-left: 0; }
  .auth-panel__top { display: none; }
  .auth-card, .auth-footer { width: min(100%, 500px); margin-right: auto; margin-left: auto; }
}

/* Brand logo: symbol + wordmark + product label */
.brand-logo,.brand-logo:visited{display:inline-flex;align-items:center;gap:.6em;width:fit-content;color:var(--ls-blue-600);font-family:var(--font-sans);font-size:1.15rem;font-weight:800;letter-spacing:-.02em;line-height:1;text-decoration:none;white-space:nowrap}
.brand-logo__symbol{display:block;flex:none;width:auto;height:1.75em}
.brand-logo__name{font-weight:inherit;color:var(--ls-blue-600)}
.brand-logo__product{font-size:.85em;font-weight:400;letter-spacing:0;color:var(--ls-ink-2);padding-left:.7em;border-left:1px solid var(--ls-line)}
.brand-logo--symbol .brand-logo__symbol{height:1.75rem}
.brand-logo:focus-visible{outline:2px solid var(--ls-blue-600);outline-offset:3px;border-radius:4px}
@media (max-width:480px){.brand-logo__product{display:none}}

/* "Continue with Google" button and the divider under it */
.auth-google{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin:0 0 4px;border:1px solid var(--ls-line);border-radius:10px;background:#fff;color:var(--ls-ink);font-size:14px;font-weight:700;text-decoration:none}
.auth-google:hover{border-color:var(--ls-blue-600)}
.auth-or{margin:12px 0 18px!important;color:var(--ls-ink-3);font-size:12px;text-align:center}

