/* SeProvedor — tela de login. Mesma linguagem visual do início (cena escura com luzes, cartões de vidro). */
* { box-sizing: border-box; }
:root { --l-azul: #2563eb; --l-azul-forte: #1d4ed8; --l-texto: #0f172a; --l-texto-2: #334155; --l-suave: #64748b; --l-borda: #dbe1ea; }
html, body { height: 100%; }
body.login { margin: 0; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr); font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--l-texto); background: #fff; -webkit-font-smoothing: antialiased; }
.login-sprite { position: absolute; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cena ---------- */
.login-cena { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: 40px 56px; color: #dbe5ff;
  background: radial-gradient(120% 120% at 0% 0%, #1e3a8a 0%, #172554 42%, #0b1437 100%); }
.login-cena::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 36px 36px; mask-image: radial-gradient(ellipse at 60% 55%, #000 15%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 60% 55%, #000 15%, transparent 72%); }
.login-luz { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.login-luz span { position: absolute; border-radius: 50%; filter: blur(70px); animation: login-flutuar 18s ease-in-out infinite alternate; }
.login-luz span:nth-child(1) { width: 460px; height: 460px; background: #3b82f6; opacity: .45; top: -180px; right: -80px; }
.login-luz span:nth-child(2) { width: 380px; height: 380px; background: #8b5cf6; opacity: .4; bottom: -170px; left: -60px; animation-duration: 22s; animation-delay: -7s; }
.login-luz span:nth-child(3) { width: 260px; height: 260px; background: #06b6d4; opacity: .28; top: 45%; left: 45%; animation-duration: 26s; }
@keyframes login-flutuar { from { transform: translate(0, 0) scale(1); } to { transform: translate(50px, 30px) scale(1.18); } }
.login-topo { min-height: 48px; display: flex; align-items: center; }
.login-logo { max-width: 220px; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.login-logo.invertida, .login-logo-movel.invertida { filter: brightness(0) invert(1); }
.login-chamada { margin-top: auto; max-width: 520px; animation: login-subir .8s cubic-bezier(.2, .7, .2, 1) both; }
.login-selo { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: #c7d5ff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.login-pulso { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.login-pulso::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #4ade80; animation: login-pulso 1.8s ease-out infinite; }
@keyframes login-pulso { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.login-chamada h1 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.15; font-weight: 800; letter-spacing: -.035em; color: #fff; margin: 18px 0 14px; }
.login-chamada h1 em { font-style: normal; background: linear-gradient(90deg, #93c5fd, #c4b5fd 60%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-chamada p { font-size: 1rem; line-height: 1.6; color: #b6c4ec; margin: 0; max-width: 460px; }

/* Vitrine de cartões flutuantes */
.login-vitrine { position: relative; height: 270px; margin: 36px 0 auto; max-width: 560px; }
.login-cartao { position: absolute; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); animation: login-subir .9s cubic-bezier(.2, .7, .2, 1) both, login-boiar 7s ease-in-out infinite; }
.login-cartao.c1 { width: 300px; left: 0; top: 10px; animation-delay: .15s, 0s; }
.login-cartao.c2 { width: 250px; right: 0; top: 0; animation-delay: .3s, -2.3s; }
.login-cartao.c3 { width: 270px; left: 32%; top: 150px; animation-delay: .45s, -4.6s; }
@keyframes login-boiar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes login-subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.login-cartao-topo { display: flex; align-items: center; gap: 10px; }
.login-cartao-topo strong { display: block; font-size: .875rem; color: #fff; font-weight: 600; }
.login-cartao-topo small { font-size: .75rem; color: #9fb0de; }
.login-cartao-icone { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.125rem; flex: none; }
.login-cartao-icone.verde { background: rgba(74, 222, 128, .16); color: #4ade80; }
.login-cartao-icone.roxo { background: rgba(196, 181, 253, .16); color: #c4b5fd; }
.login-cartao-icone.azul { background: rgba(147, 197, 253, .16); color: #93c5fd; }
.login-vivo { margin-left: auto; font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4ade80; padding: 3px 7px; border-radius: 999px; background: rgba(74, 222, 128, .12); }
.login-onda { display: block; width: 100%; height: 56px; margin-top: 12px; overflow: visible; }
.login-onda .traco { stroke: #4ade80; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-dasharray: 420; stroke-dashoffset: 420; animation: login-desenhar 2.4s cubic-bezier(.2, .7, .2, 1) .6s forwards; filter: drop-shadow(0 0 6px rgba(74, 222, 128, .6)); }
.login-onda .area { fill: rgba(74, 222, 128, .12); stroke: none; opacity: 0; animation: login-aparecer 1.2s ease 1.6s forwards; }
@keyframes login-desenhar { to { stroke-dashoffset: 0; } }
@keyframes login-aparecer { to { opacity: 1; } }
.login-barras { display: flex; align-items: flex-end; gap: 7px; height: 64px; margin-top: 14px; }
.login-barras span { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #c4b5fd, #7c3aed); transform-origin: bottom; animation: login-barra 1s cubic-bezier(.2, .7, .2, 1) both; }
.login-barras span:nth-child(1) { height: 38%; animation-delay: .7s; } .login-barras span:nth-child(2) { height: 55%; animation-delay: .78s; }
.login-barras span:nth-child(3) { height: 46%; animation-delay: .86s; } .login-barras span:nth-child(4) { height: 70%; animation-delay: .94s; }
.login-barras span:nth-child(5) { height: 62%; animation-delay: 1.02s; } .login-barras span:nth-child(6) { height: 84%; animation-delay: 1.1s; }
.login-barras span:nth-child(7) { height: 100%; animation-delay: 1.18s; background: linear-gradient(180deg, #67e8f9, #2563eb); }
@keyframes login-barra { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.login-checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.login-checks li { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: #c7d5ff; opacity: 0; animation: login-subir .6s ease forwards; }
.login-checks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none; background: rgba(74, 222, 128, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.login-checks li:nth-child(1) { animation-delay: 1.2s; } .login-checks li:nth-child(2) { animation-delay: 1.4s; } .login-checks li:nth-child(3) { animation-delay: 1.6s; }
.login-rodape { font-size: .75rem; color: #7f90c4; margin: 0; }

/* ---------- Formulário ---------- */
.login-area { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 28px;
  background: radial-gradient(600px 400px at 100% 0%, #eef3ff, transparent 70%), #fff; }
.login-caixa { width: 100%; max-width: 390px; animation: login-subir .7s cubic-bezier(.2, .7, .2, 1) both .1s; }
.login-logo-movel { display: none; }
.login-caixa h2 { font-size: 1.875rem; font-weight: 800; letter-spacing: -.035em; margin: 0 0 8px; color: var(--l-texto); }
.login-sub { color: var(--l-suave); font-size: .9375rem; margin: 0 0 30px; line-height: 1.5; }
.login-erro { display: flex; align-items: flex-start; gap: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 14px; border-radius: 12px; font-size: .875rem; margin-bottom: 20px; animation: login-tremer .45s cubic-bezier(.36, .07, .19, .97) both; }
.login-erro svg { font-size: 1.125rem; flex: none; margin-top: 1px; }
@keyframes login-tremer { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.login-campo { margin-bottom: 18px; }
.login-campo label { display: block; font-size: .8125rem; font-weight: 600; color: var(--l-texto-2); margin-bottom: 7px; }
.login-entrada { position: relative; display: flex; align-items: center; height: 50px; border: 1.5px solid var(--l-borda); border-radius: 13px; background: #f8fafc; transition: border-color .2s, box-shadow .2s, background .2s; }
.login-entrada:hover { border-color: #c5cfdd; }
.login-entrada:focus-within { border-color: var(--l-azul); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.login-entrada.invalida { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .1); animation: login-tremer .4s both; }
.login-entrada > svg { position: absolute; left: 15px; font-size: 1.15rem; color: #94a3b8; transition: color .2s; pointer-events: none; }
.login-entrada:focus-within > svg { color: var(--l-azul); }
.login-entrada input { flex: 1; min-width: 0; height: 100%; padding: 0 14px 0 44px; border: 0; background: transparent; color: var(--l-texto); font: inherit; font-size: .9375rem; outline: none; border-radius: inherit; }
.login-entrada input::placeholder { color: #a7b1c2; }
.login-entrada input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--l-texto); }
.login-olho { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 5px; border: 0; border-radius: 10px; background: none; color: #94a3b8; font-size: 1.15rem; cursor: pointer; transition: background .15s, color .15s; }
.login-olho:hover { background: #eef2f7; color: var(--l-texto-2); }
.login-olho:focus-visible { outline: 2px solid rgba(37, 99, 235, .45); }
.login-olho .ocultar, .login-olho.ativo .ver { display: none; } .login-olho.ativo .ocultar { display: block; }
.login-caps { margin: 7px 0 0; font-size: .75rem; font-weight: 600; color: #b45309; }
.login-lembrar { display: flex; align-items: center; gap: 10px; margin: 4px 0 24px; font-size: .875rem; color: #475569; cursor: pointer; user-select: none; }
.login-lembrar input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.login-chave { position: relative; width: 36px; height: 20px; border-radius: 999px; background: #d6dde8; transition: background .2s; flex: none; }
.login-chave::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.login-lembrar input:checked + .login-chave { background: var(--l-azul); }
.login-lembrar input:checked + .login-chave::after { transform: translateX(16px); }
.login-lembrar input:focus-visible + .login-chave { box-shadow: 0 0 0 3px rgba(37, 99, 235, .3); }
.login-botao { position: relative; overflow: hidden; width: 100%; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 13px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .9375rem; color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb 45%, #4f46e5);
  box-shadow: 0 12px 24px -10px rgba(37, 99, 235, .65), inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .2s, box-shadow .2s, filter .2s; }
.login-botao::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s; }
.login-botao:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(37, 99, 235, .75), inset 0 1px 0 rgba(255, 255, 255, .2); }
.login-botao:hover::before { transform: translateX(100%); }
.login-botao:active { transform: translateY(0); filter: brightness(.96); }
.login-botao:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 3px; }
.login-botao .seta { font-size: 1.1rem; transition: transform .2s; } .login-botao:hover .seta { transform: translateX(3px); }
.login-botao .girando { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: login-girar .7s linear infinite; }
.login-botao.enviando { cursor: progress; filter: saturate(.85); } .login-botao.enviando .seta { display: none; } .login-botao.enviando .girando { display: inline-block; }
@keyframes login-girar { to { transform: rotate(360deg); } }
.login-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 26px; font-size: .75rem; color: var(--l-suave); }
.login-licenca, .login-seguro { display: inline-flex; align-items: center; gap: 7px; }
.login-licenca span { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.login-licenca.ok span { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.login-seguro svg { font-size: .9375rem; color: #16a34a; }
.login-rodape-movel { display: none; }

/* ---------- Telas menores ---------- */
@media (max-width: 1100px) { .login-vitrine { display: none; } .login-chamada { margin-bottom: auto; } body.login { grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr); } .login-cena { padding: 36px 40px; } }
@media (max-width: 820px) {
  body.login { display: block; background: radial-gradient(120% 60% at 0% 0%, #1e3a8a 0%, #172554 45%, #0b1437 100%) fixed; }
  .login-cena { display: none; }
  .login-area { min-height: 100vh; padding: 28px 16px; background: transparent; }
  .login-caixa { max-width: 420px; padding: 30px 24px 26px; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
  .login-logo-movel { display: block; max-width: 170px; max-height: 48px; width: auto; height: auto; object-fit: contain; margin: -78px auto 34px; }
  .login-caixa { margin-top: 64px; }
  .login-caixa h2 { font-size: 1.5rem; text-align: center; } .login-sub { text-align: center; margin-bottom: 24px; }
  .login-rodape-movel { display: block; margin: 22px 0 0; font-size: .75rem; color: #8193c8; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .login-onda .traco { stroke-dashoffset: 0; } .login-onda .area, .login-checks li { opacity: 1; }
}
