/* The Coreplix Eco download page (Pages/Eco): swirling blurred colour behind a glass card, in Eco's red. */
:root {
  --bg: #0d0b0f;
  --text: #ffffff;
  --muted: #b9b3bd;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.22);
  --accent: #e0391e;
  --accent-hover: #f0583d;
  --good: #bbf7d0;
  --bad: #fecaca;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow-x: hidden;
}

.swirl { position: fixed; inset: -20%; z-index: 0; filter: blur(70px); opacity: 0.7; }
.swirl span { position: absolute; border-radius: 50%; animation: drift 26s ease-in-out infinite alternate; }
.swirl span:nth-child(1) { width: 55vmax; height: 55vmax; left: 5%; top: 10%; background: #a3261a; }
.swirl span:nth-child(2) { width: 45vmax; height: 45vmax; right: 0; top: 30%; background: #4a1d7a; animation-duration: 32s; }
.swirl span:nth-child(3) { width: 35vmax; height: 35vmax; left: 35%; bottom: 0; background: #c2601c; animation-duration: 22s; }
@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to   { transform: translate(8vmax, -6vmax) rotate(40deg) scale(1.15); }
}
.dim { position: fixed; inset: 0; z-index: 0; background: radial-gradient(ellipse at center, rgba(13, 11, 15, 0.35), rgba(13, 11, 15, 0.88)); }

.card {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  padding: 36px 32px 28px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: rise 0.7s cubic-bezier(.2, .8, .2, 1) both;
}
.card.wide { max-width: 620px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.brand img { width: 40px; height: 40px; }
.brand span { font-size: 20px; font-weight: 600; }

h1 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 30px; font-weight: 600; margin: 0; }
.lead { color: var(--muted); margin: 6px 0 22px; line-height: 1.5; }

form { margin: 0; }
label { display: block; color: rgba(255, 255, 255, 0.75); font-size: 13px; margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password] {
  display: block; width: 100%; margin-top: 6px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.25); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font: inherit; font-size: 15px;
}
input:hover { border-color: rgba(255, 255, 255, 0.4); }
input:focus { outline: none; border-color: var(--accent-hover); background: rgba(0, 0, 0, 0.35); }
input.code { font-family: "Cascadia Mono", Consolas, Menlo, monospace; font-size: 20px; letter-spacing: 2px; text-transform: uppercase; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 12px; border: 0;
  background: var(--accent); color: #fff; text-decoration: none;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.glass { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); }
.btn.glass:hover { background: rgba(255, 255, 255, 0.18); }
.actions { display: flex; justify-content: flex-end; margin-top: 8px; }

a { color: #ffc4b8; }
a:hover { color: #fff; }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 14px; }

.notice { border-radius: 10px; padding: 10px 12px; margin: 0 0 16px; font-size: 14px; line-height: 1.45; }
.notice.bad { background: rgba(239, 68, 68, 0.2); color: var(--bad); }
.notice.good { background: rgba(34, 197, 94, 0.2); color: var(--good); }

/* Setting up the authenticator: the QR code next to the steps */
.setup { display: flex; gap: 20px; align-items: center; margin-bottom: 16px; }
.setup .qr { flex: none; background: #fff; border-radius: 12px; padding: 6px; }
.setup .qr img { display: block; width: 148px; height: 148px; image-rendering: pixelated; }
.setup ol { margin: 0; padding-left: 18px; line-height: 1.5; font-size: 14px; }
.setup li + li { margin-top: 6px; }
.key { font-family: "Cascadia Mono", Consolas, Menlo, monospace; font-size: 15px; word-break: break-all; margin: 4px 0 16px; user-select: all; }

.codes { columns: 2; font-family: "Cascadia Mono", Consolas, Menlo, monospace; font-size: 16px; line-height: 1.9; text-align: center;
  background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 12px 18px; margin: 0 0 16px; user-select: all; }

/* Downloads */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 6px; }
.platform { border-radius: 16px; padding: 18px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.15); }
.platform.suggested { border-color: rgba(240, 88, 61, 0.7); }
.platform h2 { font-size: 17px; margin: 0 0 4px; }
.platform p { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.45; }
.steps { margin: 22px 0 0; padding: 16px 18px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); font-size: 14px; line-height: 1.55; }
.steps h2 { font-size: 14px; margin: 0 0 8px; }
.steps ol { margin: 0; padding-left: 20px; }
.steps li + li { margin-top: 4px; }
.who { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin-top: 22px; }
.who form button { background: none; border: 0; color: #ffc4b8; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

footer { position: relative; z-index: 1; color: var(--muted); font-size: 12px; margin-top: 22px; }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .swirl span, .card { animation: none; }
}
@media (max-width: 520px) {
  .card { padding: 28px 20px 22px; }
  .platforms, .pair { grid-template-columns: 1fr; }
  .setup { flex-direction: column; align-items: flex-start; }
}
.platform h2 .ver { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 6px; }
