/* Account portal. It adopts the site palette and shape rule but stays in the
   light scheme it was designed for (its panels use pale fills throughout). */
.portal-page {
  color-scheme: light;
  --bg: #f1f5f6;
  --surface: #fafcfc;
  --text: #0f2433;
  --muted: #5e6b70;
  --line: #bfd9e2;
  --line-strong: #6f8188;
  --accent: #c94a1c;
  --on-accent: #ffffff;
  --accent-hover: #b0400f;
  --stratum-1: #e3eef2;
  --stratum-2: #d5e6ec;
  --stratum-3: #c7dfe7;
  --stratum-4: #bfd9e2;
  --deep-text: #2e4757;
  --focus: #0f2433;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.portal-wrap {
  --portal-ink: var(--text);
  --portal-muted: var(--muted);
  --portal-border: var(--line);
  margin: 2.5rem 0 5rem;
  color: var(--portal-ink);
}
.portal-auth-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: #fbfcf8;
  border: 1px solid var(--portal-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 1040px;
  margin: auto;
  box-shadow: 0 20px 65px #163b3510;
}
.portal-story {
  padding: clamp(2rem, 5vw, 4rem);
  background: #0f2433;
  color: #f3f5ed;
  position: relative;
  overflow: hidden;
}
.portal-story .eyebrow,
.portal-story p {
  color: #d5e2d9;
}
.portal-story h2 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin: 2rem 0 1.5rem;
  letter-spacing: -0.04em;
}
.portal-story h2 em {
  color: #c5dfba;
  font-weight: 400;
}
.portal-story p {
  line-height: 1.7;
  max-width: 28rem;
}
.portal-orbit {
  margin: 3rem auto;
  width: 180px;
  height: 180px;
  border: 1px solid #a9c5b85c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  transform: rotate(-20deg);
}
.portal-orbit::after {
  content: "";
  position: absolute;
  inset: 23px -35px;
  border: 1px solid #a9c5b85c;
  border-radius: 50%;
}
.portal-orbit span {
  font-size: 4rem;
  font-family: Georgia, serif;
  transform: rotate(20deg);
}
.portal-orbit i {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #d4dabb;
  border-radius: 50%;
  top: 14px;
  right: 27px;
}
.portal-orbit i:last-child {
  top: auto;
  bottom: 25px;
  right: auto;
  left: 12px;
  background: #89b2a4;
  width: 9px;
  height: 9px;
}
.portal-story-note {
  font-size: 0.85rem;
}
.portal-auth-card {
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.portal-wrap h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}
.portal-wrap h2 {
  font-size: 1.35rem;
}
.portal-story h2 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}
.portal-lead,
.portal-hint {
  color: var(--portal-muted);
  line-height: 1.65;
}
.portal-hint {
  font-size: 0.85rem;
}
.portal-wrap fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.portal-field {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1.2rem 0;
}
.portal-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  min-width: 0;
}
.portal-primary,
.portal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.2rem;
  border: 1px solid #0f2433;
  border-radius: var(--radius);
  background: #0f2433;
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.portal-auth-card .portal-primary {
  width: 100%;
  margin: 0.5rem 0;
}
.portal-secondary {
  background: transparent;
  color: #0f2433;
}
.portal-link {
  font: inherit;
  color: var(--text);
  background: none;
  border: 0;
  padding: 0.6rem 0;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}
.portal-wrap button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.portal-wrap a {
  text-underline-offset: 3px;
}
.portal-wrap :is(input, select, textarea, button, a):focus-visible {
  outline: 3px solid #487b5d;
  outline-offset: 4px;
}
.portal-message:not(:empty) {
  padding: 1rem;
  background: #e7efe7;
  border-left: 3px solid #416e53;
  border-radius: var(--radius);
  line-height: 1.6;
}
.portal-message[data-error="true"] {
  background: #fff0eb;
  border-color: #a64028;
  color: #79331f;
}
.portal-app-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3rem;
}
.portal-sidebar {
  border-right: 1px solid var(--portal-border);
  padding-right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}
.portal-company {
  font-size: 1.25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  margin: 0 0 1rem;
}
.portal-sidebar nav {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.portal-sidebar nav a {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
}
.portal-sidebar nav a[aria-current] {
  background: #e0eadf;
  font-weight: 700;
}
.portal-content {
  min-width: 0;
}
.portal-banner {
  border: 1px solid #ccd8b8;
  background: #f0f3e6;
  border-radius: var(--radius-lg);
  padding: 1rem 1.3rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.portal-product,
.portal-panel {
  background: #fbfcf8;
  padding: 1.5rem;
  border: 1px solid var(--portal-border);
  border-radius: var(--radius-lg);
}
.portal-product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.portal-product h2,
.portal-product p {
  margin: 0.3rem 0;
}
.portal-product p {
  color: var(--portal-muted);
  line-height: 1.6;
}
.portal-product a {
  margin-top: auto;
  padding-top: 0.8rem;
}
.portal-product a.portal-secondary {
  margin-top: 0.3rem;
  text-decoration: none;
}
.portal-list {
  margin: 0.3rem 0;
  padding-left: 1.1rem;
  color: var(--portal-muted);
  line-height: 1.6;
}
.portal-badge {
  background: #e7ede2;
  color: #344d37;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
}
.portal-panel {
  margin: 1rem 0;
  overflow-wrap: anywhere;
}
.portal-panel dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.8rem;
}
.portal-panel dd {
  margin: 0;
}
.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0;
}
@media (max-width: 760px) {
  .portal-auth-layout {
    grid-template-columns: 1fr;
  }
  .portal-story {
    padding: 1.5rem 2rem;
  }
  .portal-story h2 {
    font-size: 2rem;
    margin: 0.6rem 0;
  }
  .portal-story h2 br,
  .portal-orbit,
  .portal-story-note {
    display: none;
  }
  .portal-story p {
    margin: 0.5rem 0;
  }
  .portal-app-layout {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .portal-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--portal-border);
    padding: 0 0 1rem;
    gap: 0.5rem;
  }
  .portal-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .portal-wrap {
    margin-top: 1.5rem;
  }
  .portal-panel dl {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .portal-panel dd {
    margin-bottom: 0.8rem;
  }
}

.portal-danger {
  border-color: #c8a6a0;
}
.portal-danger button {
  color: #812f26;
  border-color: #b58b84;
}
.portal-panel form {
  max-width: 32rem;
}

/* Minecraft hosting workspace */
/* Expanded display type is too wide for the narrow story panel. */
.portal-story h2 {
  font-stretch: 104%;
}
