/* COPIADO de _glass-ui/src (visual compartilhado PDV/CRM/site) em 2026-10-14 - para atualizar, copie de novo da fonte; ajustes do CriarWhats ficam em glass-cw.css. */
/*
 * Glass UI — tela de login (PDV e CRM, mesma marcação e mesmo visual).
 * Usa só as variáveis --g-* de glass-tokens.css. Marcação:
 *   <html class="gl-html" data-bs-theme="dark"><body class="gl-body">
 *     <main class="gl-wrap"><div class="gl-card"> .gl-brand .gl-title .gl-sub .gl-alert form.gl-form .gl-field ...
 */

html.gl-html { background: var(--g-bg, #07070b); color-scheme: dark; }

body.gl-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
    font-family: var(--g-font, 'Manrope', 'Segoe UI', system-ui, sans-serif);
    color: var(--g-text, #f5f2ea);
    background-color: var(--g-bg, #07070b);
    background-image: var(--g-bg-image);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
body.gl-body *, body.gl-body *::before, body.gl-body *::after { box-sizing: border-box; }

.gl-wrap { width: 100%; max-width: 420px; }

.gl-card {
    background: var(--g-surface, rgba(255, 255, 255, .055));
    -webkit-backdrop-filter: blur(var(--g-blur, 18px)) saturate(150%);
    backdrop-filter: blur(var(--g-blur, 18px)) saturate(150%);
    border: 1px solid var(--g-border, rgba(255, 255, 255, .1));
    border-radius: 26px;
    box-shadow: var(--g-shadow, 0 10px 34px rgba(0, 0, 0, .42)), inset 0 1px 0 var(--g-hl, rgba(255, 255, 255, .1));
    padding: 30px 28px 26px;
}

/* ------------------------------------------------------------ marca */
.gl-brand { text-align: center; margin-bottom: 22px; }
.gl-logo {
    width: 68px; height: 68px; margin: 0 auto 14px;
    display: grid; place-items: center;
    border-radius: 20px;
    background: var(--g-accent-glass, linear-gradient(160deg, rgba(65, 105, 225, .34), rgba(65, 105, 225, .07)));
    border: 1px solid rgba(65, 105, 225, .45);
    box-shadow: var(--g-accent-glow, 0 10px 28px rgba(65, 105, 225, .22));
    overflow: hidden;
}
.gl-logo img { width: 78%; height: 78%; object-fit: contain; display: block; }
.gl-system {
    display: inline-block; margin-bottom: 6px;
    font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: var(--g-accent-2, #7f9dff);
}
.gl-title { margin: 0; font-size: 1.7rem; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--g-text); }
.gl-sub { margin: 8px 0 0; font-size: .92rem; line-height: 1.45; color: var(--g-muted, #9b968c); }

/* ------------------------------------------------------------ campos */
.gl-form { margin: 0; }
.gl-field { margin: 0 0 14px; }
.gl-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.gl-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--g-muted); }
.gl-link { font-size: 12.5px; font-weight: 700; color: var(--g-accent-2, #7f9dff); text-decoration: none; }
.gl-link:hover { text-decoration: underline; color: var(--g-accent-2); }

.gl-input-wrap { position: relative; }
.gl-input-wrap > .gl-ico {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    width: 19px; height: 19px; color: var(--g-muted); pointer-events: none; transition: color .15s;
}
.gl-input-wrap:focus-within > .gl-ico { color: var(--g-accent-2); }
.gl-input {
    width: 100%; min-height: 52px; padding: 12px 46px 12px 46px;
    border-radius: var(--g-radius-md, 14px);
    border: 1px solid var(--g-border);
    background: var(--g-input-bg, rgba(0, 0, 0, .38));
    color: var(--g-text);
    font: inherit; font-size: 16px; /* 16px: o iPhone não dá zoom */
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.gl-input::placeholder { color: var(--g-muted); opacity: .75; }
.gl-input:focus { border-color: var(--g-accent); box-shadow: 0 0 0 4px rgba(65, 105, 225, .18); }
.gl-input:-webkit-autofill,
.gl-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--g-text);
    -webkit-box-shadow: 0 0 0 1000px #14141d inset;
    caret-color: var(--g-text);
}
.gl-eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--g-muted);
    display: grid; place-items: center; cursor: pointer;
}
.gl-eye:hover { color: var(--g-text); background: var(--g-surface-2, rgba(255, 255, 255, .09)); }
.gl-eye svg { width: 20px; height: 20px; }
.gl-eye .gl-eye-off { display: none; }
.gl-eye.on .gl-eye-on { display: none; }
.gl-eye.on .gl-eye-off { display: block; }

.gl-check { display: flex; align-items: center; gap: 9px; margin: 2px 0 16px; font-size: 13.5px; color: var(--g-muted); cursor: pointer; user-select: none; }
.gl-check input { width: 18px; height: 18px; accent-color: var(--g-accent); margin: 0; }

/* ------------------------------------------------------------ botões */
.gl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; min-height: 54px; padding: 10px 18px;
    border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-size: 16px; font-weight: 800; letter-spacing: .01em; text-decoration: none; cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.gl-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.gl-btn:active { transform: scale(.98); }
.gl-btn-primary { background: var(--g-accent-grad, linear-gradient(135deg, #6f94ff, #4169e1 52%, #2b49c9)); color: var(--g-accent-ink, #fff); box-shadow: 0 8px 22px rgba(65, 105, 225, .38); }
.gl-btn-primary:hover { filter: brightness(1.07); box-shadow: var(--g-accent-glow); color: var(--g-accent-ink, #fff); }
.gl-btn-primary[disabled] { opacity: .65; cursor: wait; }
.gl-btn-ghost { background: var(--g-surface-2, rgba(255, 255, 255, .09)); border-color: var(--g-border); color: var(--g-text); font-weight: 700; font-size: 15px; min-height: 50px; }
.gl-btn-ghost:hover { border-color: var(--g-border-strong); background: var(--g-surface-2); color: var(--g-text); }
.gl-btn-ok { background: rgba(34, 197, 94, .16); border-color: rgba(34, 197, 94, .45); color: #86efac; font-size: 14px; min-height: 46px; }
.gl-btn-dark { background: var(--g-surface-2); border-color: var(--g-border); color: var(--g-text); font-size: 14px; min-height: 46px; }

/* ------------------------------------------------------------ avisos */
.gl-alert {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 0 0 16px; padding: 12px 14px;
    border-radius: var(--g-radius-sm, 10px); border: 1px solid;
    font-size: .92rem; line-height: 1.45; font-weight: 600;
}
.gl-alert svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 1px; }
.gl-alert-error { background: rgba(239, 68, 68, .14); border-color: rgba(239, 68, 68, .5); color: #fecaca; }
.gl-alert-ok { background: rgba(34, 197, 94, .13); border-color: rgba(34, 197, 94, .45); color: #bbf7d0; }

/* ------------------------------------------------------------ QR (entrar com o celular) */
.gl-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--g-muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gl-sep::before, .gl-sep::after { content: ''; flex: 1; height: 1px; background: var(--g-border); }
.gl-qr-pane { display: none; margin-top: 14px; text-align: center; }
.gl-qr-pane canvas { max-width: 100%; background: #fff; padding: 8px; border-radius: 16px; box-shadow: var(--g-shadow-sm); }
.gl-qr-msg { margin-top: 10px; font-size: .85rem; line-height: 1.45; color: var(--g-muted); }
.gl-qr-msg b { color: var(--g-text); }
.gl-qr-cancel { margin-top: 6px; border: 0; background: none; color: var(--g-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.gl-qr-cancel:hover { color: var(--g-text); }

/* ------------------------------------------------------------ rodapé / demo */
.gl-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--g-muted); }
.gl-foot a { color: var(--g-accent-2); font-weight: 700; text-decoration: none; }
.gl-foot a:hover { text-decoration: underline; }
.gl-foot .gl-wa { display: inline-flex; align-items: center; gap: 7px; }
.gl-foot .gl-wa svg { width: 17px; height: 17px; }
.gl-demo { margin: 0 0 18px; padding: 12px; border: 1px dashed var(--g-border-strong); border-radius: var(--g-radius-md); font-size: 13px; color: var(--g-muted); }
.gl-demo-row { display: flex; gap: 8px; margin-top: 8px; }
.gl-version { margin-top: 14px; text-align: center; font-size: 11px; letter-spacing: .08em; color: var(--g-muted); opacity: .7; }

@media (max-width: 480px) {
    body.gl-body { align-items: start; padding-top: max(28px, env(safe-area-inset-top)); }
    .gl-card { padding: 24px 20px 22px; border-radius: 22px; }
    .gl-title { font-size: 1.5rem; }
}
@media (max-height: 640px) and (min-width: 481px) {
    body.gl-body { align-items: start; }
}
@media (prefers-reduced-motion: reduce) { .gl-btn, .gl-input { transition: none; } }