/* Tela de login: mesmo layout do login das ferramentas (painel com vídeo + cartão do formulário). */
:root {
  --lg-azul: #1d4ed8;
  --lg-grad: linear-gradient(135deg, #1d4ed8 0%, #12294d 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #edeff2; }

.login {
  display: flex;
  position: fixed;
  inset: 0;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Painel esquerdo */
.login-marca {
  display: none;
  flex: 1;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 3rem;
  background: var(--lg-grad);
}
@media (min-width: 900px) { .login-marca { display: flex; } }

.login-video, .login-veu { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.login-video { object-fit: cover; }
.login-veu {
  background: linear-gradient(135deg, rgba(11, 23, 56, .78) 0%, rgba(15, 33, 80, .62) 50%, rgba(11, 23, 56, .8) 100%);
}

.login-marca-conteudo { position: relative; z-index: 1; text-align: center; }
.login-marca-logo { width: 220px; height: auto; margin-bottom: 2.5rem; opacity: .95; }
.login-marca h1 { font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1.3; margin: 0 0 1rem; letter-spacing: -.02em; }
.login-marca-texto { font-size: .95rem; color: rgba(255, 255, 255, .55); line-height: 1.6; max-width: 320px; margin: 0 auto; }


.login-pontos { position: absolute; bottom: 2rem; right: 2rem; z-index: 1; display: grid; grid-template-columns: repeat(5, 4px); gap: 8px; opacity: .15; }
.login-pontos span { width: 4px; height: 4px; border-radius: 50%; background: #fff; }

/* Painel direito */
.login-lado-form {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
  background-color: #edeff2;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(29, 78, 216, .07) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(60, 122, 255, .06) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(29, 78, 216, .018) 40px, rgba(29, 78, 216, .018) 41px);
}
@media (max-width: 899px) { .login-lado-form { background: var(--lg-grad); padding: 1rem; } }

.login-cartao {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 2.75rem 2.5rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .04), 0 20px 40px rgba(0, 0, 0, .08);
}
.login-cartao::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--lg-grad); }

.login-cabecalho { text-align: center; margin-bottom: 2rem; }
.login-logo-celular { display: block; width: 160px; height: auto; margin: 0 auto 1.5rem; }
@media (min-width: 900px) { .login-logo-celular { display: none; } }
.login-cabecalho h2 { font-size: 1.5rem; font-weight: 700; color: #333; margin: 0 0 .375rem; letter-spacing: -.02em; }
.login-cabecalho p { font-size: .875rem; color: #4a5568; margin: 0; }

.login-form { display: flex; flex-direction: column; gap: 1.25rem; }
.login-campo { display: flex; flex-direction: column; gap: .375rem; }
.login-campo label { font-size: .8125rem; font-weight: 600; color: #374151; letter-spacing: .02em; text-transform: uppercase; }
.login-campo input {
  width: 100%;
  padding: .75rem 1rem;
  font: inherit;
  font-size: .9375rem;
  color: #333;
  background: #f8fafc;
  border: 1.5px solid #d9d9d9;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-campo input::placeholder { color: #c2c8d6; font-size: .9rem; }
.login-campo input:focus { border-color: var(--lg-azul); background: #fff; box-shadow: 0 0 0 4px rgba(29, 78, 216, .12); }

.login-senha { position: relative; }
.login-senha input { padding-right: 3rem; }
.login-olho {
  position: absolute;
  right: .875rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  padding: .25rem;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  line-height: 0;
}
.login-olho img { width: 18px; height: 18px; opacity: .45; transition: opacity .2s; }
.login-olho:hover img { opacity: .85; }

.login-erro {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .625rem .875rem;
  font-size: .8125rem;
  color: #c53030;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
}
.login-erro::before { content: '⚠'; font-size: .875rem; flex-shrink: 0; }

.login-aviso {
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}
.login-aviso strong { display: block; margin-bottom: 3px; }
.login-aviso ul { margin: 0; padding-left: 18px; }
.login-aviso li { margin: 1px 0; }

.login-botao {
  width: 100%;
  margin-top: .25rem;
  padding: .875rem 1rem;
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #fff;
  background: var(--lg-grad);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(29, 78, 216, .35);
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.login-botao:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29, 78, 216, .45); }
.login-botao:active { transform: translateY(0); }

.login-rodape { text-align: center; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid #eef1f5; }
.login-rodape p { font-size: .75rem; color: #a0a8b8; margin: 0; }

@media (max-width: 480px) {
  .login-cartao { padding: 2rem 1.5rem; border-radius: 16px; }
  .login-cabecalho h2 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .login-video { display: none; } }

.login-nota {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}
