/* Client access, from references/redesign-2026-10/final/Access.dc.html */

.access {
  position: relative;
  background: var(--bl-field);
}

.access::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(238, 234, 228, 0), var(--bl-page));
  pointer-events: none;
}

.access__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 6vw;
  row-gap: 56px;
  padding: clamp(28px, 3vw, 56px) 5.5% clamp(72px, 6vw, 112px) max(20px, 8.5%);
}

.access__text {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 29em;
}

.access h1 {
  margin-top: 18px;
  font-size: clamp(28px, 2.474vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.access__line {
  max-width: 22em;
  margin-top: .75em;
  font-size: clamp(17px, 1.302vw, 27px);
  line-height: 1.4;
  text-wrap: pretty;
}

.access__picture {
  position: relative;
  flex: 1.25 1 440px;
  align-self: stretch;
  min-width: 0;
  min-height: clamp(440px, 40vw, 700px);
}

.access__picture .art-slot {
  position: absolute;
  inset: 0;
}

/* The sign-in form */
.access-form {
  margin-top: clamp(28px, 2.8vw, 48px);
}

.access-form__label {
  display: block;
  color: var(--bl-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.access-form__row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 8px;
}

.access-form input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 6px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--bl-ink);
  border-radius: 0;
  background: transparent;
  color: var(--bl-ink);
  font: inherit;
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 300;
  letter-spacing: .02em;
}

.access-form input:focus-visible {
  outline: 2px solid var(--bl-ink);
  outline-offset: 6px;
}

.access-form__submit {
  flex: none;
  min-width: 120px;
  height: 48px;
  margin: 0;
  padding: 0 20px;
  border: 1px solid var(--bl-ink);
  border-radius: 0;
  background: transparent;
  color: var(--bl-ink);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.access-form__submit:hover {
  background: var(--bl-ink);
  color: var(--bl-ink-on);
}

.access-form__submit[aria-disabled="true"] {
  cursor: progress;
}

.access-form__note {
  margin-top: 14px;
  color: var(--bl-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* A message replaces the hint. Without JavaScript the server sends readers
   back to /access#access-<kind>, and :target shows that message. */
.access-form__message {
  display: none;
  align-items: flex-start;
  gap: 10px;
}

.access-form__message.is-shown,
.access-form__message:target {
  display: flex;
}

.access-form__note:has(.is-shown) .access-form__hint,
.access-form__note:has(:target) .access-form__hint {
  display: none;
}

.access-form__message > span:last-child {
  min-width: 0;
  text-wrap: pretty;
}

.access-form__message a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--bl-underline);
  text-underline-offset: .25em;
}

/* The audit page's Review mark: a note, never an alarm. */
.access-form__mark {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: #8a5a00;
  color: var(--bl-paper);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* The way in */
.access__way {
  margin-top: clamp(36px, 3.6vw, 64px);
  padding-top: clamp(24px, 2.2vw, 36px);
  border-top: 1px solid var(--bl-rule);
}

.access__way-text {
  max-width: 29em;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

.access__cta {
  display: flex;
  margin-top: 24px;
}

.access__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
  margin-top: 10px;
  color: var(--bl-muted);
  font-size: 15px;
  line-height: 1.4;
}

/* On short, wide screens "No invitation yet?" sits beside the sign-in, in the
   column the picture will take, so the whole page fits the first screen. */
@media (min-width: 1000px) and (max-height: 760px) {
  .access__text {
    display: grid;
    grid-template-columns: minmax(0, 29em) minmax(0, 24em);
    column-gap: 6vw;
    max-width: none;
  }

  .access__text > * {
    grid-column: 1;
  }

  .access .access__way {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: end;
    margin-top: 0;
  }
}

.page-access .site-footer {
  margin-top: clamp(96px, 9vw, 160px);
}

@media (max-width: 759px) {
  .access__picture {
    flex: 1 1 100%;
    align-self: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
}
