/* The dark Journal entrance borrows Ausry.com's restrained typography.
   Keep every rule inside the auth gate so workspace themes stay independent. */
#auth-gate {
  --auth-paper: #101211;
  --auth-ink: #e1e3e0;
  --auth-secondary: #a9aca9;
  --auth-line: #2b302d;
  --auth-charcoal: #191c1b;
  background: var(--auth-paper);
  color: var(--auth-ink);
  color-scheme: dark;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#auth-gate *, #auth-gate *::before, #auth-gate *::after { box-sizing: border-box; }
#auth-gate .authGate__backdrop { background: var(--auth-paper); backdrop-filter: none; }
#auth-gate .authGate__panel {
  inset: 0;
  transform: none;
  display: block;
  width: 100%;
  max-height: none;
  border-radius: 0;
  padding: 0 max(32px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom));
  color: var(--auth-ink);
  scrollbar-color: #4b524d var(--auth-paper);
}
#auth-gate .authCardInGate { display: block; width: min(1040px, 100%); min-height: 0; margin: 0 auto; }
#auth-gate .authSiteHeader {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 48px;
  border-bottom: 1px solid var(--auth-line);
}
#auth-gate a { color: inherit; }
#auth-gate .authProductName { font-size: 20px; font-weight: 500; letter-spacing: -.045em; color: var(--auth-ink); }
#auth-gate a:hover { text-decoration: underline; text-underline-offset: 4px; }
#auth-gate .authGateGrid {
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: 72px;
  align-items: center;
  padding-block: clamp(40px, 7vh, 80px);
}
#auth-gate .authSeoIntro { display: flex; gap: 0; padding: 0; min-width: 0; }
#auth-gate .authEyebrow {
  color: var(--auth-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .075em;
}
#auth-gate .authHeroTitle {
  max-width: none;
  margin: 18px 0 20px;
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 450;
  line-height: 1.13;
  letter-spacing: -.055em;
  color: var(--auth-ink);
}
#auth-gate .authHeroTitle span { color: var(--auth-secondary); }
#auth-gate .authHeroBody { max-width: 440px; font-size: 14px; line-height: 1.85; color: #b7bdb8; }
#auth-gate .authValueStrip { gap: 8px 16px; margin-top: 24px; }
#auth-gate .authValuePill {
  min-height: 0;
  padding: 0;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--auth-secondary);
  font-size: 10px;
  line-height: 1.8;
}
#auth-gate .authValuePill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #818b84; }
#auth-gate .authFeatureGrid { margin-top: 36px; gap: 22px 26px; }
#auth-gate .authFeatureCard { padding: 16px 0 0; border: 0; border-top: 1px solid var(--auth-line); border-radius: 0; background: none; box-shadow: none; }
#auth-gate .authFeatureCard strong { margin-bottom: 7px; font-size: 13px; font-weight: 550; letter-spacing: -.015em; }
#auth-gate .authFeatureCard span { color: var(--auth-secondary); font-size: 12px; line-height: 1.8; }
#auth-gate .authAuthColumn {
  --text-primary: #e1e3e0;
  --muted: #a9aca9;
  color-scheme: dark;
  width: 100%;
  margin: 0;
  padding: 32px;
  border: 1px solid #303532;
  border-radius: 12px;
  background: var(--auth-charcoal);
  color: var(--text-primary);
  backdrop-filter: none;
}
#auth-gate .authBrand { margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid #353a37; }
#auth-gate .authBrandText { gap: 7px; line-height: 1.4; }
#auth-gate .authBrandTop { font-size: 18px; font-weight: 500; letter-spacing: -.045em; opacity: 1; }
#auth-gate .authBrandSub { margin: 0; color: #a9aca9; font-size: 11px; }
#auth-gate .authTitle { margin: 0 0 8px; font-size: 26px; line-height: 1.2; font-weight: 450; letter-spacing: -.035em; }
#auth-gate .authSub { margin: 0 0 24px; color: #a9aca9; font-size: 12px; line-height: 1.7; }
#auth-gate #authGateSub:empty { display: none; }
#auth-gate #authGateSub:not(:empty) { padding: 12px; border: 1px solid #626e64; border-radius: 6px; color: #e1e3e0; }
#auth-gate .authForm { gap: 12px; }
#auth-gate .authFieldLabel { margin-bottom: -5px; color: #c4c7c4; font-size: 11px; line-height: 1.4; }
#auth-gate .dockField { min-height: 46px; padding: 11px 13px; border: 1px solid #444b46; border-radius: 6px; background: #222724; box-shadow: none; }
#auth-gate .dockInput { min-width: 0; font-size: 16px; line-height: 1.4; }
#auth-gate .dockInput::placeholder { color: #959d97; font-size: 13px; }
#auth-gate .dockField:focus-within { border-color: #bbc7bd; box-shadow: 0 0 0 3px #bbc7bd26; }
#auth-gate .dockInput:autofill { -webkit-box-shadow: 0 0 0 1000px #222724 inset !important; box-shadow: 0 0 0 1000px #222724 inset !important; }
#auth-gate .authBtnPrimary, #auth-gate .authBtnSecondary {
  min-height: 46px;
  height: auto;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  transition: background .15s ease;
}
#auth-gate .authBtnPrimary { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; background: #e1e3e0; color: #191c1b; }
#auth-gate .authBtnPrimary:hover { background: #fafafa; filter: none; }
#auth-gate .authBtnSecondary { margin: 0; border-color: #4b524d; background: transparent; color: #e1e3e0; backdrop-filter: none; }
#auth-gate .authBtnSecondary:hover { background: #2c322e; transform: none; filter: none; }
#auth-gate .authDivider { display: flex; align-items: center; gap: 12px; margin-block: 2px; color: #a9aca9; font-size: 10px; }
#auth-gate .authDivider::before, #auth-gate .authDivider::after { content: ""; flex: 1; height: 1px; background: #353a37; }
#auth-gate .authLink { min-height: 44px; height: auto; margin-top: 12px; padding: 10px 0; border-radius: 4px; color: #a9aca9; font-size: 11px; line-height: 1.7; }
#auth-gate .authLinkAction { color: #e1e3e0; text-decoration: underline; text-underline-offset: 3px; }
#auth-gate .authFooter { display: flex; margin-top: 20px; padding-top: 18px; border-top: 1px solid #353a37; gap: 12px; color: #a9aca9; font-size: 10px; line-height: 1.6; }
#auth-gate .authFooterLinks { gap: 18px; }
#auth-gate .authFooterLinks a { display: inline-flex; align-items: center; min-height: 28px; color: #c4c7c4; }
#auth-gate .authMenuToggle { top: max(18px, env(safe-area-inset-top)); right: max(24px, calc((100vw - 1040px) / 2)); width: 44px; height: 44px; border: 1px solid var(--auth-line); border-radius: 6px; background: var(--auth-paper); color: var(--auth-secondary); }
#auth-gate .authMenuToggle:hover { background: #222724; }
#auth-gate .authMenuSheet { top: 68px; right: max(24px, calc((100vw - 1040px) / 2)); background: var(--auth-charcoal); border: 1px solid var(--auth-line); border-radius: 8px; box-shadow: 0 12px 30px #00000040; }
#auth-gate .authMenuItem { color: var(--auth-ink); font-size: 12px; }
#auth-gate .authMenuItem:hover, #auth-gate .authMenuIcon { background: #2c322e; }
#auth-gate :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
#auth-gate ::selection { background: #d5ddd6; color: #191919; }

@media (max-width: 1000px) and (min-width: 761px) {
  #auth-gate .authGateGrid { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
  #auth-gate .authAuthColumn { padding: 26px; }
}
@media (max-width: 760px) {
  #auth-gate .authGate__panel { padding-inline: max(20px, env(safe-area-inset-left)); }
  #auth-gate .authSiteHeader { min-height: 72px; gap: 16px; }
  #auth-gate .authProductName { font-size: 18px; }
  #auth-gate .authMenuToggle { top: max(14px, env(safe-area-inset-top)); right: 20px; }
  #auth-gate .authMenuSheet { top: 64px; right: 20px; }
  #auth-gate .authGateGrid { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 430px; margin: auto; padding-block: 30px 12px; }
  #auth-gate .authHeroTitle { margin: 12px 0 0; font-size: clamp(29px, 6.5vw, 36px); }
  #auth-gate .authHeroBody, #auth-gate .authValueStrip, #auth-gate .authFeatureGrid { display: none; }
  #auth-gate .authAuthColumn { padding: 24px; border-radius: 10px; }
  #auth-gate .authBrand { margin-bottom: 22px; padding-bottom: 18px; }
  #auth-gate .authTitle { font-size: 24px; }
  #auth-gate .authFooterMeta { font-size: 9px; gap: 5px; }
  #auth-gate .authFooterLinks a { min-height: 44px; }
  #auth-gate .authGate--keyboard-open .authSeoIntro { display: none; }
  #auth-gate .authGate--keyboard-open .authGateGrid { padding-top: 20px; }
}
@media (max-width: 360px) {
  #auth-gate .authGate__panel { padding-inline: 16px; }
  #auth-gate .authAuthColumn { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #auth-gate *, #auth-gate *::before, #auth-gate *::after { transition: none; animation: none; }
}
