/* Vinnie sign-in page (/login). Colours come from the masked-frog art: raspberry backdrop,
   navy mask, yellow eyes, teal frog. Square corners and chunky pixel shadows to match the dithered art.
   Text pairs: cream on navy 14:1, navy on yellow 13:1, navy on cream 14:1 (WCAG AA and well beyond). */
@font-face { font-family: "Unbounded"; src: url("/login/fonts/unbounded.woff2") format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/login/fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  color-scheme: light;
  --berry: #8f2b4a; --berry-2: #c65d6a; --dot: #b4475f;
  --navy: #13203a; --navy-2: #1d2d4d;
  --cream: #fff4dc; --yellow: #ffe27a; --yellow-2: #ffd447;
  --teal: #3f9a97; --teal-2: #7cc3be;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --berry: #5e1a31; --berry-2: #8f2b4a; --dot: #7a2742; }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body.vl {
  min-height: 100vh; min-height: 100dvh;
  font: 400 16px/1.6 var(--body); color: var(--cream); -webkit-font-smoothing: antialiased;
  /* The art's diagonal light, plus a dither of little dots like its pixel shading. */
  background:
    radial-gradient(circle, var(--dot) 1.2px, transparent 1.6px) 0 0 / 8px 8px,
    linear-gradient(160deg, var(--berry) 0%, var(--berry) 38%, var(--berry-2) 100%);
  background-attachment: fixed;
}

.vl-wrap {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  gap: 20px;
}

.vl-card {
  width: 100%; max-width: 880px;
  display: grid; grid-template-columns: 1fr; background: var(--navy);
  border: 4px solid var(--navy); box-shadow: 10px 10px 0 rgba(19, 32, 58, .55);
}
@media (min-width: 760px) { .vl-card { grid-template-columns: 1.05fr 1fr; } }

.vl-art { margin: 0; position: relative; overflow: hidden; background: var(--berry-2); aspect-ratio: 1 / 1; }
@media (max-width: 759px) { .vl-art { aspect-ratio: 16 / 10; } }
.vl-art img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%;
  image-rendering: pixelated; transform-origin: 40% 80%;
  animation: vl-hop 4.8s ease-in-out infinite;
}
/* A little hop now and then, like he's about to leap off the card. */
@keyframes vl-hop {
  0%, 70%, 100% { transform: translateY(0) scale(1.02); }
  76% { transform: translateY(2%) scale(1.04, 1.0); }
  84% { transform: translateY(-4%) scale(1.0, 1.05); }
  92% { transform: translateY(0) scale(1.03, 1.01); }
}

.vl-body { padding: 28px 24px 28px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 760px) { .vl-body { padding: 44px 40px; } }

.vl-brand {
  margin: 0 0 18px; font: 900 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow);
  display: flex; align-items: center; gap: 10px;
}
/* Two little yellow "eyes" in front of the name. */
.vl-brand::before {
  content: ""; width: 26px; height: 10px; flex: none;
  background: radial-gradient(ellipse 5px 4px at 6px 5px, var(--yellow) 98%, transparent) , radial-gradient(ellipse 5px 4px at 20px 5px, var(--yellow) 98%, transparent);
  animation: vl-blink 5s steps(1) infinite;
}
@keyframes vl-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.15); } }

.vl-kicker { margin: 0 0 6px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-2); }
.vl h1 { margin: 0 0 12px; font: 800 clamp(30px, 7vw, 44px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0; text-wrap: balance; }
.vl-text { margin: 0 0 24px; font-size: 17px; max-width: 34ch; }
.vl-text strong { color: var(--yellow); font-weight: 800; overflow-wrap: anywhere; }

.vl form { margin: 0; }
.vl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 52px; padding: 12px 20px;
  font: 800 17px/1.2 var(--body); color: var(--navy); text-decoration: none; cursor: pointer;
  background: var(--yellow); border: 3px solid var(--yellow); border-radius: 0;
  box-shadow: 5px 5px 0 var(--teal); transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
@media (min-width: 760px) { .vl-btn { width: auto; align-self: flex-start; } }
.vl-btn:hover { background: var(--yellow-2); }
.vl-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--teal); }
.vl-btn:focus-visible, .vl-link:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
.vl-g {
  display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none;
  background: var(--navy); color: var(--yellow); font: 900 14px/1 var(--display);
}

.vl-link {
  margin-top: 16px; padding: 6px 0; background: none; border: 0; cursor: pointer;
  font: 700 15px/1.4 var(--body); color: var(--cream); text-decoration: underline; text-underline-offset: 3px; text-align: left;
}
.vl-link:hover { color: var(--yellow); }
.vl-tip { margin: 18px 0 0; font-size: 14px; line-height: 1.5; color: var(--cream); opacity: .85; max-width: 40ch; }

.vl-foot { margin: 0; max-width: 880px; padding: 6px 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--cream); background: var(--navy); }

/* A wrong or switched-off account: the frog looks a bit put out (a slower, smaller hop). */
.vl-wrong .vl-art img, .vl-denied .vl-art img, .vl-off .vl-art img { animation-duration: 7s; filter: saturate(.85); }

@media (prefers-reduced-motion: reduce) {
  .vl-art img, .vl-brand::before { animation: none; }
  .vl-btn { transition: none; }
}
