@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('/fonts/hanken-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/hanken-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url('/fonts/hanken-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700 900; font-display: swap; src: url('/fonts/hanken-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; src: url('/fonts/instrument-serif-italic.woff2') format('woff2'); }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #0d0e0f;
  color: #f4f1ea;
  font-family:
    'Hanken Grotesk',
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
}
.portal-shell {
  max-width: 1220px;
  padding: 32px 40px;
  margin: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #36383a;
  padding-bottom: 24px;
}
.portal-brand {
  text-decoration: none;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.1;
}
.portal-brand span:not(.wm) {
  display: block;
  font-size: 10px;
  letter-spacing: 0.34em;
  color: #c9ac6f;
  margin-top: 8px;
}
.portal-badge {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 30px;
  background: #323436;
  color: #ded5c0;
}
.portal-intro {
  padding: 70px 0 34px;
  max-width: 700px;
}
.portal-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ccb276;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.09;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  font-weight: 600;
}
p {
  color: #b9c5cf;
  font-size: 15px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 14px 0 10px;
}
.portal-intro > p {
  font-size: 18px;
  max-width: 620px;
}
.portal-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.portal-card {
  border: 1px solid #414345;
  background: linear-gradient(135deg, #292b2d, #1f2123);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.portal-card > p {
  flex: 1;
  margin-bottom: 30px;
}
.portal-number {
  color: #c4a463;
  font-size: 13px;
  letter-spacing: 0.12em;
}
.portal-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #e2e8ec;
  color: #1f2123;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 13px 17px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}
.portal-button:hover {
  background: white;
}
.portal-button.gold {
  background: #c9a65e;
  color: #1d1f21;
}
.portal-button.gold:hover {
  background: #e5c888;
}
.portal-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.portal-session {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #27292b;
  border: 1px solid #494b4d;
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.portal-session > div {
  flex: 1;
}
.portal-session p {
  margin: 4px 0;
  font-size: 13px;
}
.portal-link {
  border: 0;
  background: transparent;
  color: #d2dfeb;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
.portal-note {
  font-size: 12px;
  line-height: 1.7;
  color: #9ea4aa;
  margin: 25px 0;
}
.portal-footer {
  margin-top: auto;
  padding-top: 42px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #9ea4aa;
}
.portal-footer span {
  margin-right: auto;
}
.portal-back {
  display: inline-block;
  color: #c9d8e4;
  font-size: 13px;
  margin-bottom: 40px;
  text-decoration: none;
}
.portal-login {
  max-width: 470px;
  width: 100%;
  margin: 48px auto 10px;
}
.portal-login h1 {
  font-size: 40px;
}
.portal-login-form {
  padding: 26px;
  background: #f5f7f8;
  color: #27292b;
  border-radius: 14px;
  margin-top: 28px;
}
.portal-login-form label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 18px;
}
.portal-login-form input {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid #bfccd5;
  border-radius: 7px;
  margin-top: 8px;
  font: inherit;
  background: white;
  color: #202224;
}
.portal-login-form .portal-button {
  width: 100%;
  justify-content: center;
}
.portal-error {
  padding: 12px;
  border-radius: 7px;
  background: #ffe6e0;
  color: #852d25;
  font-size: 13px;
}
.portal-error[hidden] {
  display: none;
}
:focus-visible {
  outline: 3px solid #c9a65e;
  outline-offset: 4px;
}
@media (max-width: 760px) {
  .portal-shell {
    padding: 24px 20px;
  }
  .portal-cards {
    grid-template-columns: 1fr;
  }
  .portal-intro {
    padding: 44px 0 25px;
  }
  .portal-card {
    padding: 22px;
  }
  .portal-card > p {
    margin-bottom: 20px;
  }
  .portal-session {
    flex-wrap: wrap;
  }
  .portal-session > div {
    flex-basis: 100%;
  }
  .portal-login {
    margin-top: 30px;
  }
  .portal-login h1 {
    font-size: 32px;
  }
  .portal-footer {
    gap: 14px;
  }
  .portal-footer span {
    width: 100%;
  }
}
@media (min-width: 761px) and (max-height: 850px) {
  .portal-shell {
    padding-top: 24px;
  }
  .portal-header {
    padding-bottom: 20px;
  }
  .portal-intro {
    padding: 26px 0 12px;
  }
  .portal-intro h1 {
    font-size: 48px;
    margin-bottom: 16px;
  }
  .portal-intro > p {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .portal-session {
    padding: 16px 22px;
    margin-bottom: 18px;
  }
  .portal-card {
    padding: 22px;
  }
  .portal-card > p {
    margin-bottom: 20px;
  }
}

@media (min-width: 1100px) {
  .portal-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
a.portal-badge {
  text-decoration: none;
}
.portal-password {
  display: block;
}
.portal-password summary {
  cursor: pointer;
}
.portal-password form {
  margin-top: 16px;
}

/* PΛRΛGON wordmark, matching the website */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.portal-brand {
  font-weight: 500;
  letter-spacing: 0.3em;
}
.portal-brand span:not(.wm):not(.sr-only) {
  color: #9ea4aa;
  letter-spacing: 0.42em;
  font-weight: 600;
}
.wm b {
  color: #c9a65e;
  font-weight: inherit;
}
