/* Managed Windows server page. Shared parts live in landing.css and vps.css. */

/* Hero: a remote desktop window on the server */

.lp .w-rdp { margin: 12px 0 0; }

.lp .w-rdp-window {
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lp .w-rdp-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: #f1edf0;
  font-size: 0.8rem;
  color: var(--mute);
}

.lp .w-rdp-dots { display: flex; gap: 6px; }
.lp .w-rdp-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }

/* The server's desktop */
.lp .w-rdp-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #3a1f43 0%, var(--plum) 55%, var(--plum-deep) 100%);
  overflow: hidden;
}

.lp .w-rdp-icons {
  position: absolute;
  top: 16px;
  inset-inline-start: 14px;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 6px;
}

.lp .w-rdp-icons li {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 72px;
  font-size: 0.7rem;
  color: #fff;
  text-align: center;
}

.lp .w-rdp-icons i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.1rem;
}

/* An app running on it */
.lp .w-rdp-app {
  position: absolute;
  bottom: 52px;
  inset-inline-end: 6%;
  width: 64%;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.5);
}

.lp .w-rdp-app-title { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; }
.lp .w-rdp-app-title i { color: var(--magenta); }

.lp .w-rdp-app-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--mute);
}

.lp .w-rdp-live {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(139, 195, 74, 0.25);
}

/* In a right-to-left Windows the start button is on the right and the clock on the left */
.lp .w-rdp-taskbar {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 14px;
  background: rgba(26, 11, 30, 0.85);
  font-size: 0.8rem;
  color: #fff;
}

.lp .w-rdp-taskbar .fab { font-size: 1rem; color: var(--rose); }
.lp .w-rdp-clock { font-variant-numeric: tabular-nums; }

/* The connection screen; hidden for good, and only played once by windows-vps.js */
.lp .w-rdp-connect {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: var(--plum-deep);
  color: #fff;
  visibility: hidden;
  opacity: 0;
}

.lp .w-rdp-connect .fab { font-size: 2.2rem; color: var(--rose); }
.lp .w-rdp-connect strong { font-size: 0.95rem; }

.lp .w-rdp-progress {
  width: 160px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.lp .w-rdp-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--rose);
  transform-origin: right center;
}

.lp .w-rdp figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

@media (max-width: 900px) {
  .lp .w-rdp { width: min(100%, 460px); margin-inline: auto; }
}

@media (max-width: 560px) {
  .lp .w-rdp-icons li { width: 58px; }
  .lp .w-rdp-icons i { width: 34px; height: 34px; font-size: 0.95rem; }
  .lp .w-rdp-app { width: 62%; padding: 12px; }
}
