/* Public sign-up and sign-in, plus the other signed-out pages that share this
   shell (/auth email-link landing, /billing/reactivate). Uses the shared rb tokens
   from tokens.css. One centred column so the form is the first thing on every
   screen size. Light only: a signed-in workspace keeps the customer's theme, but
   these pages match resellbot.com, which has no dark mode. */

/* candidate: shared — light-pinned surface. Re-declares the light rb tokens
   (tokens.css :root) so a page stays light under [data-bs-theme="dark"]. */
body:has(:is(login-page,auth-link-page,billing-reactivate-page) .research-auth),
.research-auth{
--bg:#f7f6f3;--paper:#fff;--well:#efece6;--tint:#fbfaf8;
--ink:#1c1b19;--ink-2:#55524b;--ink-3:#6b675f;--ink-4:#a19d95;--line:#e7e4de;--line-2:#efede8;
--green:#0b7a47;--green-2:#e4f2e9;--green-3:#cfe7d8;--red:#b42318;--red-2:#fdecea;--amber:#8a5a00;--amber-2:#f7eed4;
--field-line:#dedad3;--field-line-h:#c9c4bb;--on-ink:#f7f6f3;
--sh1:0 0 0 1px rgba(28,27,25,.07),0 1px 2px rgba(28,27,25,.05);
--sh2:0 0 0 1px rgba(28,27,25,.06),0 1px 2px rgba(28,27,25,.04),0 12px 28px -10px rgba(28,27,25,.12);
--hover:rgba(28,27,25,.05);
color-scheme:light}
body:has(:is(login-page,auth-link-page,billing-reactivate-page) .research-auth){background:var(--bg)!important;color:var(--ink)!important}
body:has(:is(login-page,auth-link-page,billing-reactivate-page) .research-auth)>nav.navbar,
body:has(:is(login-page,auth-link-page,billing-reactivate-page) .research-auth) app-navigation,
body:has(:is(login-page,auth-link-page,billing-reactivate-page) .research-auth) .rb-mbar{display:none!important}
body:has(:is(login-page,auth-link-page,billing-reactivate-page) .research-auth) #wrapper,
body:has(:is(login-page,auth-link-page,billing-reactivate-page) .research-auth) #app{margin:0!important;padding:0!important;width:100%!important;max-width:none!important;min-height:100svh;background:var(--bg)!important}

.research-auth{min-height:100svh;display:flex;flex-direction:column;color:var(--ink);background:var(--bg);font:400 15px/1.55 var(--font);-webkit-font-smoothing:antialiased}
.research-auth *,.research-auth *::before,.research-auth *::after{box-sizing:border-box}
.research-auth a{color:inherit}
.research-auth .d-none{display:none!important}
.research-auth :focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* Header: logo and the one other door (sign in / create account). No site nav to wander off into. */
.research-auth-header{display:flex;align-items:center;justify-content:space-between;gap:16px;height:68px;padding-inline:clamp(16px,4vw,40px)}
.research-entry-brand{display:inline-flex;align-items:center;gap:10px;font-size:19px;font-weight:800;letter-spacing:-.03em;text-decoration:none;white-space:nowrap}
.research-entry-brand img{width:28px;height:28px}
.research-auth-switch-row{margin:0;font-size:13px;color:var(--ink-3);white-space:nowrap}
.research-auth-switch{margin-left:4px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);font-weight:700;font-size:13px;line-height:1.2;font-family:inherit;cursor:pointer}
.research-auth-switch:hover{border-color:var(--field-line-h)}

/* Column */
.research-entry{flex:1;width:100%;max-width:440px;margin:0 auto;padding:clamp(20px,6vh,64px) 16px 48px}
.research-entry-eyebrow{display:flex;align-items:center;gap:8px;margin:0 0 14px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.research-entry-eyebrow>span{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px var(--green-2)}
.research-entry h1{margin:0;font:800 34px/1.12 var(--font);letter-spacing:-.035em;color:var(--ink);text-wrap:balance}
.research-entry-lead{margin:12px 0 0;font-size:16px;line-height:1.55;color:var(--ink-2);text-wrap:pretty}
.research-entry-lead strong{color:var(--ink);font-weight:700}

/* Form card */
.research-entry-form{margin-top:24px;padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:0 1px 2px rgba(28,27,25,.03),0 16px 36px -24px rgba(28,27,25,.2)}
.research-auth-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;padding:12px 18px;border-radius:12px;font:700 15px/1.2 var(--font);cursor:pointer;transition:background-color .15s,border-color .15s,box-shadow .15s}
.research-auth-btn:disabled{opacity:.7;cursor:progress}
.research-auth-btn--google{border:1px solid var(--field-line);background:var(--paper);color:var(--ink);box-shadow:0 1px 2px rgba(28,27,25,.05)}
.research-auth-btn--google:hover{background:var(--bg);border-color:var(--field-line-h)}
.research-auth-btn--primary{border:1px solid var(--ink);background:var(--ink);color:var(--paper);box-shadow:0 1px 2px rgba(28,27,25,.15),0 8px 18px -10px rgba(28,27,25,.5)}
.research-auth-btn--primary:hover{background:color-mix(in srgb,var(--ink) 88%,#000)}
.research-auth-google{flex:0 0 auto}
.research-auth-nocard{margin:8px 0 0;text-align:center;font-size:13px;font-weight:600;color:var(--green)}
.research-auth-or{display:flex;align-items:center;gap:12px;margin:18px 0;font-size:12px;color:var(--ink-3)}
.research-auth-or::before,.research-auth-or::after{content:"";flex:1;height:1px;background:var(--line)}
.research-auth-fields{display:grid;gap:14px}
.research-auth-field{display:grid;gap:6px}
.research-auth-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.research-auth-field label{font-size:13px;font-weight:600;color:var(--ink)}
.research-auth-label-row a{font-size:13px;color:var(--ink-2);text-underline-offset:3px}
.research-auth-field input{width:100%;min-width:0;height:48px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--tint);color:var(--ink);font:400 16px/1 var(--font);outline:none;transition:border-color .15s,box-shadow .15s}
.research-auth-field input:focus{border-color:var(--ink);background:var(--paper);box-shadow:0 0 0 3px rgba(28,27,25,.07)}
.research-auth-password{position:relative}
.research-auth-password input{padding-right:68px}
.research-auth-reveal{position:absolute;top:6px;right:6px;height:36px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--ink-2);font:600 13px/1 var(--font);cursor:pointer}
.research-auth-reveal:hover{background:var(--bg)}
.research-auth-hint{font-size:12px;color:var(--ink-3)}
.research-auth-fields .research-auth-btn{margin-top:4px}
.research-auth-link{display:block;margin:14px auto 0;padding:4px;border:0;background:none;color:var(--ink-2);font:500 13px/1.4 var(--font);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.research-auth-link:hover{color:var(--ink)}
.research-auth-alt{margin:16px 0 0;padding-top:16px;border-top:1px solid var(--line);text-align:center;font-size:14px}
.research-auth-alt a{font-weight:600;text-underline-offset:3px}
/* The header already offers "Sign in" on wide screens; keep this one for thumbs on phones. */
@media(min-width:600px){.research-auth-alt--signup{display:none}}
.research-auth-alert{margin:0 0 16px;padding:12px 14px;border-radius:12px;background:var(--red-2);border:1px solid color-mix(in srgb,var(--red) 22%,transparent);color:var(--red);font-size:14px;line-height:1.45}
.research-auth-alert--ok{background:var(--green-2);border-color:var(--green-3);color:var(--green)}
.research-auth-sent{text-align:center}
.research-auth-sent>p:first-child{margin:0 0 18px;font-size:15px;color:var(--ink-2);overflow-wrap:anywhere}
.research-auth-sent strong{color:var(--ink)}
.research-auth-sent .research-auth-hint{margin:8px 0 0}

/* Below the card */
.research-entry-terms{margin:16px 4px 0;font-size:13px;line-height:1.55;color:var(--ink-3);text-align:center;text-wrap:pretty}
.research-entry-points{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin:28px 0 0;padding:0;list-style:none;font-size:13px;font-weight:600;color:var(--ink-2)}
.research-entry-points li{display:inline-flex;align-items:center;gap:6px}
.research-entry-points svg{color:var(--green)}

.research-auth-footer{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 20px;padding:20px 16px 28px;font-size:12px;color:var(--ink-3)}
.research-auth-footer a{text-decoration:none}
.research-auth-footer a:hover{text-decoration:underline}

@media(max-width:599px){
  .research-auth-header{height:60px}
  .research-auth-switch-row{font-size:0}
  .research-auth-switch{font-size:13px;margin:0}
  .research-entry{padding-top:12px}
  .research-entry h1{font-size:28px}
  .research-entry-lead{font-size:15px}
  .research-entry-form{margin-top:18px;padding:18px;border-radius:16px}
  .research-entry-eyebrow{margin-bottom:10px;font-size:11px}
}
/* Other signed-out pages on this shell: /billing/reactivate and /auth */
.research-auth a.research-auth-btn,.research-auth a.research-auth-switch{text-decoration:none}
.research-auth a.research-auth-btn--primary{color:var(--paper)}
.research-auth .research-auth-btn .rb-icon{flex:none}
.research-auth .research-auth-btn.is-busy{cursor:progress}
.recovery-entry{max-width:480px}
.recovery-card{display:grid;gap:16px}
.recovery-card--state{justify-items:start;margin-top:0}
.recovery-card--state h1{font-size:28px}
.recovery-card--state .research-entry-lead{margin:-8px 0 0;font-size:15px;overflow-wrap:anywhere}
.recovery-card .research-auth-btn{margin-top:4px}
.recovery-card--state .recovery-action{width:auto;min-width:200px}
.recovery-glyph{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--well);color:var(--ink)}
.recovery-glyph--ok{background:var(--green-2);color:var(--green)}
.recovery-glyph--warn{background:var(--red-2);color:var(--red)}
.recovery-note{margin:0;font-size:14px;line-height:1.55;color:var(--ink-2)}
.recovery-hint{margin:0;text-align:center}
.recovery-facts{margin:-8px -24px 0;border-bottom:1px solid var(--line-2)}
.recovery-facts .rb-fact{grid-template-columns:140px minmax(0,1fr);padding:12px 24px}
.recovery-facts dd{font-weight:600}
.recovery-num{font-variant-numeric:tabular-nums}
.auth-link-spin{width:28px;height:28px;border-radius:50%;border:3px solid var(--well);border-top-color:var(--ink);animation:rb-spin .8s linear infinite}
.auth-link-form{width:100%}
@media(max-width:599px){
  .recovery-card--state h1{font-size:24px}
  .recovery-facts{margin:-4px -18px 0}
  .recovery-facts .rb-fact{grid-template-columns:minmax(0,1fr);padding:10px 18px;gap:2px}
  .recovery-card--state .recovery-action{width:100%}
}

@media(prefers-reduced-motion:reduce){.research-auth *{transition:none!important}}
