/* Vinnie sign-in page (/login and hivinnie.com), in Vinnie's Vendetta look: white page, black ink, square corners,
   hairlines, Unbounded in capitals for the name, headline and button, Manrope for the rest, Vendetta red used
   sparingly. The masked frog is the one picture. Dark mode follows the computer's setting.
   Text pairs: #0c0c0c on #fff 19:1, #fff on #0c0c0c 19:1, red #c72a22 on #fff 5.6:1 (WCAG AA). */
@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;
  --bg: #f4f4f2; --panel: #ffffff; --ink: #0c0c0c; --soft: #3b3b3b; --line: #0c0c0c; --invert: #ffffff;
  --red: #c72a22; --red-hover: #a8211a;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #000000; --panel: #0c0c0c; --ink: #fafafa; --soft: #cfcfcf; --line: #fafafa; --invert: #0c0c0c; --red: #ff5a4f; --red-hover: #ff7b72; }
}

* { 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(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  border-top: 6px solid var(--red);   /* the Vendetta accent line, as on the app's bar */
}

.vl-wrap {
  min-height: calc(100vh - 6px); min-height: calc(100dvh - 6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  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));
}

.vl-card {
  width: 100%; max-width: 920px;
  display: grid; grid-template-columns: 1fr; align-items: stretch;
  background: var(--panel); border: 1px solid var(--line);
}
@media (min-width: 760px) { .vl-card { grid-template-columns: 1fr 1fr; } }

/* The picture fills its whole column (no empty strip under it when the text runs longer). */
.vl-art { margin: 0; position: relative; overflow: hidden; background: #c65d6a; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .vl-art { aspect-ratio: auto; min-height: 460px; border-bottom: 0; border-right: 1px solid var(--line); } }
.vl-art img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%;
  image-rendering: pixelated; transform-origin: 45% 80%;
  animation: vl-hop 4.8s ease-in-out infinite;
}
/* A little hop now and then. */
@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); }
}

/* One left edge for everything in the text column. */
.vl-body { padding: 28px 24px 32px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; }
@media (min-width: 760px) { .vl-body { padding: 48px 44px; } }

.vl-brand { margin: 0 0 28px; display: flex; align-items: center; gap: 10px; font: 700 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.vl-brand::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--red); }

.vl-kicker { margin: 0 0 10px; font: 700 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.vl h1 { margin: 0 0 14px; font: 700 clamp(30px, 5.2vw, 46px)/1.04 var(--display); text-transform: uppercase; letter-spacing: 0; text-wrap: balance; color: var(--ink); }
.vl-text { margin: 0 0 28px; font-size: 17px; line-height: 1.55; color: var(--soft); max-width: 36ch; }
.vl-text strong { color: var(--ink); font-weight: 800; overflow-wrap: anywhere; }

.vl form { margin: 0; width: 100%; }
.vl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 52px; padding: 14px 22px;
  font: 600 14px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--invert); background: var(--ink); border: 1px solid var(--ink); border-radius: 0;
  text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
@media (min-width: 760px) { .vl-btn { width: auto; } .vl form { width: auto; } }
.vl-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.vl-btn:focus-visible, .vl-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.vl-g { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; background: var(--invert); color: var(--ink); font: 800 12px/1 var(--display); }
.vl-btn:hover .vl-g { background: #fff; color: var(--red); }

.vl-link {
  margin-top: 16px; padding: 6px 0; background: none; border: 0; cursor: pointer;
  font: 700 15px/1.4 var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-align: left;
}
.vl-link:hover { color: var(--red); }
.vl-tip { margin: 18px 0 0; font-size: 14px; line-height: 1.5; color: var(--soft); max-width: 40ch; }
/* The note the desktop and iPhone apps add under the button (sign in with an email code). */
.vl-btn ~ .vl-text, .vl-btn ~ .vl-desktop, .vl-btn ~ .vl-app { margin: 20px 0 0; font-size: 15px; max-width: 40ch; }

.vl-foot { margin: 0; max-width: 920px; text-align: center; font-size: 13px; font-weight: 600; color: var(--soft); }

/* A wrong or switched-off account: the frog hops more slowly. */
.vl-wrong .vl-art img, .vl-denied .vl-art img, .vl-off .vl-art img { animation-duration: 7s; filter: saturate(.8); }

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