/* VendaMenu • Login WEB 4.1
 * Folha exclusiva de /login.php. Não altera cadastro, dashboard ou o APK.
 * Os mesmos elementos HTML são usados no navegador e no Android WebView.
 */
.vm-login-web {
  --login-bg: #071426;
  --login-panel: #0c1b30;
  --login-input: #14253d;
  --login-border: #2d425f;
  --login-text: #f8fafc;
  --login-muted: #adc0d6;
  --login-primary: #ff791b;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--login-text);
  background: radial-gradient(ellipse at 0 0, #2e1c1b 0, transparent 42%),
              radial-gradient(ellipse at 100% 100%, #132445 0, transparent 42%), #06101e;
  font: 400 16px/1.5 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-wrap: break-word;
}
.vm-login-web *, .vm-login-web *::before, .vm-login-web *::after { box-sizing: border-box; }
.vm-login-web button, .vm-login-web input { font: inherit; }
.vm-login-web button, .vm-login-web a, .vm-login-web input { -webkit-tap-highlight-color: transparent; }
.vm-login-web a { text-underline-offset: 4px; }
.vm-login-web :where(a,button,input):focus-visible { outline: 3px solid #ffb472; outline-offset: 4px; }
.vm-login-web .vm-login-icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.vm-login-web .vm-auth-shell {
  width: min(1160px, calc(100% - 48px));
  min-height: min(760px, calc(100vh - 48px));
  min-height: min(760px, calc(100dvh - 48px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  border: 1px solid #29405c;
  border-radius: 28px;
  overflow: hidden;
  background: var(--login-bg);
  box-shadow: 0 28px 90px #0005;
}
.vm-login-web .vm-auth-brand {
  position: relative; isolation: isolate; min-width: 0; padding: 36px;
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(155deg,#ff780b 0%,#f15d18 47%,#ad4088 110%);
}
.vm-login-web .vm-auth-brand::before {
  content: ""; position: absolute; z-index: -1; width: 460px; height: 460px;
  top: -260px; right: -240px; border-radius: 50%; background: #ffffff12;
}
.vm-login-web .vm-auth-brand::after {
  content: ""; position: absolute; z-index: -1; width: 360px; height: 360px;
  bottom: -260px; left: -160px; border-radius: 50%; border: 1px solid #ffffff38;
}
.vm-login-web .vm-auth-brand-top { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.vm-login-web .vm-auth-logo { display: inline-flex; min-width: 0; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.vm-login-web .vm-auth-logo-mark {
  display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 14px; border: 1px solid #ffffff30; overflow: hidden; background: #0a1221;
}
.vm-login-web .vm-auth-logo-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.vm-login-web .vm-auth-logo-copy { display: flex; min-width: 0; flex-direction: column; }
.vm-login-web .vm-auth-logo-copy strong { font-size: 22px; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.vm-login-web .vm-auth-logo-copy small { margin-top: 3px; font-size: 12px; color: #ffffffd9; }
.vm-login-web .vm-auth-live {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px;
  border: 1px solid #ffffff4f; border-radius: 100px; font-size: 11px; font-weight: 650;
}
.vm-login-web .vm-auth-live i { width: 7px; height: 7px; border-radius: 50%; background: #c3ffdc; }
.vm-login-web .vm-auth-brand-main { margin: auto 0; padding: 40px 0 30px; }
.vm-login-web .vm-auth-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; }
.vm-login-web .vm-auth-kicker .vm-login-icon { width: 16px; height: 16px; }
.vm-login-web .vm-auth-brand h1 { margin: 20px 0 0; font-size: clamp(44px,4.6vw,60px); line-height: 1.05; letter-spacing: -.055em; font-weight: 850; color: #fff; }
.vm-login-web .vm-auth-brand p { margin: 22px 0 0; color: #fffffff0; font-size: 15px; line-height: 1.7; }
.vm-login-web .vm-auth-benefits { display: grid; gap: 12px; margin-top: 28px; }
.vm-login-web .vm-auth-benefit { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #ffffff30; border-radius: 16px; background: #ffffff0d; }
.vm-login-web .vm-auth-benefit-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: #ffffff21; }
.vm-login-web .vm-auth-benefit strong { display: block; font-size: 13px; font-weight: 750; }
.vm-login-web .vm-auth-benefit div>span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.5; color: #ffffffe0; }
.vm-login-web .vm-auth-brand-foot { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11px; color: #ffffffe0; }
.vm-login-web .vm-auth-brand-foot>span { display: inline-flex; align-items: center; gap: 6px; }
.vm-login-web .vm-auth-brand-foot .vm-login-icon { width: 14px; height: 14px; }
.vm-login-web .vm-auth-main { min-width: 0; display: flex; align-items: center; justify-content: center; padding: 48px; background: linear-gradient(180deg,#0d1d34,#09172a); }
.vm-login-web .vm-auth-form-wrap { width: 100%; max-width: 448px; min-width: 0; }
.vm-login-web .vm-auth-mobile-brand { display: none; }
.vm-login-web .vm-auth-access-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; margin-bottom: 16px; border: 1px solid #ff984133; border-radius: 100px; background: #ff771210; color: #ffb578; font-size: 11px; letter-spacing: .075em; text-transform: uppercase; font-weight: 750; }
.vm-login-web .vm-auth-access-chip .vm-login-icon { width: 16px; height: 16px; }
.vm-login-web .vm-auth-title { margin: 0; color: var(--login-text); font-size: clamp(30px,3vw,42px); font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
.vm-login-web .vm-auth-subtitle { margin: 14px 0 26px; color: var(--login-muted); font-size: 14px; line-height: 1.6; }
.vm-login-web .vm-auth-field { margin: 0; }
.vm-login-web .vm-auth-password-field { margin-top: 18px; }
.vm-login-web .vm-auth-label { display: block; margin: 0 0 8px; color: #e2ebf7; font-size: 14px; font-weight: 650; }
.vm-login-web .vm-auth-control-wrap { position: relative; }
.vm-login-web .vm-auth-control {
  display: block; width: 100%; min-width: 0; height: 56px; padding: 0 46px;
  border: 1px solid var(--login-border); border-radius: 14px;
  color: var(--login-text); background: var(--login-input);
  font-size: 16px; line-height: normal; font-weight: 400;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.vm-login-web .vm-auth-control::placeholder { color: #9cb0c9; opacity: 1; }
.vm-login-web .vm-auth-control:focus { border-color: #ff9b51; box-shadow: 0 0 0 3px #ff83251f; outline: none; background: #182e49; }
.vm-login-web .vm-auth-leading-icon { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #a0b5ce; pointer-events: none; }
.vm-login-web .vm-auth-control-wrap:focus-within .vm-auth-leading-icon { color: #ffa862; }
.vm-login-web .vm-auth-toggle { display: grid; place-items: center; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #b6c8dc; cursor: pointer; }
.vm-login-web .vm-auth-toggle:hover { background: #ffffff0d; color: #fff; }
.vm-login-web .vm-eye-hidden { display: none; }
.vm-login-web .vm-auth-toggle[aria-pressed="true"] .vm-eye-normal { display: none; }
.vm-login-web .vm-auth-toggle[aria-pressed="true"] .vm-eye-hidden { display: inline-block; }
.vm-login-web .vm-auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 14px 0 18px; }
.vm-login-web .vm-auth-check { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; font-size: 12px; line-height: 1.4; color: var(--login-muted); cursor: pointer; }
.vm-login-web .vm-auth-check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--login-primary); }
.vm-login-web .vm-auth-link { display: inline-flex; align-items: center; min-height: 44px; color: #ffb477; font-size: 13px; font-weight: 650; text-decoration: none; }
.vm-login-web .vm-auth-link:hover { text-decoration: underline; color: #ffd2ab; }
.vm-login-web .vm-auth-create-link { padding: 0 12px; border: 1px solid #2b405c; border-radius: 12px; background: #ffffff05; }
.vm-login-web .vm-auth-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; padding: 14px 18px; color: #1b1008; background: linear-gradient(120deg,#ff811f,#ff983f); border: 0; border-radius: 14px; font-size: 16px; line-height: 1.4; font-weight: 800; box-shadow: 0 10px 28px #ff6b0020; cursor: pointer; transition: filter .18s ease, box-shadow .18s ease; }
.vm-login-web .vm-auth-submit:hover { filter: brightness(1.06); box-shadow: 0 12px 32px #ff6b002b; }
.vm-login-web .vm-auth-submit:disabled { opacity: .7; cursor: wait; }
.vm-login-web .vm-auth-button-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #29140650; border-top-color: #291406; animation: vm-login-spin .7s linear infinite; }
.vm-login-web .vm-auth-secondary { margin-top: 14px; text-align: center; color: var(--login-muted); font-size: 13px; line-height: 1.6; }
.vm-login-web .vm-auth-secondary a { display: inline-flex; align-items: center; min-height: 44px; color: #ffb477; text-decoration: none; font-weight: 700; }
.vm-login-web .vm-auth-secondary a:hover { text-decoration: underline; }
.vm-login-web .vm-auth-secure { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #263b53; border-radius: 14px; background: #ffffff03; }
.vm-login-web .vm-auth-secure-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: #32cf960c; color: #5eebbb; }
.vm-login-web .vm-auth-secure strong { display: block; font-size: 12px; margin: 0 0 4px; font-weight: 700; color: #d6e4f4; }
.vm-login-web .vm-auth-secure div>span { display: block; font-size: 12px; line-height: 1.5; color: #a8bdd5; }
.vm-login-web .vm-auth-version { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #9db0c7; font-size: 11px; }
.vm-login-web .vm-auth-version i { display: block; width: 3px; height: 3px; border-radius: 50%; background: #9db0c7; }
.vm-login-web .vm-auth-alert { display: none; margin-bottom: 20px; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.vm-login-web .vm-auth-alert.show { display: block; }
.vm-login-web .vm-auth-alert.error { color: #ffd2d6; background: #8e304633; border-color: #9d49596b; }
.vm-login-web .vm-auth-alert.success { color: #b9f6db; background: #21c88914; border-color: #39bd7757; }
.vm-login-web .vm-auth-alert.info { color: #cfe3ff; background: #609aff17; border-color: #6e9fd25c; }
@keyframes vm-login-spin { to { transform: rotate(360deg); } }
@media (max-width: 1023px) {
  .vm-login-web .vm-auth-shell { display: block; width: min(570px,calc(100% - 40px)); min-height: 0; margin: 20px auto; border-radius: 24px; }
  .vm-login-web .vm-auth-brand { display: none; }
  .vm-login-web .vm-auth-main { min-height: calc(100vh - 42px); min-height: calc(100dvh - 42px); padding: 32px; }
  .vm-login-web .vm-auth-mobile-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
  .vm-login-web .vm-auth-mobile-brand .vm-auth-logo-copy small { color: #a6bbd3; }
  .vm-login-web .vm-auth-title { font-size: 36px; }
}
@media (max-width: 620px) {
  .vm-login-web { background: #09172a; }
  .vm-login-web .vm-auth-shell { width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .vm-login-web .vm-auth-main { min-height: 100vh; min-height: 100dvh; padding: 28px 22px 24px; padding-top: max(28px,env(safe-area-inset-top)); padding-bottom: max(24px,env(safe-area-inset-bottom)); }
  .vm-login-web .vm-auth-form-wrap { max-width: 440px; }
  .vm-login-web .vm-auth-title { font-size: 32px; }
  .vm-login-web .vm-auth-mobile-brand { margin-bottom: 28px; }
  .vm-login-web .vm-auth-logo-copy strong { font-size: 20px; }
  .vm-login-web .vm-auth-logo-copy small { font-size: 11px; }
  .vm-login-web .vm-auth-logo { gap: 10px; }
  .vm-login-web .vm-auth-logo-mark { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; }
  .vm-login-web .vm-auth-subtitle { margin: 12px 0 24px; font-size: 14px; }
  .vm-login-web .vm-auth-row { gap: 0 12px; }
  .vm-login-web .vm-auth-check { font-size: 13px; }
}
@media (max-width: 360px) {
  .vm-login-web .vm-auth-main { padding-left: 18px; padding-right: 18px; }
  .vm-login-web .vm-auth-mobile-brand { gap: 10px; }
  .vm-login-web .vm-auth-logo-copy small { display: none; }
  .vm-login-web .vm-auth-create-link { font-size: 12px; padding: 0 10px; }
  .vm-login-web .vm-auth-title { font-size: 30px; }
  .vm-login-web .vm-auth-check { font-size: 12px; }
}
/* Teclado aberto ou celular deitado: documento continua rolável, sem centralização
   que corte o topo. Não há altura fixa ou overflow-y:hidden no formulário. */
@media (max-width: 1023px) and (max-height: 540px) {
  .vm-login-web .vm-auth-main { align-items: flex-start; min-height: 100dvh; padding-top: 20px; }
  .vm-login-web .vm-auth-mobile-brand { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .vm-login-web *, .vm-login-web *::before, .vm-login-web *::after { transition: none !important; scroll-behavior: auto !important; }
  .vm-login-web .vm-auth-button-spinner { animation-duration: 1.4s; }
}
/* Mantém a legibilidade também quando o gerenciador de senhas preenche campos. */
.vm-login-web .vm-auth-control:-webkit-autofill {
  -webkit-text-fill-color: var(--login-text);
  caret-color: var(--login-text);
  -webkit-box-shadow: 0 0 0 1000px var(--login-input) inset;
}
