/* Faculty access and the private-code checkpoint. */
@media screen {
  .portal {
    --access-text: "Noto Serif Bengali", Inter, "Source Sans 3", Arial, sans-serif;
    --access-title: "Noto Serif Bengali", Jost, Inter, Arial, sans-serif;
    --access-ink: #252124;
    --access-muted: #555054;
    --access-accent: #a31f34;
    --access-tint: #f8ecee;
    --access-line: #d9d2d3;
    --access-paper: #f7f5f2;
  }
  .portal.needs-auth {
    background: var(--access-paper);
    --brand: var(--access-accent);
    --ink: var(--access-ink);
    --muted: var(--access-muted);
  }
  .portal.needs-auth > .masthead {
    background: #252124;
    font-family: var(--access-text);
  }
  .portal.needs-auth > .masthead .institution-brand strong {
    font-family: var(--access-title);
    font-weight: 600;
    font-size: clamp(22px, 2.4vw, 34px);
  }
  .portal.needs-auth > :is(main, footer) { font-family: var(--access-text); }
  .needs-auth .entry-topbar {
    margin-bottom: clamp(16px, 3vw, 32px);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--access-line);
  }
  .needs-auth .entry-topbar > a {
    color: var(--access-accent);
    text-underline-offset: 3px;
  }
  .needs-auth .product-identity > span:first-child { color: var(--access-accent); }
  .needs-auth :is(.page-intro, .login-panel) { max-width: 560px; }
  .needs-auth .page-intro { padding-top: 0; }
  .needs-auth .page-intro h1,
  .needs-auth :is(.access-heading, .activation-prompt h2),
  #facultyCodePanel h2 {
    font-family: var(--access-title);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.12;
  }
  .needs-auth .page-intro h1 {
    font-size: clamp(34px, 5vw, 54px);
    color: var(--access-ink);
  }
  .needs-auth .page-intro p { color: var(--access-muted); }
  .needs-auth .login-panel {
    padding: clamp(14px, 3vw, 28px);
    border: 1px solid var(--access-line);
    border-top: 4px solid var(--access-accent);
    background: white;
  }
  .needs-auth .access-choices {
    margin-bottom: 20px;
    border: 1px solid var(--access-line);
  }
  .needs-auth .access-choices button {
    min-width: 0;
    margin: 0;
    border-bottom: 0;
    color: var(--access-ink);
    font: 700 clamp(13px, 2vw, 15px) / 1.4 var(--access-text);
  }
  .needs-auth .access-choices button + button { border-left: 1px solid var(--access-line); }
  .needs-auth .access-choices button:hover { background: var(--access-paper); }
  .needs-auth .access-choices button[aria-pressed="true"] {
    background: var(--access-tint);
    color: var(--access-accent);
    box-shadow: inset 0 -3px var(--access-accent);
  }
  .needs-auth :is(.access-heading, .activation-prompt h2) {
    font-size: clamp(24px, 4vw, 32px);
    color: var(--access-ink);
  }
  .needs-auth :is(.access-instructions, .recovery-help) { color: var(--access-muted); }
  .needs-auth .access-instructions { margin-bottom: 16px; }
  .needs-auth .recovery-help a {
    color: var(--access-accent);
    text-underline-offset: 3px;
  }
  .needs-auth #keyForm input::placeholder {
    color: rgb(18 58 106 / 72%);
    font-style: italic;
  }
  .needs-auth .login-panel .login-button { margin-top: 18px; }
  .needs-auth .login-panel .login-button:hover:not(:disabled) { background: #751629; }
  .needs-auth #loginStatus:not(:empty) {
    margin: 16px 0 0;
    background: var(--access-tint);
    border-color: #c9979f;
    color: var(--access-ink);
  }
  #facultyCodePanel.recovery-dialog {
    font-family: var(--access-text);
    color: var(--access-ink);
    border-color: var(--access-line);
  }
  #facultyCodePanel .recovery-intro {
    background: #252124;
    border-top: 4px solid var(--access-accent);
  }
  #facultyCodePanel h2 { font-size: clamp(24px, 4vw, 36px); }
  #facultyCodePanel .recovery-emblem {
    color: #fff;
    border-color: #b26773;
  }
  #facultyCodePanel .recovery-once {
    color: #7b1729;
    border-color: #c9979f;
    background: var(--access-tint);
  }
  #facultyCodePanel #newFacultyCode {
    height: auto;
    background: white;
    border-color: #888085;
    color: var(--access-ink);
  }
  #facultyCodePanel #newFacultyCode:focus { border-color: var(--access-accent); }
  #facultyCodePanel .recovery-privacy { color: var(--access-muted); }
  #facultyCodePanel .recovery-confirm {
    background: var(--access-paper);
    border-color: var(--access-line);
    accent-color: var(--access-accent);
  }
  #facultyCodePanel button {
    background: var(--access-accent);
    border-color: var(--access-accent);
  }
  #facultyCodePanel button.secondary {
    background: white;
    color: var(--access-accent);
    border-color: #888085;
  }
  #facultyCodePanel button:hover:not(:disabled) {
    background: #751629;
    color: white;
  }
  #facultyCodePanel #continueAfterCode:disabled {
    background: #eeeaea;
    border-color: var(--access-line);
    color: #625c60;
  }
  @media (min-width: 801px) {
    .portal.needs-auth > .masthead {
      --access-rail-inline: 22px;
      --access-rail-bottom: 24px;
      padding-inline: var(--access-rail-inline);
      padding-block-end: var(--access-rail-bottom);
    }
    .portal.needs-auth > .masthead::after {
      content: "";
      align-self: stretch;
      flex: 1 0 var(--access-rail-bottom);
      margin-inline: calc(-1 * var(--access-rail-inline));
      margin-block-end: calc(-1 * var(--access-rail-bottom));
      background: var(--workspace-dots);
      mask-image: linear-gradient(to bottom, transparent, black 65%);
      pointer-events: none;
    }
  }
  @media (max-width: 800px) {
    .portal.needs-auth > .masthead {
      padding: 16px 20px;
    }
    .needs-auth .institution-brand {
      grid-template-columns: 64px minmax(0, 1fr);
      align-items: center;
    }
    .needs-auth .institution-brand .college-logo { width: 64px; height: 64px; }
    .needs-auth .institution-brand strong br { display: none; }
  }
}
