/*
 * TELAS DE ACESSO (14/10/2026)
 * Escolha do perfil, cadastro do e-mail do colaborador, recuperação de senha.
 * Paleta do sistema: azul #4581bf + laranja #ff8300. Cada perfil tem a sua
 * cor (RH azul, Líder laranja, Colaborador verde-azulado), repetida no card,
 * no ícone e no botão — é a cor que a pessoa associa ao lugar onde está.
 */
:root {
  --ac-azul: #4581bf;
  --ac-azul-escuro: #24527f;
  --ac-azul-noite: #16324f;
  --ac-laranja: #ff8300;
  --ac-verde: #12a189;
  --ac-tinta: #1d2b3a;
  --ac-cinza: #66768a;
  --ac-borda: #e3e9f0;
  --ac-fundo-card: #ffffff;
  --ac-raio: 20px;
  --ac-sombra: 0 24px 60px -24px rgba(10, 30, 60, .45);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.acesso {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: var(--ac-tinta);
  background: linear-gradient(150deg, var(--ac-azul-noite) 0%, var(--ac-azul-escuro) 45%, var(--ac-azul) 100%);
  -webkit-font-smoothing: antialiased;
}

/* Fundo: três bolhas desfocadas, devagar. Some para quem pediu menos movimento. */
.acesso-fundo { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.acesso-bolha { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: ac-flutua 18s ease-in-out infinite alternate; }
.acesso-bolha--1 { width: 460px; height: 460px; background: #5d9be0; top: -120px; left: -100px; }
.acesso-bolha--2 { width: 380px; height: 380px; background: var(--ac-laranja); bottom: -140px; right: -80px; opacity: .28; animation-delay: -6s; }
.acesso-bolha--3 { width: 300px; height: 300px; background: #2fd3b4; top: 40%; left: 55%; opacity: .18; animation-delay: -12s; }
@keyframes ac-flutua { to { transform: translate(40px, 30px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .acesso-bolha { animation: none; } }

.acesso-palco {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 16px 24px;
}
.acesso-marca { margin-bottom: 28px; }
.acesso-marca img { display: block; width: 240px; max-width: 70vw; height: auto; }
.acesso-rodape { margin-top: auto; padding-top: 32px; font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ---------------------------------------------------------------- títulos */
.acesso-ola { text-align: center; color: #fff; margin-bottom: 30px; max-width: 720px; }
.acesso-ola h1 { margin: 0 0 8px; font-size: 30px; font-weight: 600; letter-spacing: -.3px; }
.acesso-ola p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .78); }
.acesso-empresa {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px; color: #fff;
}

/* ---------------------------------------------------------------- cards de perfil */
.perfis {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  width: 100%; max-width: 980px;
}
.perfis--2 { max-width: 660px; }

.perfil {
  --cor: var(--ac-azul);
  --cor-suave: rgba(69, 129, 191, .12);
  position: relative;
  display: flex; flex-direction: column;
  width: 100%;
  padding: 30px 26px 24px;
  border: 2px solid transparent;
  border-radius: var(--ac-raio);
  background: var(--ac-fundo-card);
  box-shadow: var(--ac-sombra);
  text-align: left; font: inherit; color: inherit;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, border-color .22s;
  animation: ac-entra .5s cubic-bezier(.2, .8, .2, 1) both;
}
.perfil:nth-child(2) { animation-delay: .07s; }
.perfil:nth-child(3) { animation-delay: .14s; }
@keyframes ac-entra { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .perfil { animation: none; transition: none; } }

.perfil::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  border-radius: var(--ac-raio) var(--ac-raio) 0 0; background: var(--cor);
}
.perfil:hover, .perfil:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 34px 70px -26px rgba(10, 30, 60, .6);
  border-color: var(--cor);
  outline: none;
}
.perfil:active { transform: translateY(-2px); }

.perfil--cliente { --cor: var(--ac-azul);    --cor-suave: rgba(69, 129, 191, .13); }
.perfil--lider   { --cor: var(--ac-laranja); --cor-suave: rgba(255, 131, 0, .13); }
.perfil--colab   { --cor: var(--ac-verde);   --cor-suave: rgba(18, 161, 137, .13); }

.perfil__icone {
  width: 76px; height: 76px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 22px; background: var(--cor-suave); color: var(--cor);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.perfil__icone svg { width: 46px; height: 46px; }
.perfil:hover .perfil__icone { transform: rotate(-4deg) scale(1.06); }

.perfil__titulo { margin: 0 0 6px; font-size: 22px; font-weight: 600; color: var(--ac-tinta); }
.perfil__texto { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--ac-cinza); }
.perfil__detalhe {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
  margin-bottom: 18px; padding: 4px 10px; border-radius: 8px;
  background: var(--cor-suave); color: var(--cor);
  font-size: 12.5px; font-weight: 600;
}
.perfil__detalhe:empty { display: none; }
.perfil__empresa { margin: -8px 0 16px; font-size: 12.5px; color: var(--ac-cinza); }

.perfil__acao {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--ac-borda);
  font-size: 14px; font-weight: 600; color: var(--cor);
}
.perfil__acao svg { width: 20px; height: 20px; transition: transform .22s; }
.perfil:hover .perfil__acao svg { transform: translateX(5px); }

.perfil__atual {
  position: absolute; top: 18px; right: 18px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--cor); color: #fff; font-size: 11.5px; font-weight: 600;
}
.perfil__atual svg { width: 13px; height: 13px; }

.perfil[disabled] { cursor: wait; opacity: .75; }

.acesso-dica {
  margin-top: 26px; text-align: center; font-size: 13.5px; color: rgba(255, 255, 255, .75);
}
.acesso-links { margin-top: 14px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.acesso-links a, .acesso-links button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13.5px; color: #fff; text-decoration: none; opacity: .85;
}
.acesso-links a:hover, .acesso-links button:hover { opacity: 1; text-decoration: underline; }
.acesso-links svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- cartão de formulário */
.acesso-cartao {
  width: 100%; max-width: 460px;
  padding: 34px 32px 28px;
  border-radius: var(--ac-raio);
  background: #fff; box-shadow: var(--ac-sombra);
  animation: ac-entra .45s cubic-bezier(.2, .8, .2, 1) both;
}
.acesso-cartao__icone {
  width: 64px; height: 64px; margin: 0 auto 16px;
  display: grid; place-items: center; border-radius: 18px;
  background: rgba(69, 129, 191, .13); color: var(--ac-azul);
}
.acesso-cartao__icone svg { width: 38px; height: 38px; }
.acesso-cartao h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; text-align: center; }
.acesso-cartao .acesso-sub { margin: 0 0 22px; font-size: 14px; line-height: 1.6; text-align: center; color: var(--ac-cinza); }

.acesso-passos { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.acesso-passos span { width: 28px; height: 5px; border-radius: 3px; background: var(--ac-borda); transition: background .3s; }
.acesso-passos span.ativo { background: var(--ac-azul); }

.acesso-campo { margin-bottom: 14px; }
.acesso-campo label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ac-tinta); }
.acesso-campo input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1.5px solid var(--ac-borda); border-radius: 12px;
  font: inherit; font-size: 15px; color: var(--ac-tinta); background: #f8fafc;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.acesso-campo input:focus { outline: none; border-color: var(--ac-azul); background: #fff; box-shadow: 0 0 0 4px rgba(69, 129, 191, .15); }
.acesso-campo small { display: block; margin-top: 5px; font-size: 12px; color: var(--ac-cinza); }

.acesso-codigo input {
  height: 64px; text-align: center; font-size: 30px; font-weight: 600; letter-spacing: 12px;
  font-variant-numeric: tabular-nums;
}

.acesso-botao {
  width: 100%; height: 50px; margin-top: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--ac-azul); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  transition: background .2s, transform .1s;
}
.acesso-botao:hover { background: var(--ac-azul-escuro); }
.acesso-botao:active { transform: translateY(1px); }
.acesso-botao[disabled] { opacity: .6; cursor: wait; }
.acesso-botao svg { width: 18px; height: 18px; }

.acesso-secundario {
  display: block; width: 100%; margin-top: 12px; padding: 8px;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13.5px; color: var(--ac-azul); text-align: center;
}
.acesso-secundario:hover { text-decoration: underline; }
.acesso-secundario[disabled] { color: var(--ac-cinza); cursor: default; text-decoration: none; }

.acesso-msg { display: none; margin: 4px 0 14px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; }
.acesso-msg.erro { display: block; background: #fdecec; color: #a12626; }
.acesso-msg.ok { display: block; background: #e8f7f1; color: #106b52; }
.acesso-msg.info { display: block; background: #eef4fb; color: #24527f; }

.acesso-etapa[hidden] { display: none; }

@media (max-width: 560px) {
  .acesso-palco { padding-top: 28px; }
  .acesso-ola h1 { font-size: 24px; }
  .acesso-cartao { padding: 28px 20px 22px; }
  .perfil { padding: 26px 22px 20px; }
}
