/* [PPS-LOGIN-LOOK] Sign-in and create-account pages: a deep navy panel under the site header, the left side says what a
   research account opens, the form sits in a dark glass card on the right (stacked on phones: short intro, then the
   card). Scoped to the section that holds .auth-panel, so nothing else on the site changes. The form's fields, names and
   checks are the page's own. */
@font-face { font-family: "PPS Condensed"; font-weight: 700; font-display: swap;
  src: url("/static/fonts/barlow-condensed-700.woff2") format("woff2"); }

section.acx:has(.auth-panel) {
  --a-ink: #040A1C; --a-navy: #0A1F52; --a-blue: #1F6FE5; --a-blue-2: #2B7BF0; --a-sky: #6FB0FF;
  --a-text: #EEF2F8; --a-soft: #D3DCEE; --a-mute: #9AA8C6; --a-line: rgba(255, 255, 255, .12);
  --a-field: rgba(255, 255, 255, .055); --a-card: rgba(6, 14, 36, .86);
  --a-display: "PPS Condensed", "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}
body.hv2 section.acx:has(.auth-panel), section.acx:has(.auth-panel) {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: center;
  padding: 30px 16px 48px !important; min-height: 0 !important; color: var(--a-text);
  background:
    radial-gradient(760px 520px at 82% 12%, rgba(31, 111, 229, .55), transparent 62%),
    radial-gradient(620px 460px at 4% 96%, rgba(21, 80, 196, .38), transparent 62%),
    linear-gradient(165deg, #0A1C4A 0%, #050D26 55%, var(--a-ink) 100%) !important;
}
@media (min-width: 960px) {
  body.hv2 section.acx:has(.auth-panel), section.acx:has(.auth-panel) {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px;
    padding: 56px max(32px, calc((100vw - 1180px) / 2)) 64px !important; min-height: min(860px, calc(100vh - 110px)) !important;
  }
}

/* ---------- left side */
.acx .auth-hero { position: relative; z-index: 1; display: grid; gap: 14px; align-content: center; min-width: 0; max-width: 580px; }
.acx .auth-pill { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin: 0; padding: 7px 14px;
  border-radius: 999px; border: 1px solid rgba(111, 176, 255, .45); background: rgba(31, 111, 229, .16);
  color: #CFE2FF; font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.acx .auth-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.hv2 .acx .auth-h, .acx .auth-h { margin: 0; font-family: var(--a-display) !important; font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 10.5vw, 84px); line-height: .9; letter-spacing: -.005em; color: #FFFFFF !important; text-wrap: balance; }
.acx .auth-h span { display: block; }
.acx .auth-h span + span { color: var(--a-sky); }
.acx .auth-facts { display: grid; gap: 9px; margin: 2px 0 0; padding: 0; list-style: none; }
.acx .auth-facts li { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--a-soft); font-size: 14.5px; line-height: 1.4; }
.acx .auth-facts li { position: relative; }
.acx .auth-facts a { color: #FFFFFF !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(111, 176, 255, .7); }
.acx .auth-facts a::after { content: ""; position: absolute; inset: -8px 0; }   /* the whole line is the link: an easy tap on a phone */
.acx .auth-facts svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--a-sky);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acx .auth-ruo { display: none; margin: 0; color: #8492B1; font-size: 12.5px; }
@media (min-width: 960px) {
  .acx .auth-hero { gap: 20px; align-self: start; position: sticky; top: 110px; padding-top: 8px; }
  .acx .auth-facts li { font-size: 16px; }
  .acx .auth-ruo { display: block; }
}

/* ---------- the front page's floating vials (same picks and the same arrangement: the first one large in the middle,
   the second smaller at the back left, the third on the right), lit from below in the page's blue */
.acx .auth-stage { position: relative; height: 156px; margin: 4px 0 0; pointer-events: none; }
.acx .auth-stage::before { content: ""; position: absolute; left: 50%; bottom: -6px; width: min(420px, 90%); height: 70px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(43, 123, 240, .42), rgba(43, 123, 240, 0)); filter: blur(6px); }
.acx .auth-fv { position: absolute; display: block; z-index: 2; animation: auth-rise 1.1s cubic-bezier(.16, .84, .24, 1) both; animation-delay: var(--rd, 0s); }
.acx .auth-fv-bob { display: block; transform: rotate(var(--r, 0deg)); animation: auth-bob var(--bd, 7s) ease-in-out var(--bdl, 0s) infinite; }
.acx .auth-fv img { display: block; width: 100%; max-width: none; height: auto;
  filter: drop-shadow(0 24px 26px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(31, 111, 229, .28)); }
.acx .auth-fv-floor { position: absolute; left: 12%; right: 12%; bottom: -14px; height: 12px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); animation: auth-floor var(--bd, 7s) ease-in-out var(--bdl, 0s) infinite; }
.acx .auth-fv--1 { left: calc(50% - 30px); width: 60px; bottom: 10px; z-index: 3; --r: -4deg; --bd: 7s; --rd: .1s; }
.acx .auth-fv--2 { left: calc(50% - 112px); width: 44px; bottom: 30px; --r: -13deg; --bd: 8.5s; --bdl: -2s; --rd: .25s; }
.acx .auth-fv--3 { left: calc(50% + 60px); width: 48px; bottom: 24px; --r: 10deg; --bd: 7.8s; --bdl: -4s; --rd: .4s; }
.acx .auth-fv--2 img { filter: blur(.6px) drop-shadow(0 18px 20px rgba(0, 0, 0, .5)); opacity: .92; }
.acx .auth-stage--1 .auth-fv--1 { left: calc(50% - 30px); }
@media (min-width: 960px) {
  .acx .auth-stage { height: 330px; margin: 0; }
  .acx .auth-stage::before { width: 460px; left: 42%; bottom: 0; height: 90px; }
  .acx .auth-fv--1 { left: 30%; width: clamp(104px, 8.6vw, 128px); bottom: 26px; }
  .acx .auth-fv--2 { left: 4%; width: clamp(70px, 5.6vw, 84px); bottom: 92px; }
  .acx .auth-fv--2 img { filter: blur(1.1px) drop-shadow(0 22px 22px rgba(0, 0, 0, .5)); }
  .acx .auth-fv--3 { left: 58%; width: clamp(80px, 6.4vw, 98px); bottom: 118px; }
  .acx .auth-fv-floor { bottom: -22px; height: 16px; }
}
@keyframes auth-rise { from { opacity: 0; transform: translate3d(0, 50px, 0) scale(.95); } }
@keyframes auth-bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) + 2deg)); } }
@keyframes auth-floor { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.8); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .acx .auth-fv, .acx .auth-fv-bob, .acx .auth-fv-floor { animation: none !important; } }

/* ---------- the card */
body.hv2 .acx .auth-panel, .acx .auth-panel { position: relative; z-index: 1; width: 100%; max-width: 500px !important; margin: 0 auto !important;
  padding: 0 !important; min-width: 0; }
@media (min-width: 960px) { body.hv2 .acx .auth-panel, .acx .auth-panel { margin: 0 0 0 auto !important; } }
body.hv2 .acx .auth-panel .account-card, .acx .auth-panel .account-card {
  background: var(--a-card) !important; border: 1px solid rgba(255, 255, 255, .1) !important; border-radius: 26px !important;
  padding: 24px 22px 18px !important; color: var(--a-text) !important;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (min-width: 480px) { body.hv2 .acx .auth-panel .account-card, .acx .auth-panel .account-card { padding: 30px 30px 22px !important; } }

.acx .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 22px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.acx .auth-tabs a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px;
  color: var(--a-mute) !important; font-size: 15px; font-weight: 600; text-decoration: none !important; transition: background .15s, color .15s; }
.acx .auth-tabs a:hover { color: #FFFFFF !important; }
.acx .auth-tabs a.on { background: #13295F; color: #FFFFFF !important; box-shadow: inset 0 0 0 1px rgba(111, 176, 255, .28); }
.acx .auth-tabs a:focus-visible { outline: 2px solid var(--a-sky); outline-offset: 2px; }

/* the page heading: stronger than the site's big uppercase page-heading rule (site-bw.css: body.hv2:not(:has(#pv5)) main h1) */
body.hv2:not(:has(#pv5)) main .acx .auth-panel h1.account-title, body.hv2 .acx .auth-panel .account-title, .acx .auth-panel .account-title {
  margin: 0 0 6px !important; color: #FFFFFF !important; font-family: var(--font-body, "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif) !important;
  font-size: 28px !important; font-weight: 700 !important; line-height: 1.15 !important; letter-spacing: -.015em !important;
  text-transform: none !important; }
body.hv2 .acx .auth-panel .account-sub, .acx .auth-panel .account-sub, .acx .auth-panel .account-card > p:not([class]) {
  margin: 0 0 20px !important; color: var(--a-mute) !important; font-size: 15px !important; line-height: 1.5 !important; }
/* arriving from the shop, the sign-in gate's note already says it: one line, not two */
.acx .auth-panel .account-card > p:not([class]) + .account-sub { display: none; }

/* messages */
.acx .auth-panel .alert { background: rgba(111, 176, 255, .1) !important; border: 1px solid rgba(111, 176, 255, .25) !important;
  border-left: 4px solid var(--a-sky) !important; border-radius: 12px !important; color: var(--a-text) !important; }
.acx .auth-panel .alert strong { color: #FFFFFF; }
.acx .auth-panel .alert a { color: var(--a-sky) !important; }
.acx .auth-panel .alert-error { background: rgba(240, 120, 100, .12) !important; border-color: rgba(240, 120, 100, .35) !important;
  border-left-color: #F0846E !important; color: #FFD8D0 !important; }

/* Google */
.acx .auth-panel .gsi-btn { min-height: 50px; border-radius: 999px; border-color: #FFFFFF; }
.acx .auth-panel .gsi-or { color: var(--a-mute); margin: 18px 0; }
.acx .auth-panel .gsi-or::before, .acx .auth-panel .gsi-or::after { border-top-color: rgba(255, 255, 255, .14); }

/* fields */
body.hv2 .acx .auth-panel .form-row label, .acx .auth-panel .form-row label { color: #E3E9F5 !important; font-size: 14px !important;
  font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; font-family: inherit !important; }
body.hv2 .acx .auth-panel .form-row input:not([type=checkbox]), .acx .auth-panel .form-row input:not([type=checkbox]) {
  height: 52px !important; min-height: 52px !important; padding: 0 16px !important; font-size: 16px !important;
  background: var(--a-field) !important; border: 1px solid rgba(255, 255, 255, .16) !important; border-radius: 12px !important;
  color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF; caret-color: #FFFFFF; }
body.hv2 .acx .auth-panel .form-row input:not([type=checkbox]):hover { border-color: rgba(255, 255, 255, .3) !important; }
body.hv2 .acx .auth-panel .form-row input:not([type=checkbox]):focus, .acx .auth-panel .form-row input:not([type=checkbox]):focus {
  outline: none !important; border-color: var(--a-sky) !important; box-shadow: 0 0 0 3px rgba(111, 176, 255, .28) !important; }
.acx .auth-panel .form-row input::placeholder { color: #7E8CA9 !important; -webkit-text-fill-color: #7E8CA9; }
.acx .auth-panel input:-webkit-autofill, .acx .auth-panel input:-webkit-autofill:hover, .acx .auth-panel input:-webkit-autofill:focus {
  -webkit-text-fill-color: #FFFFFF; box-shadow: 0 0 0 1000px #0E1A3A inset !important; caret-color: #FFFFFF; }
.acx .auth-panel .form-row small, .acx .auth-panel #pw-mismatch { color: var(--a-mute) !important; }
.acx .auth-panel #pw-mismatch { color: #FFB4A1 !important; }
body.hv2 .acx .auth-panel .acx-forgot a, .acx .auth-panel .acx-forgot a { color: var(--a-sky) !important; text-decoration: none !important; }
body.hv2 .acx .auth-panel .acx-eye, .acx .auth-panel .acx-eye { top: 4px !important; height: 44px; color: #CFE2FF !important; background: transparent !important; border-radius: 10px !important; }
body.hv2 .acx .auth-panel .acx-eye:hover { background: rgba(255, 255, 255, .08) !important; }

/* boxes (texts opt-in, research-use agreement) */
.acx .auth-panel .reg-sms, .acx .auth-panel .auth-agree { display: flex; gap: 12px; align-items: flex-start; margin: 2px 0 18px;
  padding: 14px; border: 1px solid rgba(255, 255, 255, .12) !important; border-radius: 14px; background: rgba(255, 255, 255, .04) !important; cursor: pointer; }
.acx .auth-panel .reg-sms input, .acx .auth-panel .auth-agree input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--a-blue); }
.acx .auth-panel .reg-sms b, .acx .auth-panel .auth-agree span { color: var(--a-text) !important; font-size: 14px; line-height: 1.45; }
.acx .auth-panel .reg-sms small { color: var(--a-mute) !important; }
.acx .auth-panel .reg-sms a, .acx .auth-panel .auth-agree a { color: var(--a-sky) !important; text-decoration: underline; text-underline-offset: 2px; }

/* the main button */
body.hv2 .acx .auth-panel .btn.btn-block, .acx .auth-panel .btn.btn-block {
  min-height: 54px !important; border: 0 !important; border-radius: 999px !important; background: var(--a-blue) !important;
  color: #FFFFFF !important; font-size: 16px !important; font-weight: 700 !important; letter-spacing: .01em !important;
  text-transform: none !important; box-shadow: 0 14px 30px -14px rgba(31, 111, 229, .9) !important; transition: background .15s, transform .15s; }
body.hv2 .acx .auth-panel .btn.btn-block:hover { background: var(--a-blue-2) !important; transform: translateY(-1px); }
.acx .auth-panel .btn.btn-block:focus-visible { outline: 2px solid #FFFFFF !important; outline-offset: 3px; }

/* footer of the card */
.acx .auth-note { display: flex; gap: 8px; align-items: center; margin: 16px 0 0; color: var(--a-mute); font-size: 13px; line-height: 1.4; }
.acx .auth-note svg { flex: 0 0 15px; width: 15px; height: 15px; fill: none; stroke: #5BD08A; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.hv2 .acx .auth-panel .account-alt, .acx .auth-panel .account-alt { margin-top: 14px !important; padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, .1) !important; color: var(--a-mute) !important; }
.acx .auth-panel .account-alt a { color: var(--a-sky) !important; }

/* ---------- Google first: the card opens with the Google button; the page's own copy further down is hidden */
.acx .auth-panel .auth-tabs ~ .gsi-btn, .acx .auth-panel .auth-tabs ~ .gsi-or, .acx .auth-panel .auth-tabs ~ .gsi-msg { display: none !important; }

/* ---------- Create account: its own heading (the page's older one is hidden), a wider card, two columns */
.acx .auth-panel .auth-h1 ~ h1.account-title { display: none !important; }
body.hv2 .acx .auth-panel--reg, .acx .auth-panel--reg { max-width: 560px !important; }
.acx .auth-panel { color-scheme: dark; }
.acx .auth-panel--reg .form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; row-gap: 0; }
@media (min-width: 560px) {
  .acx .auth-panel--reg form[action="/account/register"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
  .acx .auth-panel--reg form[action="/account/register"] > * { grid-column: 1 / -1; }
  .acx .auth-panel--reg form[action="/account/register"] > .form-row:has(#reg-password),
  .acx .auth-panel--reg form[action="/account/register"] > .form-row:has(#reg-password2) { grid-column: auto; }
}
@media (max-width: 380px) { .acx .auth-panel--reg .auth-grid { grid-template-columns: minmax(0, 1fr); } }

/* date of birth and researcher type: the same dark fields */
body.hv2 .acx .auth-panel .form-row select, .acx .auth-panel .form-row select {
  width: 100%; height: 52px !important; min-height: 52px; padding: 0 40px 0 16px !important; font-size: 16px !important; font-family: inherit;
  color: #FFFFFF !important; background-color: var(--a-field) !important; border: 1px solid rgba(255, 255, 255, .16) !important; border-radius: 12px !important;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA8C6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 18px !important; }
.acx .auth-panel .form-row select:invalid { color: #7E8CA9 !important; }
.acx .auth-panel .form-row select option { color: #FFFFFF; background: #0E1A3A; }
body.hv2 .acx .auth-panel .form-row select:focus, .acx .auth-panel .form-row select:focus {
  outline: none !important; border-color: var(--a-sky) !important; box-shadow: 0 0 0 3px rgba(111, 176, 255, .28) !important; }
.acx .auth-panel .form-row input[type=date] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; text-align: left; }
.acx .auth-panel .form-row input[type=date]::-webkit-date-and-time-value { text-align: left; }
.acx .auth-panel .form-row input[type=date]::-webkit-calendar-picker-indicator { opacity: .75; cursor: pointer; }
.acx .auth-panel .form-row input[type=date]:invalid { color: #7E8CA9 !important; -webkit-text-fill-color: #7E8CA9; }
