/* FACTOLOGIST / reader access
   One design language with the Horizons homepage. All rules are auth-scoped.
   Short/zoomed screens are allowed to scroll: form controls must not be clipped. */
body.auth-focus {
  /* The legacy Classic CSS has green --accent / --success defaults.
     Force the public Horizons brand palette for /login and /register under
     either active theme (including legacy Classic installations). */
  --public-bg:#f7fbff;
  --public-surface:#fff;
  --public-ink:#111b59;
  --public-muted:#7081a6;
  --public-line:#e0ecfa;
  --public-accent:#075dff;
  --public-accent-dark:#0648c8;
  --public-warm:#ff376c;
  --accent:#075dff;
  --accent-dark:#0648c8;
  --success:#075dff;
  --auth-ink:var(--public-ink,#111b59);
  --auth-text:#17255d;
  --auth-muted:var(--public-muted,#7081a6);
  --auth-line:var(--public-line,#e0ecfa);
  --auth-accent:var(--public-accent,#075dff);
  --auth-accent-hover:var(--public-accent-dark,#0648c8);
  --auth-surface:var(--public-surface,#fff);
  --auth-soft:var(--public-bg,#f7fbff);
  --auth-warm:var(--public-warm,#ff376c);
  color:var(--auth-ink);
  background:var(--auth-soft);
  accent-color:var(--auth-accent);
}
.auth-focus .hz-header,
.auth-focus .hz-footer,
.auth-focus .public-header,
.auth-focus .public-footer,
.auth-focus .topic-navigation,
.auth-focus .advertisement,
.auth-focus .ad-slot {display:none!important}
.auth-focus .public-main,
.auth-focus.horizons .public-main {
  width:100%;
  max-width:none;
  min-height:100svh;
  margin:0;
  padding:0;
}
.auth-focus .public-main>.alert {
  position:relative;
  z-index:3;
  max-width:560px;
  margin:10px auto;
}
.auth-focus .auth-experience {
  display:grid;
  grid-template-columns:minmax(0,.87fr) minmax(490px,1.13fr);
  min-height:100svh;
  color:var(--auth-ink);
  font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
.auth-focus .auth-experience * {box-sizing:border-box}
.auth-focus .auth-editorial {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:36px;
  min-width:0;
  padding:clamp(30px,3.45vw,62px);
  background:linear-gradient(148deg,#edf5ff,#f7fbff 60%,#f0f6ff);
  border-right:1px solid var(--auth-line);
}
.auth-focus .auth-editorial-top {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.auth-focus .auth-editorial-brand,
.auth-focus .auth-mobile-brand a {
  display:inline-flex;
  align-items:center;
  color:inherit;
  text-decoration:none;
}
.auth-focus .auth-editorial-wordmark {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
}
.auth-focus .auth-editorial-wordmark strong {
  color:var(--auth-ink);
  font-size:30px;
  line-height:1;
  font-weight:790;
  letter-spacing:-.07em;
}
.auth-focus .auth-editorial-wordmark small {
  font-size:11px;
  font-weight:500;
  letter-spacing:.012em;
  color:#657b9f;
}
.auth-focus .auth-edition-label {
  flex:none;
  padding-top:4px;
  color:#8194b6;
  font-size:10px;
  font-weight:730;
  letter-spacing:.13em;
}
.auth-focus .auth-editorial-story {
  max-width:640px;
  padding:14px 0 10px;
}
.auth-focus .auth-story-index {
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 20px;
  color:#637aa6;
  font-size:11px;
  line-height:1.4;
  font-weight:730;
  letter-spacing:.105em;
}
.auth-focus .auth-index-mark {
  display:block;
  flex:none;
  width:22px;
  height:3px;
  border-radius:2px;
  background:var(--auth-accent);
}
.auth-focus .auth-editorial-story h2 {
  max-width:590px;
  margin:0;
  color:var(--auth-ink);
  font:760 clamp(42px,4.35vw,74px)/1.09 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  letter-spacing:-.068em;
  text-wrap:balance;
}
.auth-focus .auth-editorial-story h2 span {color:var(--auth-accent)}
.auth-focus .auth-story-deck {
  max-width:420px;
  margin:22px 0 0;
  color:#526a96;
  font-size:clamp(13px,1.05vw,16px);
  line-height:1.7;
}
.auth-focus .auth-editorial-rubrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  border-top:1px solid #dbe8fa;
  border-bottom:1px solid #dbe8fa;
}
.auth-focus .auth-editorial-rubrics span {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  min-width:0;
  padding:12px 0;
  color:#7d90b3;
  font-size:10px;
  font-weight:700;
  line-height:1.15;
}
.auth-focus .auth-editorial-rubrics b {
  color:#203761;
  font-size:12px;
  font-weight:680;
}
.auth-focus .auth-editorial-bottom {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 18px;
  margin-top:18px;
  color:#8495b4;
  font-size:11px;
}
.auth-focus .auth-workspace {
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  padding:clamp(22px,3vw,48px);
  background:var(--auth-surface);
}
.auth-focus .auth-workspace-inner {
  width:min(100%,525px);
  min-width:0;
  margin:auto;
}
.auth-focus .auth-mobile-brand {display:none}
.auth-focus .auth-workspace-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 21px;
  color:#8294b3;
  font-size:10px;
  font-weight:760;
  letter-spacing:.095em;
}
.auth-focus .auth-workspace-heading a {
  color:#526f9c;
  font-size:12px;
  font-weight:630;
  letter-spacing:0;
  white-space:nowrap;
  text-decoration:none;
}
.auth-focus .auth-workspace-heading a:hover {color:var(--auth-accent)}
.auth-focus .auth-tabs {
  display:flex;
  gap:30px;
  margin:0 0 22px;
  border-bottom:1px solid var(--auth-line);
}
.auth-focus .auth-tabs a {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:40px;
  position:relative;
  padding:0 0 12px;
  color:#8194b4;
  text-decoration:none;
  font-size:13px;
  font-weight:650;
}
.auth-focus .auth-tabs a[aria-current="page"] {
  color:var(--auth-accent);
  font-weight:780;
}
.auth-focus .auth-tabs a[aria-current="page"]:after {
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:2px;
  background:var(--auth-accent);
  border-radius:2px;
}
.auth-focus .auth-tabs a:hover {color:var(--auth-accent)}
/* Higher specificity than app.css .account-surface to prevent giant margins. */
.auth-focus .auth-panel.account-surface {
  display:block;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
}
.auth-focus .auth-panel h1 {
  margin:0 0 5px;
  color:var(--auth-ink);
  font:770 clamp(30px,2.75vw,40px)/1.17 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  letter-spacing:-.055em;
}
.auth-focus .auth-lead {
  max-width:480px;
  margin:0 0 19px;
  color:var(--auth-muted);
  font-size:13px;
  line-height:1.56;
}
.auth-focus .auth-social-heading {
  margin:0 0 8px;
  color:#7286a8;
  font-size:12px;
  font-weight:650;
}
.auth-focus .social-buttons {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(100px,1fr));
  gap:9px;
  margin:0;
}
/* No button-secondary class: brand glyphs stay visible on a clean white tile. */
.auth-focus .social-button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-width:0;
  min-height:44px;
  padding:8px 11px;
  border:1px solid #dbe7f9;
  border-radius:9px;
  background:#fff;
  box-shadow:none;
  color:#203761;
  font-size:12px;
  font-weight:670;
  text-decoration:none;
  transition:background .15s,border-color .15s;
}
.auth-focus .social-button:hover {
  background:#f4f8ff;
  border-color:#b7d0fa;
  color:var(--auth-ink);
  box-shadow:none;
  transform:none;
}
.auth-focus .auth-provider-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  color:#203761;
  font-weight:800;
  font-size:13px;
}
.auth-focus .auth-provider-icon {
  width:30px;
  height:30px;
  border-radius:8px;
  background:#f1f5ff;
}
.auth-focus .auth-provider-icon svg {display:block;width:21px;height:21px;fill:currentColor}
.auth-focus .auth-provider-icon--yandex {color:#e32828;background:#fff0f0}
.auth-focus .auth-provider-icon--vk {color:#0077ff;background:#edf4ff}
.auth-focus .auth-provider-icon--ok {color:#ed7600;background:#fff4e8}
.auth-focus .auth-divider {
  display:flex;
  align-items:center;
  gap:12px;
  margin:12px 0 14px;
  color:#9aa9c0;
  font-size:11px;
  text-align:center;
}
.auth-focus .auth-divider:before,
.auth-focus .auth-divider:after {
  content:"";
  height:1px;
  flex:1;
  background:var(--auth-line);
}
.auth-focus .form-stack {
  display:flex;
  flex-direction:column;
  gap:13px;
  min-width:0;
}
.auth-focus .auth-panel label:not(.bot-field):not(.check-row) {
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
  margin:0;
  color:#22385f;
  font-size:12px;
  font-weight:680;
}
.auth-focus .auth-panel label small {
  color:#7b8eac;
  font-size:10.5px;
  font-weight:450;
  line-height:1.35;
}
.auth-focus .auth-panel label>span>small {
  display:inline;
  margin-left:3px;
  font-size:10px;
  font-weight:500;
}
.auth-focus .auth-panel input[type="email"],
.auth-focus .auth-panel input[type="text"],
.auth-focus .auth-panel input[type="password"] {
  display:block;
  width:100%;
  height:46px;
  min-height:0;
  min-width:0;
  padding:0 13px;
  border:1px solid #d9e5f7;
  border-radius:9px;
  background:#fff;
  color:#17255d;
  font:500 13px/1.3 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  box-shadow:none;
  transition:border-color .16s,box-shadow .16s;
}
.auth-focus .auth-panel input::placeholder {
  color:#93a4bc;
  opacity:1;
}
.auth-focus .auth-panel input[type="email"]:focus,
.auth-focus .auth-panel input[type="text"]:focus,
.auth-focus .auth-panel input[type="password"]:focus {
  border-color:var(--auth-accent);
  outline:0;
  box-shadow:0 0 0 3px #075dff19;
}
/* Safari can tint saved credentials: retain the brand's white input surface. */
.auth-focus .auth-panel input:-webkit-autofill {
  -webkit-text-fill-color:#17255d;
  -webkit-box-shadow:0 0 0 1000px #fff inset;
  box-shadow:0 0 0 1000px #fff inset;
  transition:background-color 9999s ease-out;
}
.auth-focus .auth-panel input:-webkit-autofill:focus {
  -webkit-box-shadow:0 0 0 1000px #fff inset,0 0 0 3px #075dff19;
}
.auth-focus .auth-password {display:block;position:relative;min-width:0}
.auth-focus .auth-password input {padding-right:86px!important}
.auth-focus .auth-password button {
  position:absolute;
  top:50%;
  right:6px;
  transform:translateY(-50%);
  min-height:29px;
  padding:6px 9px;
  border:0;
  border-radius:6px;
  background:#edf4ff;
  color:#476eae;
  font-size:11px;
  font-weight:650;
  line-height:1.25;
  cursor:pointer;
}
.auth-focus .auth-password button:hover {
  background:#e0edff;
  color:var(--auth-accent-hover);
}
.auth-focus .auth-field-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px 16px;
  flex-wrap:wrap;
}
/* Checkbox on a readable surface; text wraps instead of overflowing the viewport. */
.auth-focus .auth-experience[data-auth-mode="register"] .auth-panel .check-row {
  display:grid!important;
  grid-template-columns:18px minmax(0,1fr);
  align-items:start;
  gap:10px;
  padding:11px 12px;
  border:1px solid #d7e4f8;
  border-radius:9px;
  background:#f7fbff;
  color:#334d79;
}
.auth-focus .auth-panel .check-row>span {
  display:block;
  min-width:0;
  overflow-wrap:anywhere;
  color:#334d79;
}
.auth-focus .auth-panel .check-row {
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:0;
  color:#60769d;
  font-size:11.5px;
  font-weight:490;
  line-height:1.55;
}
.auth-focus .auth-panel .check-row input[type="checkbox"] {
  width:16px!important;
  height:16px;
  min-height:0;
  margin:1px 0 0;
  padding:0;
  flex:none;
  accent-color:var(--auth-accent);
}
.auth-focus .auth-field-row a,
.auth-focus .auth-panel .check-row a,
.auth-focus .auth-links a,
.auth-focus .auth-bottom-note a {
  color:var(--auth-accent);
  text-decoration:none;
  font-weight:660;
}
.auth-focus .auth-field-row a:hover,
.auth-focus .auth-panel .check-row a:hover,
.auth-focus .auth-links a:hover,
.auth-focus .auth-bottom-note a:hover {
  color:var(--auth-accent-hover);
  text-decoration:underline;
  text-underline-offset:3px;
}
/* AUTH_CRITICAL_BUTTON_V2: keep both states legible regardless of inherited button themes. */
.auth-focus .auth-workspace .auth-panel button.auth-submit[type="submit"] {
  -webkit-appearance:none;
  appearance:none;
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:50px;
  padding:0 18px;
  border:1px solid #075dff!important;
  border-radius:10px;
  background:#075dff!important;
  background-color:#075dff!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  font:750 15px/1.3 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  box-shadow:0 5px 14px rgba(7,93,255,.15);
  cursor:pointer;
}
.auth-focus .auth-workspace .auth-panel button.auth-submit[type="submit"]:hover:not(:disabled) {
  background:#0648c8!important;
  background-color:#0648c8!important;
  border-color:#0648c8!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.auth-focus .auth-workspace .auth-panel button.auth-submit[type="submit"]:disabled {
  background:#325c96!important;
  background-color:#325c96!important;
  border-color:#325c96!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  cursor:not-allowed;
  box-shadow:none;
}
.auth-focus .auth-workspace .auth-panel button.auth-submit[type="submit"] span {
  color:inherit!important;
  -webkit-text-fill-color:inherit!important;
}
.auth-focus .auth-panel .auth-submit {
  display:flex;
  width:100%;
  min-height:48px;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:1px;
  padding:0 17px;
  border:1px solid var(--auth-accent);
  border-radius:9px;
  background:var(--auth-accent);
  box-shadow:none;
  color:#fff;
  font-size:13px;
  font-weight:740;
  letter-spacing:.01em;
  cursor:pointer;
  transition:background .16s,border-color .16s;
}
.auth-focus .auth-panel .auth-submit:hover {
  background:var(--auth-accent-hover);
  border-color:var(--auth-accent-hover);
  color:#fff;
  filter:none;
  transform:none;
}
.auth-focus .auth-panel .auth-submit span {
  font-size:20px;
  line-height:1;
  font-weight:450;
}
.auth-focus .auth-links {
  display:block;
  margin:11px 0 0;
  font-size:11.5px;
}
.auth-focus .auth-bottom-note {
  margin:15px 0 0;
  color:#657b9d;
  font-size:12.5px;
  line-height:1.4;
}
.auth-focus .auth-password-hint {
  display:block;
  color:#7e91af;
  font-size:10.5px;
}
.auth-focus .auth-password-hint--ready{color:var(--auth-accent);font-weight:680}
.auth-focus .auth-panel .alert {
  margin:0 0 14px;
  padding:11px 13px;
  border-radius:9px;
  font-size:12px;
  line-height:1.45;
}
.auth-focus .alert-success,
.auth-focus .auth-panel .alert-success {
  color:var(--auth-accent-hover);
  background:#edf5ff;
  border-color:#c7dcff;
}
.auth-focus .bot-field {
  position:absolute!important;
  left:-10000px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}
.auth-focus .auth-form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:12px 14px;
}
.auth-focus .auth-form-grid>label {min-width:0}
.auth-focus .auth-form-grid>.auth-field--wide {grid-column:1/-1}
.auth-focus .auth-experience[data-auth-mode="register"] .auth-workspace {
  padding-top:clamp(16px,2.8vh,30px);
  padding-bottom:clamp(16px,2.8vh,30px);
}
.auth-focus .auth-experience[data-auth-mode="register"] .auth-workspace-heading {margin-bottom:13px}
.auth-focus .auth-experience[data-auth-mode="register"] .auth-tabs {margin-bottom:15px}
.auth-focus .auth-experience[data-auth-mode="register"] .auth-lead {margin-bottom:13px}
.auth-focus .auth-experience[data-auth-mode="register"] .form-stack {gap:11px}
.auth-focus .auth-experience[data-auth-mode="register"] .auth-panel input[type="email"],
.auth-focus .auth-experience[data-auth-mode="register"] .auth-panel input[type="text"],
.auth-focus .auth-experience[data-auth-mode="register"] .auth-panel input[type="password"] {height:44px}
.auth-focus .auth-experience[data-auth-mode="register"] .auth-panel .check-row {line-height:1.4}
.auth-focus .auth-experience[data-auth-mode="register"] .auth-bottom-note {margin-top:12px}
/* Shield's optional challenge retains its own layout and is never cut off. */
.auth-focus .nexip-shield-widget {
  --shield-surface:#f3f8ff;
  --shield-border:#dbe7fa;
  --shield-text:#17255d;
  --shield-muted:#60779f;
  --shield-accent:#075dff;
  --shield-hover:#0648c8;
  margin:0;
}
.auth-focus .auth-experience a:focus-visible,
.auth-focus .auth-experience button:focus-visible,
.auth-focus .auth-experience input:focus-visible {
  outline:3px solid #ffb454;
  outline-offset:3px;
}
/* Compact laptops; keep all legal/validation content accessible at any zoom. */
@media (min-width:871px) and (max-height:760px) {
  .auth-focus .auth-editorial {gap:20px;padding-top:25px;padding-bottom:25px}
  .auth-focus .auth-editorial-story h2 {font-size:clamp(39px,4vw,58px)}
  .auth-focus .auth-story-deck {margin-top:12px}
  .auth-focus .auth-workspace {padding-top:18px;padding-bottom:18px}
  .auth-focus .auth-workspace-heading {margin-bottom:12px}
  .auth-focus .auth-tabs {margin-bottom:13px}
  .auth-focus .auth-panel h1 {font-size:31px}
  .auth-focus .auth-lead {margin-bottom:12px}
  .auth-focus .auth-experience[data-auth-mode="register"] .auth-workspace {padding-top:13px;padding-bottom:13px}
  .auth-focus .auth-experience[data-auth-mode="register"] .form-stack {gap:9px}
  .auth-focus .auth-experience[data-auth-mode="register"] .auth-form-grid {gap:9px 12px}
  .auth-focus .auth-experience[data-auth-mode="register"] .auth-bottom-note {margin-top:9px}
}
@media(max-width:1120px) {
  .auth-focus .auth-experience {grid-template-columns:minmax(0,.84fr) minmax(470px,1.16fr)}
  .auth-focus .auth-editorial {padding:clamp(27px,3vw,42px)}
  .auth-focus .auth-editorial-story h2 {font-size:clamp(40px,4.2vw,56px)}
  .auth-focus .auth-edition-label {display:none}
  .auth-focus .auth-workspace {padding-left:clamp(20px,3vw,36px);padding-right:clamp(20px,3vw,36px)}
}
@media(max-width:870px) {
  .auth-focus .auth-experience {grid-template-columns:minmax(0,1fr)}
  .auth-focus .auth-editorial {display:none}
  .auth-focus .auth-workspace {min-height:100svh;padding:24px}
  .auth-focus .auth-workspace-inner {width:min(100%,540px)}
  .auth-focus .auth-mobile-brand {display:block;margin-bottom:24px}
  .auth-focus .auth-mobile-brand a {
    font-size:27px;
    line-height:1;
    font-weight:790;
    letter-spacing:-.06em;
    color:var(--auth-ink);
  }
  .auth-focus .auth-workspace-heading {margin-bottom:16px}
  .auth-focus .auth-experience[data-auth-mode="register"] .auth-workspace {padding:20px 24px}
}
/* app.css has an older mobile !important on .auth-panel.account-surface. */
@media(max-width:760px) {
  .auth-focus .auth-panel.account-surface {
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
}
@media(max-width:600px) {
  .auth-focus .auth-workspace {padding:22px 19px 28px}
  .auth-focus .auth-mobile-brand {margin-bottom:18px}
  .auth-focus .auth-workspace-heading {margin-bottom:14px}
  .auth-focus .auth-tabs {margin-bottom:15px}
  .auth-focus .auth-panel h1 {font-size:32px}
  .auth-focus .auth-lead {margin-bottom:14px}
  .auth-focus .auth-social-heading {margin-bottom:6px}
  .auth-focus .social-buttons {gap:7px}
  .auth-focus .auth-divider {margin:10px 0}
  .auth-focus .auth-experience[data-auth-mode="register"] .auth-workspace {padding:16px 19px 25px}
}
@media (max-width:480px) {
  .auth-focus .auth-form-grid{grid-template-columns:1fr;gap:10px}
  .auth-focus .auth-form-grid>.auth-field--wide{grid-column:auto}
  .auth-focus .auth-workspace {padding:19px 17px 28px}
  .auth-focus .auth-experience[data-auth-mode="register"] .auth-workspace {padding:15px 17px 26px}
  .auth-focus .auth-mobile-brand {margin-bottom:16px}
  .auth-focus .auth-tabs {margin-bottom:14px}
  .auth-focus .auth-panel h1 {font-size:30px}
  .auth-focus .auth-lead {font-size:12.5px}
  .auth-focus .auth-experience[data-auth-mode="register"] .form-stack {gap:10px}
  .auth-focus .social-button {gap:5px;padding:8px}
}
@media(prefers-reduced-motion:reduce) {
  .auth-focus .auth-experience * {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
