.access-page {
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(12, 33, 57, 0.035), transparent 45%),
    var(--iris-warm-white);
}

.access-header {
  position: relative;
  grid-template-columns: 1fr 1fr;
}

.access-back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
  color: rgba(12, 33, 57, 0.68);
  font-size: 13px;
  font-weight: 600;
}

.access-back:hover,
.access-back:focus-visible {
  color: var(--iris-navy);
}

.access-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.75fr);
  gap: clamp(56px, 8vw, 126px);
  align-items: center;
  width: var(--page);
  min-height: calc(100vh - 148px);
  margin: 0 auto;
  padding: 64px 0 80px;
}

.access-story {
  max-width: 650px;
}

.access-story h1 {
  max-width: 650px;
  margin: 22px 0 26px;
  font-size: clamp(46px, 5.6vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.access-story h1 span {
  color: var(--iris-olive-dark);
}

.access-story > p:not(.eyebrow, .access-principle) {
  max-width: 545px;
  margin: 0;
  color: rgba(12, 33, 57, 0.7);
  font-size: 18px;
  line-height: 1.62;
}

.identity-map {
  display: grid;
  grid-template-columns: 162px 54px minmax(220px, 1fr);
  align-items: center;
  max-width: 560px;
  margin: 54px 0 34px;
}

.identity-node,
.identity-spaces > div {
  border: 1px solid var(--iris-line);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-small);
}

.identity-node {
  padding: 20px;
}

.identity-node span,
.identity-spaces span {
  display: block;
  margin-bottom: 7px;
  color: var(--iris-olive-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.identity-node strong,
.identity-spaces strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.identity-line {
  position: relative;
  height: 1px;
  background: var(--iris-line);
}

.identity-line::after {
  position: absolute;
  top: -4px;
  right: 0;
  width: 7px;
  height: 7px;
  content: "";
  border-top: 1px solid var(--iris-olive-dark);
  border-right: 1px solid var(--iris-olive-dark);
  transform: rotate(45deg);
}

.identity-spaces {
  display: grid;
  gap: 10px;
}

.identity-spaces > div {
  padding: 15px 18px;
}

.access-principle {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0;
  color: rgba(12, 33, 57, 0.66);
  font-size: 13px;
  font-weight: 600;
}

.mini-focus {
  width: 17px;
  height: 17px;
  border: 1px solid var(--iris-navy);
  border-top-color: var(--iris-olive);
}

.access-card {
  width: 100%;
  max-width: 480px;
  justify-self: end;
  padding: clamp(28px, 4vw, 46px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(12, 33, 57, 0.12);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(12, 33, 57, 0.12);
  backdrop-filter: blur(16px);
}

.card-heading {
  display: flex;
  gap: 18px;
  align-items: center;
}

.focus-mark--card {
  width: 48px;
  height: 48px;
}

.card-heading .eyebrow {
  margin-bottom: 5px;
}

.card-heading h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 34px;
  padding: 4px;
  background: rgba(12, 33, 57, 0.055);
  border-radius: 10px;
}

.mode-switch button {
  min-height: 42px;
  padding: 8px 10px;
  color: rgba(12, 33, 57, 0.62);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.mode-switch button[aria-pressed="true"] {
  color: var(--iris-navy);
  background: white;
  box-shadow: 0 2px 10px rgba(12, 33, 57, 0.08);
}

.mode-explanation {
  min-height: 36px;
  margin: 12px 3px 23px;
  color: rgba(12, 33, 57, 0.58);
  font-size: 12px;
  line-height: 1.5;
}

#login-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}

#login-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--iris-navy);
  background: rgba(247, 247, 244, 0.72);
  border: 1px solid rgba(12, 33, 57, 0.17);
  border-radius: 8px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

#login-form input:focus {
  background: white;
  border-color: var(--iris-olive-dark);
  box-shadow: 0 0 0 3px rgba(125, 134, 75, 0.14);
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 19px;
}

.field-label a {
  color: var(--iris-olive-dark);
  font-size: 11px;
  font-weight: 600;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 58px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 12px;
  padding: 6px;
  color: var(--iris-olive-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transform: translateY(-50%);
}

.form-message {
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #893434;
  background: rgba(181, 73, 73, 0.08);
  border-left: 2px solid var(--iris-danger);
  font-size: 12px;
  line-height: 1.45;
}

.access-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  padding: 0 17px;
  color: white;
  background: var(--iris-navy);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.access-submit:hover,
.access-submit:focus-visible {
  background: var(--iris-navy-deep);
}

.access-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.access-footnote {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--iris-line);
  font-size: 12px;
}

.access-footnote > strong {
  font-size: 12px;
}

.access-footnote p {
  margin: 6px 0 11px;
  color: rgba(12, 33, 57, 0.58);
  line-height: 1.5;
}

.access-footnote a {
  color: var(--iris-olive-dark);
  font-weight: 600;
}

.access-footer {
  display: flex;
  justify-content: space-between;
  width: var(--page);
  margin: 0 auto;
  padding: 22px 0 30px;
  color: rgba(12, 33, 57, 0.5);
  border-top: 1px solid var(--iris-line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .access-shell {
    grid-template-columns: 1fr;
    gap: 54px;
    align-items: start;
  }

  .access-story,
  .access-card {
    max-width: 680px;
    justify-self: center;
  }

  .access-card {
    width: min(100%, 520px);
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .access-header {
    height: 66px;
    padding: 0 20px;
  }

  .access-back {
    font-size: 0;
  }

  .access-back span {
    font-size: 20px;
  }

  .access-shell {
    width: min(100% - 32px, 520px);
    padding: 46px 0 58px;
  }

  .access-story h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .access-story > p:not(.eyebrow, .access-principle) {
    font-size: 16px;
  }

  .identity-map {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 40px;
  }

  .identity-line {
    width: 1px;
    height: 22px;
    margin-left: 30px;
  }

  .identity-line::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .access-card {
    padding: 28px 22px;
  }

  .access-footer {
    flex-direction: column;
    gap: 8px;
    width: min(100% - 32px, 520px);
  }
}
