/* Tela de login: o mesmo visual de Intranet, CX Tasks e NuvemCX (Tailwind v4 de la, em CSS puro). */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body.login {
  margin: 0; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #f8fafc; color: #0f172b;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* manchas numa camada fixa que recorta a si mesma: overflow no body travaria a rolagem
   quando o formulario do 1o acesso passa da altura da tela */
.fundo { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.mancha { position: absolute; width: 40%; height: 40%; border-radius: 9999px; filter: blur(100px); }
.mancha-1 { top: -10%; left: -10%; background: rgb(48 128 255 / .10); }
.mancha-2 { right: -10%; bottom: -10%; background: rgb(98 95 255 / .10); }

.login-caixa { position: relative; z-index: 10; width: 100%; max-width: 28rem; padding: 2rem; }
.login-cartao {
  border-radius: 1rem; border: 1px solid rgb(226 232 240 / .5);
  background: rgb(255 255 255 / .8); padding: 2rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transition: border-color .5s, box-shadow .5s;
}
.login-cartao:hover { border-color: rgb(48 128 255 / .2); box-shadow: 0 25px 50px -12px rgb(48 128 255 / .1); }

.login-selo {
  display: flex; align-items: center; justify-content: center;
  width: 8rem; height: 8rem; margin: 0 auto 2rem; padding: .5rem;
  border-radius: 9999px; border: 1px solid #f1f5f9; background: #fff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  transition: transform .15s;
}
.login-selo:hover { transform: scale(1.05); }
.login-selo img { width: 100%; height: 100%; object-fit: contain; }

.login-titulo { margin-bottom: 2rem; text-align: center; }
.login-titulo h1 { margin: 0; font-size: 1.5rem; line-height: 2rem; font-weight: 700; letter-spacing: -.025em; color: #0f172b; }
.login-titulo p { margin: .5rem 0 0; font-size: .875rem; line-height: 1.25rem; color: #62748e; }

.login-form { display: flex; flex-direction: column; gap: 1.5rem; }
.login-troca { display: flex; flex-direction: column; gap: 1.5rem; }
.campo label { display: block; margin-bottom: .5rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: #314158; }
.campo-caixa { position: relative; }
.campo-caixa svg {
  position: absolute; top: 50%; left: .75rem; width: 1.25rem; height: 1.25rem; transform: translateY(-50%);
  fill: none; stroke: #90a1b9; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none; transition: stroke .15s;
}
.campo-caixa:focus-within svg { stroke: #3080ff; }
.campo-caixa input {
  display: block; width: 100%; margin: 0;
  padding: .625rem .75rem .625rem 2.5rem; border-radius: .75rem;
  border: 1px solid #e2e8f0; background: rgb(248 250 252 / .5);
  color: #0f172b; font: inherit; font-size: 1rem; line-height: 1.5rem;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.campo-caixa input::placeholder { color: #90a1b9; }
.campo-caixa input:focus { outline: none; border-color: #3080ff; background: #fff; box-shadow: 0 0 0 2px rgb(48 128 255 / .5); }
.campo-caixa input[readonly] { color: #45556c; }
@media (min-width: 640px) { .campo-caixa input { font-size: .875rem; line-height: 1.25rem; } }

.login-info, .login-erro { margin: 0; padding: .5rem .75rem; border-radius: .75rem; font-size: .875rem; line-height: 1.25rem; }
.login-info { background: #eff6ff; color: #193cb8; }
.login-erro { background: #fef2f2; color: #c10007; }

.login-botao {
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
  padding: .625rem 1rem; border: 1px solid transparent; border-radius: .75rem;
  background: #155dfc; color: #fff; font: inherit; font-size: .875rem; line-height: 1.25rem; font-weight: 500;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); cursor: pointer;
  transition: transform .15s, background-color .15s;
}
.login-botao:hover { transform: scale(1.02); background: #1447e6; }
.login-botao:active { transform: scale(.98); }
.login-botao:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3080ff; }
.login-botao:disabled { opacity: .6; cursor: default; transform: none; }
.login-botao svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.girando { animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.login-rodape { margin: 0; text-align: center; font-size: .75rem; line-height: 1rem; color: #62748e; }
