/* Veylo login wall (veylo-gate.js). Scoped to #veylo-gate. */
html.veylo-locked, html.veylo-locked body { background:#0d100f !important; overflow:hidden !important; }
html.veylo-locked body > *:not(#veylo-gate) { visibility:hidden !important; }

#veylo-gate {
  position:fixed; inset:0; z-index:2147483647;
  display:flex; align-items:center; justify-content:center;
  padding:max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing:border-box; overflow-y:auto; -webkit-overflow-scrolling:touch;
  background:#0d100f; color:#eff3ea;
  font:15px/1.5 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  text-align:left; letter-spacing:normal; visibility:visible !important;
}
#veylo-gate *, #veylo-gate *::before, #veylo-gate *::after { box-sizing:border-box; }
#veylo-gate [hidden] { display:none !important; }

#veylo-gate .vg-glow {
  position:fixed; inset:0; pointer-events:none;
  background:
    radial-gradient(600px 380px at 15% 10%, rgba(196,243,102,.10), transparent 70%),
    radial-gradient(520px 360px at 90% 95%, rgba(126,174,57,.09), transparent 70%);
}

#veylo-gate .vg-card {
  position:relative; width:100%; max-width:400px; margin:auto;
  padding:32px 28px 26px; border-radius:18px;
  background:#161d17; border:1px solid rgba(196,243,102,.16);
  box-shadow:0 22px 80px rgba(0,0,0,.55);
}

#veylo-gate .vg-brand { display:flex; align-items:center; gap:11px; margin:0 0 22px; font-size:28px; font-weight:750; letter-spacing:-1.2px; color:#eff3ea; }
#veylo-gate .vg-brand img { width:44px; height:44px; display:block; }
#veylo-gate .vg-title { margin:0 0 4px; font-size:22px; font-weight:700; line-height:1.25; color:#eff3ea; letter-spacing:-.3px; }
#veylo-gate .vg-sub { margin:0 0 20px; color:#b7c1b4; font-size:14px; }

#veylo-gate .vg-view { display:flex; flex-direction:column; }
#veylo-gate .vg-form { gap:6px; }
#veylo-gate .vg-field-label { margin-top:8px; font-size:13px; font-weight:600; color:#d7ded4; }

#veylo-gate input {
  width:100%; min-height:46px; margin:0; padding:11px 14px;
  border-radius:10px; border:1px solid rgba(255,255,255,.14);
  background:#0f1410; color:#eff3ea; font:inherit; font-size:16px;
  outline:none; box-shadow:none; -webkit-appearance:none; appearance:none;
  transition:border-color .15s, box-shadow .15s;
}
#veylo-gate input:focus { border-color:#c4f366; box-shadow:0 0 0 3px rgba(196,243,102,.18); }
#veylo-gate input[aria-invalid="true"] { border-color:#ff8a7a; }
#veylo-gate input[readonly] { opacity:.7; }
#veylo-gate input:-webkit-autofill { -webkit-text-fill-color:#eff3ea; -webkit-box-shadow:0 0 0 40px #0f1410 inset; caret-color:#eff3ea; }

#veylo-gate .vg-pass { position:relative; display:flex; }
#veylo-gate .vg-pass input { padding-right:86px; }
#veylo-gate .vg-toggle {
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  min-height:34px; padding:0 12px; border-radius:8px; border:0;
  background:rgba(255,255,255,.06); color:#d7ded4; font:inherit; font-size:13px; cursor:pointer;
}
#veylo-gate .vg-toggle:hover { background:rgba(255,255,255,.11); }

#veylo-gate .vg-submit {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  width:100%; min-height:48px; margin-top:18px; padding:0 18px;
  border:0; border-radius:11px; background:#c4f366; color:#11150d;
  font:inherit; font-size:15px; font-weight:700; cursor:pointer;
  transition:filter .15s, transform .1s;
}
#veylo-gate .vg-submit:hover { filter:brightness(1.06); }
#veylo-gate .vg-submit:active { transform:translateY(1px); }
#veylo-gate .vg-submit:disabled { cursor:progress; filter:saturate(.6) brightness(.85); }
#veylo-gate .vg-submit .vg-spin { display:none; border-color:rgba(17,21,13,.3); border-top-color:#11150d; }
#veylo-gate .vg-submit.is-busy .vg-spin { display:inline-block; }

#veylo-gate .vg-link {
  margin:12px auto 0; padding:8px 10px; border:0; background:none;
  color:#c4f366; font:inherit; font-size:14px; text-decoration:underline; cursor:pointer;
}

#veylo-gate button:focus-visible, #veylo-gate .vg-toggle:focus-visible { outline:2px solid #c4f366; outline-offset:3px; }

#veylo-gate .vg-error {
  margin:0 0 6px; padding:10px 12px; border-radius:10px;
  background:rgba(255,107,87,.10); border:1px solid rgba(255,138,122,.35);
  color:#ffc2b8; font-size:14px;
}
#veylo-gate .vg-note {
  margin:18px 0 0; padding-top:14px; border-top:1px solid rgba(255,255,255,.07);
  color:#90998f; font-size:12.5px; line-height:1.5;
}

#veylo-gate .vg-status { flex-direction:row; align-items:center; gap:12px; min-height:60px; color:#d6f7a0; font-size:15px; }
#veylo-gate .vg-offline h2 { margin:0 0 6px; font-size:17px; color:#eff3ea; }
#veylo-gate .vg-offline p { margin:0; color:#b7c1b4; font-size:14px; }

#veylo-gate .vg-spin {
  display:inline-block; width:20px; height:20px; flex:none;
  border:2.5px solid rgba(196,243,102,.25); border-top-color:#c4f366; border-radius:50%;
  animation:vg-rot .8s linear infinite;
}
@keyframes vg-rot { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #veylo-gate .vg-spin { animation-duration:2.4s; } }

@media (max-width:480px) {
  #veylo-gate { align-items:flex-start; }
  #veylo-gate .vg-card { margin:24px auto; padding:26px 18px 20px; border-radius:16px; }
  #veylo-gate .vg-brand { font-size:24px; margin-bottom:18px; }
  #veylo-gate .vg-title { font-size:20px; }
}
@media (max-height:520px) { #veylo-gate { align-items:flex-start; } }
