:root {
  --ink: #151719;
  --ink-2: #202326;
  --ink-3: #303438;
  --muted: #64686b;
  --paper: #f7f5ee;
  --paper-2: #eeece5;
  --white: #ffffff;
  --yellow: #f5c400;
  --yellow-deep: #dbaa00;
  --font: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body.portal {
  font-family: var(--font);
  color: var(--ink);
  background: #141518;
  -webkit-font-smoothing: antialiased;
}

.portal a { color: inherit; }
.portal img { display: block; max-width: 100%; }

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.stage-photo {
  position: fixed;
  inset: 0;
  background: #1a1c1e url("../img/portal-atrium.jpg") center / cover no-repeat;
  filter: grayscale(1) contrast(1.08);
}

.stage-veil {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, .78) 0%, rgba(8, 9, 11, .52) 38%, rgba(8, 9, 11, .22) 62%, rgba(8, 9, 11, .36) 100%),
    linear-gradient(180deg, rgba(8, 9, 11, .22), transparent 30%, rgba(8, 9, 11, .62) 100%);
  pointer-events: none;
}

.lang {
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-decoration: none;
}

.lang a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
}

.lang a:hover,
.lang a.is-on { color: #fff; }

.lang i {
  width: 1px;
  height: 11px;
  background: rgba(255,255,255,.35);
}

.frame {
  position: relative;
  z-index: 1;
  flex: 1;
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 72px;
  align-items: center;
  padding: 48px 0 24px;
}

.story {
  color: #fff;
  max-width: 460px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 28px rgba(0, 0, 0, .35);
}

.story .kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.story h2 {
  margin: 12px 0 28px;
  font-size: clamp(26px, 2.7vw, 34px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 750;
}

.steps {
  list-style: none;
  display: grid;
  gap: 18px;
}

.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.steps i {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(0, 0, 0, .28);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
  text-shadow: none;
}

.steps strong {
  display: block;
  font-size: 16px;
  font-weight: 750;
  padding-top: 3px;
}

.steps span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.92);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.apps {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.apps img { height: 38px; width: auto; }

.card {
  background: var(--paper);
  padding: 32px 32px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.brand {
  display: block;
  width: max-content;
  margin: 0 0 28px;
  text-decoration: none;
}

.brand img { height: 26px; width: auto; }

.brand span {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.notice,
#error .alert,
#success .alert,
.alert {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 0;
  border-left: 3px solid var(--yellow);
  background: rgba(245, 196, 0, .16);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  border-radius: 0;
}

#error .alert { border-left-color: #b42318; background: rgba(180, 35, 24, .1); }
#success .alert { border-left-color: #067647; background: rgba(6, 118, 71, .1); }
#error .alert h4,
#success .alert h4 { font-size: 13px; margin: 0 0 4px; }
#error .alert .close,
#success .alert .close { display: none; }

.card h1 {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 750;
  margin-bottom: 20px;
}

.lead {
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.fields { display: grid; gap: 12px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label.field {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card input[type="email"],
.card input[type="text"],
.card input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  box-shadow: none;
  border-radius: 0;
}

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 44px; }

.pass-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.card input:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-3);
}

.check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--ink);
}

.check a { color: var(--ink); text-decoration: underline; }

.btn,
.card button.btn,
.card .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 0;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
}

.btn:hover,
.card .btn-primary:hover { background: var(--yellow-deep); color: var(--ink); }

.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.alt {
  margin-top: 12px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

.alt + .alt { margin-top: 6px; }

.alt a {
  color: var(--ink);
  font-weight: 700;
}

.site-foot {
  position: relative;
  z-index: 1;
  padding: 10px 24px 22px;
  text-align: center;
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}

.g-recaptcha { margin: 4px 0 6px; transform-origin: left top; }

.oauth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.oauth-row a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: capitalize;
}

body.portal.license-open {
  overflow: hidden;
}

body.portal .portal-license-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(8, 9, 11, .62);
}

body.portal .portal-license-modal.is-open {
  display: flex;
}

body.portal .portal-license-panel {
  width: min(640px, 100%);
  max-height: calc(100vh - 64px);
  margin: auto;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

body.portal .portal-license-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(21, 23, 25, .1);
}

body.portal .portal-license-title {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.02em;
}

body.portal .portal-license-x {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

body.portal .portal-license-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 20px;
  overflow: hidden;
}

body.portal .license-text {
  display: block;
  width: 100%;
  height: min(52vh, 420px);
  margin: 0;
  padding: 12px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

body.portal .portal-license-foot {
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(21, 23, 25, .1);
}

@media (max-width: 960px) {
  .frame {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 168px 0 0;
    align-items: stretch;
  }
  .story { display: none; }
  .stage-photo { position: absolute; inset: 0 0 auto; height: 168px; }
  .stage-veil {
    position: absolute;
    inset: 0 0 auto;
    height: 168px;
    background: linear-gradient(180deg, transparent 30%, rgba(247,245,238,1));
  }
  .card { padding: 28px 22px 16px; box-shadow: none; }
  .lang { top: 16px; right: 16px; }
  .site-foot {
    background: var(--paper);
    color: var(--muted);
    text-shadow: none;
    padding: 4px 22px 20px;
  }
}
