@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --cor-laranja-inicio: #f95a34;
  --cor-laranja-fim: #f34c2c;
  --cor-impressao: rgba(185, 66, 49, 0.34);
  --cor-branca: #fff;
  --cor-branca-suave: rgba(255, 255, 255, 0.56);
  --cor-carvao: #3c4245;
  --largura-formulario: 466px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cor-laranja-fim);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--cor-branca);
  background: linear-gradient(135deg, var(--cor-laranja-inicio), var(--cor-laranja-fim));
  font-family: "Inter", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.pagina-login {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 64px 24px 42px;
}

.impressao-digital {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(66vw, 900px);
  min-width: 620px;
  height: min(94vh, 960px);
  min-height: 690px;
  transform: translate(-50%, -49%) rotate(-2deg);
  opacity: 0.58;
  pointer-events: none;
}

.impressao-digital__linhas {
  fill: none;
  stroke: var(--cor-impressao);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 1 15;
}

.login-conteudo {
  position: relative;
  z-index: 1;
  width: min(100%, var(--largura-formulario));
  text-align: center;
}

.login-logo {
  position: relative;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(550px, calc(100vw - 20px));
  margin: 0 0 39px;
  text-decoration: none;
  transform: translateX(-50%);
}

.login-logo img {
  display: block;
  flex-shrink: 0;
  height: auto;
}

.login-logo__bbc {
  width: 180px;
}

.login-logo__thomson {
  width: 300px;
}

.login-logo__separador {
  color: var(--cor-branca);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.formulario-login {
  text-align: left;
}

.campo-grupo {
  margin-bottom: 20px;
}

.campo-grupo label {
  display: block;
  margin: 0 0 5px 5px;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.2;
}

.campo-grupo input {
  width: 100%;
  height: 58px;
  border: 2px solid var(--cor-branca);
  border-radius: 999px;
  padding: 0 28px;
  color: var(--cor-branca);
  outline: none;
  background: rgba(255, 255, 255, 0.02);
  font-size: 1.16rem;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.campo-grupo input::placeholder {
  color: var(--cor-branca-suave);
  opacity: 1;
}

.campo-grupo input:focus {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.codigo-mfa small {
  display: block;
  margin: 10px 8px 14px;
  color: var(--cor-branca-suave);
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: center;
}

.cancelar-codigo {
  display: block;
  margin: 16px auto 0;
}

.campo-grupo input:-webkit-autofill,
.campo-grupo input:-webkit-autofill:hover,
.campo-grupo input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--cor-branca);
  box-shadow: 0 0 0 100px rgba(244, 82, 48, 0.95) inset, 0 0 0 2px var(--cor-branca);
  transition: background-color 9999s ease-out 0s;
}

.senha-controle {
  position: relative;
}

.senha-controle input {
  padding-right: 68px;
}

.botao-visualizar-senha {
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  width: 31px;
  height: 31px;
  padding: 4px;
  border: 0;
  color: var(--cor-branca);
  cursor: pointer;
  place-items: center;
  transform: translateY(-50%);
  background: transparent;
}

.botao-visualizar-senha svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.login-acoes {
  display: flex;
  justify-content: flex-end;
  margin: -2px 5px 20px;
}

.link-login {
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: transparent;
}

.link-login:hover,
.link-login:focus-visible {
  opacity: 0.78;
}

.link-login:focus-visible,
.botao-visualizar-senha:focus-visible,
.botao-entrar:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 4px;
}

.botao-entrar {
  width: 100%;
  height: 64px;
  border: 0;
  border-radius: 999px;
  color: var(--cor-branca);
  cursor: pointer;
  background: var(--cor-carvao);
  font-size: 1.52rem;
  font-weight: 700;
  transition: filter 160ms ease, transform 160ms ease;
}

.botao-entrar:hover {
  filter: brightness(1.12);
}

.botao-entrar:disabled {
  cursor: wait;
  opacity: 0.75;
}

.botao-entrar:active {
  transform: scale(0.99);
}

.mensagem-login {
  min-height: 20px;
  margin: 10px 8px 0;
  color: var(--cor-branca);
  font-size: 0.88rem;
  text-align: center;
}

.mensagem-login:empty {
  margin-top: 0;
}

.cadastro-login {
  margin: 14px 0 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.cadastro-login .link-login {
  font-size: inherit;
}

@media (max-width: 600px) {
  .pagina-login {
    align-items: start;
    padding: 42px 20px 32px;
  }

  .impressao-digital {
    width: 820px;
    height: 920px;
    opacity: 0.45;
  }

  .login-logo {
    gap: 4px;
    margin-bottom: 32px;
  }

  .login-logo__bbc {
    width: 35%;
  }

  .login-logo__thomson {
    width: 52%;
  }

  .login-logo__separador {
    font-size: 1.875rem;
  }

  h1 {
    margin-bottom: 19px;
    font-size: 2rem;
  }

  .campo-grupo label {
    font-size: 1rem;
  }

  .campo-grupo input {
    height: 54px;
    padding: 0 22px;
    font-size: 1rem;
  }

  .senha-controle input {
    padding-right: 60px;
  }

  .botao-entrar {
    height: 58px;
    font-size: 1.25rem;
  }

  .cadastro-login {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
