/* The first visit occupies the page. A returning editor signs in over their board. */
#account-sign-in[data-renewing="false"] {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #faf9f6;
  color: #172036;
}
.welcome-shell {
  width: min(1192px, 100%);
  min-height: 100%;
  margin-inline: auto;
  padding: clamp(24px, 4.6vw, 68px);
  display: flex;
  flex-direction: column;
}
.welcome-masthead { display: flex; align-items: center; }
.welcome-body {
  flex: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  gap: clamp(38px, 7vw, 100px);
  padding-block: clamp(36px, 8vh, 96px);
}
#account-sign-in[data-renewing="false"] #sign-in-form h1 {
  font-size: clamp(38px, 4.8vw, 69px);
  font-weight: 630;
  letter-spacing: -.06em;
  line-height: 1.03;
  margin: 0;
  max-width: 10em;
  text-wrap: balance;
}
.welcome-description { max-width: 32ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: #525e72; margin: 13px 0 22px; }
#sign-in-form #password-fields { max-width: 320px; }
#google-sign-in-options { justify-items: start; gap: 11px; }
#google-sign-in { grid-row: 1; }
#google-sign-in:focus-visible { outline-color: #2e5ae8; }
#google-renew-hint { color: #566174; }
.welcome-example {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7dce6;
  border-radius: 14px;
  background: #f7f9fd;
  box-shadow: 0 12px 32px -24px #18285355;
}
.welcome-example figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #dce1ec;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}
.welcome-example figcaption span + span { color: #606a7c; font-size: 12px; font-weight: 450; }
.welcome-example img { display: block; width: 100%; height: auto; }
#account-sign-in[data-renewing="true"] .welcome-shell { padding: 0; }
#account-sign-in[data-renewing="true"] .welcome-body { display: block; padding: 16px 0 0; }
#account-sign-in[data-renewing="true"] :is(.welcome-description, .welcome-example) { display: none; }
@media (max-width: 760px) {
  .welcome-shell { max-width: 600px; padding: 26px clamp(20px, 6vw, 40px); }
  .welcome-body { grid-template-columns: 1fr; gap: 33px; align-content: center; }
  #account-sign-in[data-renewing="false"] #sign-in-form h1 { max-width: 12em; }
  .welcome-description { max-width: 36ch; margin-bottom: 13px; }
}
@media (max-height: 600px) and (min-width: 761px) {
  .welcome-shell { padding-block: 20px; }
  .welcome-body { padding-block: 18px; }
  .welcome-example { max-width: 450px; }
}

html[data-theme="dark"] #account-sign-in {
  color-scheme: dark;
  color: var(--theme-text);
  background: var(--theme-panel);
  border-color: var(--theme-line);
  &[data-renewing="false"] { background: var(--theme-bg); }
  & :is(.welcome-description, #google-renew-hint, .welcome-example figcaption span + span) { color: var(--theme-muted); }
  & .welcome-example { background: var(--theme-panel); border-color: var(--theme-line); box-shadow: none; }
  & .welcome-example figcaption { color: var(--theme-text); border-color: var(--theme-line); background: var(--theme-panel); }
  & #sign-in-form input { color: var(--theme-text); background: var(--theme-bg); border-color: #829094; }
  & #sign-in-error { color: #ffada5; }
  & #check-google-session { color: var(--theme-accent); }
  & :focus-visible { outline-color: var(--theme-accent); }
}
.welcome-example img { color-scheme: light; }
html[data-theme="dark"] .welcome-example img { color-scheme: dark; }
