#portalHeader[hidden],
#portalLayout[hidden],
#accessScreen[hidden] {
  display: none;
}

body:has(#accessScreen:not([hidden])) {
  background: #edf2f6;
}

#accessScreen {
  min-height: calc(100vh - 34px);
  max-width: none;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 72px);
  background: #edf2f6;
}

.access-card {
  width: min(100%, 960px);
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  background: #fff;
  border: 1px solid #dce4ec;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 48px #10294217;
}

.access-brand,
.access-form {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
}

.access-brand {
  background: #142d43;
  color: #fff;
  text-align: left;
}

.access-brand-content {
  max-width: 290px;
}

.techrj-logo {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 2px 7px rgb(0 0 0 / 28%);
}

.techrj-logo span {
  color: #ff5b63;
}

.access-logo {
  font-size: 2.25rem;
}

.access-wordmark {
  margin-top: 0.4rem;
  color: #dbe6f0;
  font-size: 0.95rem;
  font-weight: 650;
}

.access-brand h2 {
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 2rem 0 0;
}

.access-brand p {
  color: #d1deea;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0.65rem 0 0;
}

.access-form {
  justify-items: center;
  overflow-wrap: anywhere;
}

.access-form-content {
  width: min(100%, 360px);
}

.access-form h1 {
  margin: 0 0 1.5rem;
}

.access-form form {
  display: grid;
  gap: 16px;
  margin: 0 0 20px;
}

.access-form label {
  display: grid;
  gap: 6px;
}

.access-form input,
.access-form form button {
  width: 100%;
  min-height: 44px;
}

.access-error {
  color: #9f1d29;
  margin: 0;
}

.access-error:empty {
  display: none;
}

.unit-grants fieldset {
  margin: 0 0 12px;
  border: 1px solid #dce4ec;
  border-radius: 10px;
}

.invite-link {
  width: 100%;
}

@media (max-width: 700px) {

  #accessScreen {
    min-height: 0;
    place-items: start center;
    padding: 16px;
  }

  .access-card {
    min-height: 0;
    max-width: 460px;
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .access-brand,
  .access-form {
    padding: 24px;
  }

  .access-logo {
    font-size: 1.875rem;
  }

  .access-brand h2 {
    margin-top: 1rem;
  }

  .access-brand p {
    margin-top: 0.5rem;
  }

  .access-form h1 {
    margin-bottom: 1.15rem;
    font-size: 1.55rem;
  }

  .access-form input {
    font-size: 1rem;
  }
}
