/* ==========================================================================
   vc-signin.css — the sign-in pages of valiente.nu.
   The same skeleton as the sign-in page of every product of the Eagle SecOps Suite
   (see EagleDNS/src/EagleDNS.Api/wwwroot/login.css, where it was first written):
   a dark field drawn in code, the name and the mark, and the card.
   Self-contained on purpose: these pages load nothing of the site's own stylesheet.
   ========================================================================== */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  --ink-950: #050d15; --ink-900: #08131f; --ink-800: #0f2334;
  --accent: #4da3ff; --accent-bright: #7ac0ff;
  --text: #e8f0f7; --mute: #93a9bf; --line: rgba(255, 255, 255, 0.14);
  --err: #ff8f7d;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--text); background: var(--ink-950);
  font: 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[hidden] { display: none !important; }

#field { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.veil {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 50%, rgba(5, 13, 21, 0.72), transparent 70%),
    radial-gradient(1100px 600px at 12% 8%, rgba(77, 163, 255, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(5, 13, 21, 0.25), rgba(5, 13, 21, 0.78));
}

.stage {
  position: relative; min-height: 100%; min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 420px);
  align-items: center; gap: clamp(28px, 6vw, 96px);
  max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 56px) 96px;
}

.brand img { display: block; width: auto; height: auto; max-width: 260px; max-height: 84px; margin: 0 0 30px; }
.brand a { display: inline-block; }
.brand h1 {
  margin: 0; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 650;
  background: linear-gradient(96deg, #fff 30%, var(--accent-bright) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { margin: 16px 0 0; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--mute); max-width: 30ch; }
.family {
  display: inline-flex; align-items: center; gap: 10px; margin: 34px 0 0;
  font: 500 0.7rem/1 "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(77, 163, 255, 0.32); background: rgba(77, 163, 255, 0.07);
  padding: 9px 14px; border-radius: 100px;
}
.family .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.18); }

.card {
  background: rgba(11, 26, 41, 0.72); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(77, 163, 255, 0.06) inset;
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
}
.card h2 { margin: 0 0 22px; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; color: #fff; }

.field { margin: 0 0 16px; }
.field label {
  display: block; margin: 0 0 7px;
  font: 500 0.66rem/1 "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute);
}
.field input {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--text);
  background: rgba(5, 13, 21, 0.6); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.field input::placeholder { color: #5d708a; }
.field input:focus {
  outline: 0; border-color: var(--accent); background: rgba(5, 13, 21, 0.85);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.2);
}
#code { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }

.step { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.note { margin: 0 0 12px; font-size: 0.86rem; line-height: 1.5; color: var(--mute); }
.note.key { text-align: center; word-break: break-all; }
.note.key b { color: var(--text); font-weight: 600; }
.qr { display: flex; justify-content: center; margin: 4px 0 12px; }
.qr img, .qr canvas { background: #fff; padding: 8px; border-radius: 8px; }

.error { min-height: 1.3em; margin: 2px 0 12px; font-size: 0.88rem; color: var(--err); }

.btn {
  width: 100%; padding: 14px 16px; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 600; color: #04121f;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  transition: filter 0.16s, transform 0.08s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn[disabled] { filter: saturate(0.4) brightness(0.8); cursor: progress; }

footer {
  position: fixed; left: 0; right: 0; bottom: 0; padding: 18px clamp(20px, 5vw, 56px);
  font: 500 0.66rem/1 "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase;
  color: #5d708a; pointer-events: none;
}
.noscript { position: fixed; left: 0; right: 0; top: 0; margin: 0; padding: 12px; text-align: center; background: #7a2a1e; color: #fff; }

@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 30px; padding-bottom: 72px; }
  .brand { text-align: center; }
  .brand img { margin: 0 auto 20px; max-height: 60px; }
  .tagline { margin-left: auto; margin-right: auto; }
  .family { margin-top: 20px; }
  .card { width: 100%; max-width: 440px; margin: 0 auto; }
  .veil { background: linear-gradient(180deg, rgba(5, 13, 21, 0.45), rgba(5, 13, 21, 0.86)); }
}
@media (max-height: 620px) and (min-width: 861px) { .brand img { margin-bottom: 16px; } .family { margin-top: 18px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- what these pages have beyond a form ---- */
.card.wide { }
.card h2 + .muted { margin-top: -12px; }
.muted { margin: 0 0 16px; font-size: 0.9rem; line-height: 1.55; color: var(--mute); }
.muted strong { color: var(--text); font-weight: 600; }
.small { font-size: 0.84rem; }
.card a { color: var(--accent-bright); text-decoration: none; }
.card a:hover { text-decoration: underline; }
.after { margin: 18px 0 0; }
.alert { margin: 0 0 14px; padding: 10px 12px; border-radius: 9px; font-size: 0.88rem; color: #ffd9d2; background: rgba(255, 143, 125, 0.1); border: 1px solid rgba(255, 143, 125, 0.35); }
kbd { font: 500 0.82rem "IBM Plex Mono", ui-monospace, Menlo, monospace; color: var(--text); word-break: break-all; background: rgba(5, 13, 21, 0.6); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.qr { background: transparent; }
.qr img, .qr canvas { display: block; }
a.btn { display: block; text-align: center; text-decoration: none; }
a.btn:hover { text-decoration: none; }

/* The products with a sign-in of their own, under the form. */
.rule { display: flex; align-items: center; gap: 10px; margin: 24px 0 10px; font: 500 0.62rem/1 "IBM Plex Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase; color: #6f8399; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.apps { display: grid; gap: 3px; }
.card a.app {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px;
  border: 1px solid transparent; color: var(--text); font-size: 0.9rem;
  transition: border-color 0.16s, background 0.16s;
}
.card a.app span { flex: 1; min-width: 0; }
.card a.app svg { width: 13px; height: 13px; min-width: 13px; flex: none; color: var(--mute); }
.card a.app:hover, .card a.app:focus-visible { text-decoration: none; border-color: rgba(77, 163, 255, 0.55); background: linear-gradient(180deg, rgba(77, 163, 255, 0.12), rgba(77, 163, 255, 0.04)); outline: 0; }
.card a.app:hover svg { color: var(--accent); }

footer { pointer-events: auto; }
footer a { color: #6f8399; text-decoration: none; }
footer a:hover { color: var(--text); }
