/* =========================================================
   Connect Truck - Tela de login (entrar.php)
   Desktop: marca à esquerda, formulário à direita.
   Celular: faixa da marca no topo e o formulário logo abaixo.
   ========================================================= */

body.entrar { margin: 0; min-height: 100vh; background: #f4f6fb; color: var(--cor-texto); font-family: var(--fonte); }
.entrar-tela { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }

/* ---------- Lado da marca ---------- */
.entrar-marca {
  position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column;
  padding: 36px 48px 0;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(124, 58, 237, .38), transparent 60%),
    radial-gradient(520px 360px at 10% 70%, rgba(59, 130, 246, .35), transparent 65%),
    linear-gradient(170deg, #071533 0%, #0b1f44 45%, #1e3a8a 100%);
}
.entrar-marca::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.entrar-marca-topo { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.entrar-logo img { display: block; height: 38px; width: auto; }
.entrar-voltar { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); transition: background .2s, color .2s; }
.entrar-voltar:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.entrar-marca-texto { position: relative; margin: auto 0; padding: 40px 0; max-width: 520px; }
.entrar-marca-texto h1 { margin: 0; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.entrar-marca-texto h1 span { background: linear-gradient(90deg, #fde68a, #fbbf24 45%, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.entrar-marca-texto > p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.entrar-beneficios { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.entrar-beneficios li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(4px); }
.entrar-beneficios strong { display: block; font-size: 15px; }
.entrar-beneficios small { color: rgba(255, 255, 255, .68); font-size: 13.5px; }
.eb-icone { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(59, 130, 246, .9), rgba(124, 58, 237, .9)); }
.eb-icone svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Estrada com o caminhão */
.entrar-estrada { position: relative; height: 120px; margin: 0 -48px; flex-shrink: 0; }
.entrar-estrada::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62px; background: linear-gradient(180deg, #2b3445, #1f2633); box-shadow: inset 0 4px 0 #475569; }
.entrar-faixa { position: absolute; left: 0; right: 0; bottom: 28px; height: 4px; background: repeating-linear-gradient(90deg, #f8fafc 0 40px, transparent 40px 80px); animation: entrar-faixa .55s linear infinite; }
@keyframes entrar-faixa { to { background-position: -80px 0; } }
.entrar-caminhao { position: absolute; bottom: 14px; left: 0; width: 230px; animation: entrar-atravessar 13s linear infinite; }
@keyframes entrar-atravessar { from { transform: translateX(-250px); } to { transform: translateX(calc(52vw + 20px)); } }

/* Caminhão (mesmo desenho da página inicial) */
.caminhao { display: block; width: 100%; height: auto; overflow: visible; }
.cam-corpo { animation: entrar-balanco .45s ease-in-out infinite alternate; }
@keyframes entrar-balanco { to { transform: translateY(-1.5px); } }
.roda path, .roda circle:nth-child(2) { transform-box: fill-box; transform-origin: center; animation: entrar-girar .5s linear infinite; }
@keyframes entrar-girar { to { transform: rotate(360deg); } }
.cam-sombra { fill: rgba(0, 0, 0, .3); }
.cam-marca { font: 800 17px var(--fonte); fill: #0b1f44; }
.cam-marca-2 { fill: #2563eb; }
.cam-farol { filter: drop-shadow(0 0 6px #fde68a); }
.cam-fumaca circle { fill: rgba(226, 232, 240, .6); transform-box: fill-box; transform-origin: center; opacity: 0; animation: entrar-fumaca 1.8s ease-out infinite; }
.cam-fumaca circle:nth-child(2) { animation-delay: .6s; }
.cam-fumaca circle:nth-child(3) { animation-delay: 1.2s; }
@keyframes entrar-fumaca { 0% { opacity: .7; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(-40px, -14px) scale(2.1); } }

/* ---------- Lado do formulário ---------- */
.entrar-form-lado { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 24px; position: relative; }
.entrar-caixa { width: 100%; max-width: 420px; margin: auto 0; }
.entrar-cabeca { margin-bottom: 26px; }
.entrar-simbolo { display: block; width: 44px; height: 44px; margin-bottom: 18px; }
.entrar-cabeca h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.entrar-cabeca p { margin: 6px 0 0; color: var(--cor-texto-2); font-size: 15px; }

.entrar-alerta { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; animation: entrar-surgir .3s ease both; }
.entrar-alerta svg { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.entrar-alerta-erro { background: #fff1f0; color: #b91c1c; border: 1px solid #fecaca; }
.entrar-alerta-ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
@keyframes entrar-surgir { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.entrar-formulario { gap: 18px; }
.entrar-campo { display: flex; flex-direction: column; gap: 7px; }
.entrar-rotulo { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--cor-texto); }
.entrar-esqueci { font-size: 13px; font-weight: 600; text-decoration: none; }
.entrar-esqueci:hover { text-decoration: underline; }
.entrar-input { position: relative; display: block; }
.entrar-input > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: #94a3b8; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .2s; }
.entrar-input input {
  width: 100%; height: 52px; padding: 0 16px 0 46px; border-radius: 14px; border: 1.5px solid #dfe4ec; background: #fff;
  font: 400 16px var(--fonte); color: var(--cor-texto); transition: border-color .2s, box-shadow .2s;
}
.entrar-input.auth-senha input { padding-right: 52px; }
.entrar-input input::placeholder { color: #a0aabb; }
.entrar-input input:hover { border-color: #c7d0dd; }
.entrar-input input:focus { outline: none; border-color: var(--cor-primaria); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.entrar-input:focus-within > svg { stroke: var(--cor-primaria); }
.entrar-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--cor-texto); }
.entrar-input .auth-ver-senha { right: 6px; }
.entrar-caps { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #b45309; }
.entrar-caps svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.entrar-caps[hidden] { display: none; }

.entrar-botao {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; margin-top: 4px;
  border: 0; border-radius: 14px; cursor: pointer; color: #fff; font: 700 16.5px var(--fonte);
  background: linear-gradient(135deg, #3b82f6, #2563eb 45%, #7c3aed); background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .32); transition: background-position .4s, transform .15s, box-shadow .2s;
}
.entrar-botao:hover { background-position: 100% 0; box-shadow: 0 16px 32px rgba(37, 99, 235, .4); }
.entrar-botao:hover .entrar-botao-seta { transform: translateX(3px); }
.entrar-botao:active { transform: translateY(1px); }
.entrar-botao:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.entrar-botao-seta { transition: transform .2s; }
.entrar-botao.carregando { pointer-events: none; opacity: .9; }
.entrar-botao.carregando .entrar-botao-seta { display: none; }
.entrar-botao.carregando::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: entrar-girar .7s linear infinite; }

.entrar-ou { display: flex; align-items: center; gap: 12px; margin: 30px 0 16px; color: var(--cor-texto-3); font-size: 13px; }
.entrar-ou::before, .entrar-ou::after { content: ""; flex: 1; height: 1px; background: #e2e7ef; }
.entrar-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.entrar-opcao { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1.5px solid #e2e7ef; background: #fff; text-decoration: none; color: var(--cor-texto); transition: border-color .2s, box-shadow .2s, transform .15s; }
.entrar-opcao:hover { border-color: #c7d7fb; box-shadow: 0 8px 20px rgba(11, 31, 68, .07); transform: translateY(-1px); }
.entrar-opcao strong { display: block; font-size: 14px; line-height: 1.25; }
.entrar-opcao small { display: block; font-size: 12.5px; color: var(--cor-texto-3); line-height: 1.3; }
.eo-icone { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.eo-icone svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eo-azul { background: #eaf1fe; color: var(--cor-primaria); }
.eo-verde { background: #e9f8ef; color: #16a34a; }
.entrar-voltar-celular { display: none; }

/* Crédito do desenvolvedor */
.entrar-credito { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 32px; padding-top: 18px; width: 100%; max-width: 420px; border-top: 1px solid #e2e7ef; font-size: 12.5px; color: var(--cor-texto-3); }
.entrar-credito .credito-nome { font-size: 13.5px; font-weight: 700; letter-spacing: .01em; color: var(--cor-texto); text-decoration: none; }
.entrar-credito .credito-nome:hover { color: var(--cor-primaria); text-decoration: underline; }

/* ---------- Celular e telas menores ---------- */
@media (max-width: 960px) {
  .entrar-tela { grid-template-columns: 1fr; }
  .entrar-marca { padding: 20px 20px 0; }
  .entrar-voltar { display: none; }
  .entrar-logo img { height: 32px; }
  .entrar-marca-texto { margin: 0; padding: 18px 0 6px; }
  .entrar-marca-texto h1 { font-size: 26px; }
  .entrar-marca-texto > p { font-size: 14.5px; margin-top: 8px; }
  .entrar-beneficios { display: none; }
  .entrar-estrada { height: 92px; margin: 0 -20px; }
  .entrar-estrada::before { height: 46px; }
  .entrar-faixa { bottom: 20px; height: 3px; }
  .entrar-caminhao { width: 160px; bottom: 10px; animation-duration: 9s; }
  @keyframes entrar-atravessar { from { transform: translateX(-180px); } to { transform: translateX(calc(100vw + 20px)); } }
  .entrar-form-lado { padding: 0 16px 24px; justify-content: flex-start; }
  .entrar-caixa { margin: -18px 0 0; padding: 24px 20px; border-radius: 22px; background: #fff; box-shadow: 0 10px 34px rgba(11, 31, 68, .1); position: relative; z-index: 2; }
  .entrar-simbolo { display: none; }
  .entrar-cabeca { margin-bottom: 20px; }
  .entrar-cabeca h2 { font-size: 23px; }
  .entrar-voltar-celular { display: block; margin-top: 18px; text-align: center; font-size: 14px; font-weight: 600; text-decoration: none; }
  .entrar-credito { margin-top: 22px; border-top: 0; padding-top: 0; }
}
@media (max-width: 400px) {
  .entrar-opcoes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .entrar-caminhao, .entrar-faixa, .cam-corpo, .roda path, .roda circle, .cam-fumaca circle { animation: none !important; }
  .entrar-caminhao { transform: translateX(30%); }
}

/* ---------- Esqueci a senha / redefinir ---------- */
.entrar-link-voltar { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--cor-texto-2); }
.entrar-link-voltar:hover { color: var(--cor-primaria); }
.entrar-passos { display: flex; gap: 8px; margin-bottom: 18px; }
.entrar-passos span { flex: 1; padding-top: 10px; border-top: 3px solid #e2e7ef; font-size: 12.5px; font-weight: 600; color: var(--cor-texto-3); }
.entrar-passos .ativo { border-color: var(--cor-primaria); color: var(--cor-primaria); }
.entrar-passos .feito { border-color: #16a34a; color: #16a34a; }
.entrar-alerta-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.entrar-codigo {
  width: 100%; height: 64px; padding: 0 16px; border-radius: 14px; border: 1.5px solid #dfe4ec; background: #fff;
  font: 800 30px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .5em; text-align: center; text-indent: .5em;
  color: var(--cor-texto); transition: border-color .2s, box-shadow .2s;
}
.entrar-codigo::placeholder { color: #cbd5e1; }
.entrar-codigo:focus { outline: none; border-color: var(--cor-primaria); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.entrar-forca { display: flex; align-items: center; gap: 4px; min-height: 16px; }
.entrar-forca i { flex: 0 0 44px; height: 5px; border-radius: 3px; background: #e2e7ef; transition: background .2s; }
.entrar-forca em { margin-left: 6px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--cor-texto-3); }
.entrar-forca.nivel-1 i:nth-child(1) { background: #f59e0b; }
.entrar-forca.nivel-2 i:nth-child(-n+2) { background: #3b82f6; }
.entrar-forca.nivel-3 i { background: #16a34a; }
.entrar-confere { font-size: 12.5px; font-weight: 600; }
.entrar-confere.ok { color: #16a34a; }
.entrar-confere.erro { color: #b45309; }
.entrar-confere[hidden] { display: none; }
.entrar-reenviar { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; font-size: 14px; color: var(--cor-texto-2); }
.entrar-reenviar button { border: 0; background: none; padding: 4px; font: 600 14px var(--fonte); color: var(--cor-primaria); cursor: pointer; }
.entrar-reenviar button:disabled { color: var(--cor-texto-3); cursor: default; }
.entrar-ajuda { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--cor-texto-2); }
.entrar-ajuda a { font-weight: 600; }
@media (max-width: 960px) { .entrar-link-voltar { margin-bottom: 16px; } }

/* ---------- Criar conta (cadastro.php) ---------- */
@media (min-width: 961px) {
  .entrar-longo .entrar-marca { position: sticky; top: 0; height: 100vh; height: 100svh; }
  .entrar-longo .entrar-form-lado { justify-content: flex-start; padding-top: 48px; }
}
.entrar-caixa-larga { max-width: 560px; }
.entrar-longo .entrar-credito { max-width: 560px; }
.entrar-rotulo em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--cor-texto-3); margin-left: 6px; margin-right: auto; }
.entrar-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.entrar-secao { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--cor-texto); }
.entrar-secao span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cor-primaria-fundo); color: var(--cor-primaria); font-size: 13px; font-weight: 800; }
.entrar-secao em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--cor-texto-3); }
.entrar-plano {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; padding: 16px 18px; border-radius: 16px; color: #fff;
  background: radial-gradient(260px 120px at 100% 0%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .25);
}
.entrar-plano-info { display: flex; flex-direction: column; gap: 2px; }
.entrar-plano-selo { align-self: flex-start; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.entrar-plano-info strong { font-size: 16px; }
.entrar-plano-info small { font-size: 13px; opacity: .85; }
.entrar-plano-preco { text-align: right; line-height: 1.1; }
.entrar-plano-preco strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.entrar-plano-preco small { font-size: 12px; opacity: .8; }
.entrar-select select {
  width: 100%; height: 52px; padding: 0 40px 0 46px; border-radius: 14px; border: 1.5px solid #dfe4ec; font: 400 16px var(--fonte); color: var(--cor-texto);
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
  transition: border-color .2s, box-shadow .2s;
}
.entrar-select select:hover { border-color: #c7d0dd; }
.entrar-select select:focus { outline: none; border-color: var(--cor-primaria); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.entrar-aceite { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; background: #fff; border: 1.5px solid #e2e7ef; font-size: 14px; color: var(--cor-texto-2); cursor: pointer; }
.entrar-aceite input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--cor-primaria); cursor: pointer; }
.entrar-aceite:has(input:checked) { border-color: #c7d7fb; background: #f8faff; }
.entrar-opcao-frota { margin-top: 14px; }
@media (max-width: 560px) {
  .entrar-linha { grid-template-columns: 1fr; gap: 18px; }
  .entrar-plano { padding: 14px; }
  .entrar-plano-preco strong { font-size: 20px; }
}
.entrar-plano-preco strong { white-space: nowrap; }
.entrar-secao { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 560px) {
  .entrar-secao em { flex-basis: 100%; padding-left: 36px; }
  .entrar-plano-info small { font-size: 12px; }
}

.entrar-obs { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--cor-texto-3); margin-left: 4px; }
