/* The Remote Desktop portal: an enterprise sign-in, as every remote-access
   product has, in the company's colours. */

.portal { padding: 56px 0 72px; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 56px; align-items: start; }
@media (max-width: 880px) { .portal-grid { grid-template-columns: 1fr; gap: 32px; } }

.steps { list-style: none; counter-reset: step; margin: 28px 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.steps li::before {
  content: counter(step);
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font: 600 12px/1 var(--mono);
  border: 1px solid var(--line); background: var(--surface);
}
.steps li.current { color: var(--text); font-weight: 600; }
.steps li.current::before { border-color: var(--accent); color: var(--accent); }
.steps li.done::before { content: "✓"; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.portal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(10, 20, 30, 0.08);
  display: flex; flex-direction: column; gap: 10px;
}
.portal-card[hidden] { display: none; }
.portal-card h2 { font-size: 22px; }
.portal-card p { margin: 0; }
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-top div { display: flex; flex-direction: column; }
.portal-card label { font-size: 13px; font-weight: 600; margin-top: 6px; }
.portal-card input {
  font: 16px/1.3 var(--sans);
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
.portal-card input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.btn.wide { width: 100%; justify-content: center; margin-top: 6px; }
.center { text-align: center; }
.error { color: var(--red); font-size: 14px; min-height: 1.2em; }

.session-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 6px 0 8px; font-size: 14px; }
.session-facts dt { color: var(--muted); font: 600 11px/1.8 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.session-facts dd { margin: 0; font-family: var(--mono); }

kbd { font: 600 12px/1 var(--mono); padding: 2px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--bg); }

/* When a browser has no Picture-in-Picture, the client sits in the page. */
.inline-client { width: 372px; max-width: 100%; height: 776px; margin-top: 20px; }

/* The perimeter feed round the tab, while a session is open. The page sits
   inside the band, as the desktop sits inside it on the wallpaper. */
body.ring-on { padding: var(--ring-band, 48px); }
body.ring-on .masthead { top: var(--ring-band, 48px); } /* sticks inside the band, not under it */
.ring-tab { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.ring-side { position: fixed; overflow: hidden; background: #000; }
.ring-strip { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; }
.ring-strip canvas { display: block; image-rendering: pixelated; }
.inline-client iframe { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 8px; display: block; }
