/* AMFin · telas de acesso: fundo grafite com brilhos vermelhos, linhas luminosas e cartão de vidro.
   Sempre escura (vitrine da marca), independente do tema escolhido no painel. Inspirada no login do GenSec. */
body.entrada { --ease: cubic-bezier(.16, 1, .3, 1); --deep: #0E1013; --red: #E5484D; --red-2: #FF7A80;
  margin: 0; min-height: 100vh; min-height: 100dvh; color: #ECEEF1; overflow-x: hidden; color-scheme: dark;
  background: radial-gradient(55% 50% at 100% 0%, rgba(229, 72, 77, .20) 0%, transparent 70%), radial-gradient(50% 45% at 0% 100%, rgba(229, 72, 77, .10) 0%, transparent 70%),
    radial-gradient(45% 55% at 28% 50%, rgba(140, 40, 46, .14) 0%, transparent 70%), #0E1013; }

.lg-fundo { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0; animation: lgAparece 1.2s ease .1s forwards; }
.lg-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 160, 165, .10) 1px, transparent 1.3px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(50% 55% at 18% 48%, #000 0%, transparent 75%); mask-image: radial-gradient(50% 55% at 18% 48%, #000 0%, transparent 75%); }
.lg-linhas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lg-linhas path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lg-linhas .forte { stroke-width: 1.8; filter: url(#lg-brilho); }
.lg-linhas .fraca { stroke: rgba(255, 110, 118, .14); stroke-width: 1.2; }

.lg-page { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 560px);
  align-items: center; gap: clamp(24px, 4vw, 72px); max-width: 1440px; margin: 0 auto; padding: clamp(24px, 6vh, 64px) clamp(16px, 4vw, 56px); }

/* lado esquerdo: proposta de valor */
.lg-pitch { max-width: 560px; justify-self: center; animation: lgSobe 1s var(--ease) .2s both; }
.lg-pitch .lg-logo { display: block; height: clamp(64px, 7vw, 104px); width: auto; }
@media (max-width: 980px) { .lg-pitch .lg-logo { margin: 0 auto; height: 64px; } }
.lg-pitch .tag-line { margin-top: 18px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.lg-pitch .tag-line span { color: rgba(236, 238, 241, .55); }
.lg-pitch ul { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.lg-pitch li { display: flex; gap: 12px; align-items: flex-start; color: rgba(236, 238, 241, .72); font-size: 15px; line-height: 1.5; }
.lg-pitch li .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; flex: none; background: rgba(229, 72, 77, .14); color: var(--red-2); stroke-width: 1.8; }
.lg-pitch li b { color: #fff; display: block; }

/* cartão */
.lg-card { width: 100%; max-width: 560px; justify-self: center; position: relative; padding: clamp(28px, 3.4vw, 52px) clamp(22px, 3.4vw, 52px) 28px;
  border-radius: 26px; background: linear-gradient(160deg, rgba(28, 31, 36, .9), rgba(18, 20, 24, .92)); border: 1px solid rgba(255, 140, 146, .14);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); animation: lgSobe .9s var(--ease) .35s both; }
.lg-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 110, 118, .55), transparent 35%, transparent 70%, rgba(255, 110, 118, .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; }
.lg-card .hello { font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--red-2); }
.lg-card h1 { margin: 12px 0 8px; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.lg-card .sub { color: rgba(220, 224, 229, .66); font-size: 15.5px; line-height: 1.55; }
.lg-card form { margin-top: 26px; display: grid; gap: 16px; }
.lg-card form > * { animation: lgSobe .8s var(--ease) both; }
.lg-card form > :nth-child(2) { animation-delay: .5s; } .lg-card form > :nth-child(3) { animation-delay: .58s; } .lg-card form > :nth-child(4) { animation-delay: .66s; }
.lg-card form > :nth-child(n+5) { animation-delay: .74s; }

.lg-field { position: relative; height: 64px; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 190, 194, .13);
  display: flex; align-items: center; transition: border-color .2s, box-shadow .25s, background .2s; }
.lg-field:hover { border-color: rgba(255, 190, 194, .3); }
.lg-field:focus-within { border-color: var(--red); background: rgba(229, 72, 77, .06); box-shadow: 0 0 0 4px rgba(229, 72, 77, .14), 0 10px 30px -14px rgba(229, 72, 77, .5); }
.lg-field.bad { border-color: #ff6b81; box-shadow: 0 0 0 4px rgba(255, 107, 129, .14); animation: lgTreme .4s ease; }
.lg-field > .icon { width: 21px; height: 21px; margin: 0 4px 0 18px; stroke: rgba(225, 228, 232, .55); stroke-width: 1.7; transition: stroke .2s; }
.lg-field:focus-within > .icon { stroke: var(--red-2); }
.lg-field .box { position: relative; flex: 1; height: 100%; min-width: 0; }
.lg-field input { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 600;
  color: #fff; padding: 24px 14px 6px 12px; letter-spacing: .01em; }
.lg-field label { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 15px; color: rgba(225, 228, 232, .58); pointer-events: none;
  transition: all .18s var(--ease); font-weight: 500; }
.lg-field:focus-within label, .lg-field input:not(:placeholder-shown) + label, .lg-field input:-webkit-autofill + label { top: 17px; font-size: 11.5px; font-weight: 700; color: var(--red-2); letter-spacing: .02em; }
.lg-field input::placeholder { color: transparent; transition: color .2s; }
.lg-field:focus-within input::placeholder { color: rgba(225, 228, 232, .32); }
.lg-field input:-webkit-autofill, .lg-field input:-webkit-autofill:hover, .lg-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1a1d22 inset; -webkit-text-fill-color: #fff; caret-color: #fff; transition: background-color 99999s ease 0s; }
.lg-field .eye { width: 42px; height: 42px; margin-right: 10px; border: 0; background: transparent; border-radius: 11px; display: grid; place-items: center; cursor: pointer; color: rgba(225, 228, 232, .62); flex: none; }
.lg-field .eye:hover { background: rgba(255, 255, 255, .06); color: var(--red-2); }
.lg-field .eye .icon { width: 20px; height: 20px; stroke-width: 1.7; }
.lg-field .eye .off { display: none; } .lg-field .eye[aria-pressed="true"] .on { display: none; } .lg-field .eye[aria-pressed="true"] .off { display: block; }
.lg-err { color: #ffb3c0; font-size: 13px; margin-top: -8px; padding-left: 4px; }
.lg-hint { color: rgba(225, 228, 232, .5); font-size: 12.5px; margin-top: -8px; padding-left: 4px; }
.caps { display: none; font-size: 12.5px; color: #f2c55c; margin-top: -8px; padding-left: 4px; }
.caps.show { display: block; }
.lg-row { display: flex; justify-content: flex-end; font-size: 13px; margin-top: -4px; }
.lg-row a, .lg-links a { color: var(--red-2); font-weight: 700; }

.lg-btn { position: relative; height: 62px; margin-top: 6px; border: 0; border-radius: 14px; color: #fff; font: inherit; font-size: 18px; font-weight: 800; letter-spacing: .01em; width: 100%;
  background: linear-gradient(120deg, #F0545A 0%, #C8202B 50%, #8E1219 100%); box-shadow: 0 16px 34px -14px rgba(229, 72, 77, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; overflow: hidden; transition: transform .2s var(--ease), box-shadow .25s, filter .2s; text-decoration: none !important; }
.lg-btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent); transform: skewX(-20deg); }
.lg-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 22px 40px -14px rgba(229, 72, 77, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.lg-btn:hover::before { animation: lgBrilho .9s ease; }
.lg-btn:focus-visible { outline: 3px solid var(--red-2); outline-offset: 3px; }
.lg-btn .icon { width: 20px; height: 20px; stroke-width: 2.2; transition: transform .25s var(--ease); }
.lg-btn:hover .icon { transform: translateX(5px); }
.lg-btn[aria-busy="true"] { pointer-events: none; }
.lg-btn[aria-busy="true"] .icon { display: none; }
.lg-btn[aria-busy="true"]::after { content: ""; width: 22px; height: 22px; border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: lgGira .7s linear infinite; }

.lg-card .alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; margin-top: 18px; border: 1px solid; }
.lg-card .alert .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.lg-card .alert-error { background: rgba(255, 107, 129, .12); color: #ffb3c0; border-color: rgba(255, 107, 129, .25); }
.lg-card .alert-success { background: rgba(61, 187, 126, .12); color: #9ee8c3; border-color: rgba(61, 187, 126, .28); }

.lg-links { text-align: center; font-size: 14px; color: rgba(225, 228, 232, .62); margin-top: 18px; }
.lg-foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 190, 194, .14); display: flex; align-items: center; justify-content: center; gap: 14px;
  color: rgba(225, 228, 232, .58); font-size: 12.5px; flex-wrap: wrap; }
.lg-foot .lock { display: inline-flex; align-items: center; gap: 7px; }
.lg-foot .lock .icon { width: 15px; height: 15px; }
.lg-foot img { height: 22px; width: auto; }

/* saída depois do login: a cor cobre a tela a partir do botão, com o ícone ao centro (como no GenSec) */
.ok-overlay { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #5a141a 0%, #2a0e11 35%, var(--deep) 75%);
  clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); transition: clip-path .8s var(--ease); }
.ok-overlay.go { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.ok-overlay img { width: 112px; height: 112px; opacity: 0; transform: scale(.7); transition: opacity .35s .35s, transform .6s var(--ease) .35s;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .55)); }
.ok-overlay.go img { opacity: 1; transform: none; }
.lg-card form > .alert[data-login-err] { margin-top: -4px; animation: lgSobe .3s ease both; }

@keyframes lgAparece { to { opacity: 1; } }
@keyframes lgSobe { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lgBrilho { from { left: -60%; } to { left: 130%; } }
@keyframes lgGira { to { transform: rotate(360deg); } }
@keyframes lgTreme { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

@media (max-width: 980px) {
  .lg-page { grid-template-columns: 1fr; justify-items: center; }
  .lg-pitch { text-align: center; } .lg-pitch ul { display: none; }
}
@media (max-width: 480px) {
  .lg-page { padding: 22px 14px; gap: 20px; }
  .lg-card { padding: 26px 18px 20px; border-radius: 22px; }
  .lg-card .hello { letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) {
  body.entrada *, body.entrada *::before, body.entrada *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
