* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --preto: #070b14;
  --azul-escuro: #0c1424;
  --azul: #1687ff;
  --roxo: #8b5cf6;
  --ciano: #22d3ee;
  --branco: #ffffff;
  --cinza: #9ca8ba;
  --borda: rgba(255, 255, 255, 0.12);
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--preto);
  color: var(--branco);
}

.pagina-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(139, 92, 246, 0.20),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(34, 211, 238, 0.14),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #070b14 0%,
      #0b1220 50%,
      #070b14 100%
    );
}

.login-container {
  width: 100%;
  max-width: 1050px;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--borda);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.40);
}

.login-marca {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(139, 92, 246, 0.18),
      rgba(22, 135, 255, 0.10),
      rgba(34, 211, 238, 0.05)
    );
}

.login-marca::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  top: -100px;
  right: -130px;
}

.login-marca::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 50%;
  bottom: -70px;
  left: -70px;
}

.marca-superior {
  margin-bottom: 22px;
  color: var(--ciano);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
}

.login-marca h1 {
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1;
  letter-spacing: 3px;
  background: linear-gradient(
    90deg,
    #ffffff,
    #a78bfa,
    #38bdf8
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marca-frase {
  margin-top: 25px;
  color: #c7d0de;
  font-size: 17px;
  line-height: 1.7;
}

.login-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 65px;
  background: rgba(7, 11, 20, 0.68);
}

.etiqueta {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--roxo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}

.login-cabecalho h2 {
  margin-bottom: 13px;
  font-size: 38px;
  font-weight: 600;
}

.login-cabecalho p {
  max-width: 390px;
  color: var(--cinza);
  font-size: 15px;
  line-height: 1.7;
}

.login-formulario {
  margin-top: 38px;
}

.campo {
  margin-bottom: 22px;
}

.campo label {
  display: block;
  margin-bottom: 9px;
  color: #d9e0eb;
  font-size: 13px;
  font-weight: 600;
}

.campo input {
  width: 100%;
  height: 54px;
  padding: 0 17px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: var(--branco);
  font-size: 15px;
  transition: 0.25s;
}

.campo input::placeholder {
  color: #687487;
}

.campo input:focus {
  border-color: var(--roxo);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.10);
}

.login-opcoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 4px 0 28px;
  font-size: 12px;
}

.lembrar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cinza);
  cursor: pointer;
}

.lembrar input {
  accent-color: var(--roxo);
}

.login-opcoes a,
.login-ajuda a {
  color: #a78bfa;
  text-decoration: none;
}

.login-opcoes a:hover,
.login-ajuda a:hover {
  text-decoration: underline;
}

.login-formulario button {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    #7c3aed,
    #2563eb,
    #0891b2
  );
  color: var(--branco);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-formulario button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.login-formulario button span {
  font-size: 20px;
}

.login-ajuda {
  margin-top: 27px;
  color: #788599;
  font-size: 12px;
  text-align: center;
}

.login-ajuda a {
  margin-left: 4px;
  font-weight: 600;
}

@media (max-width: 450px) {

  .pagina-login {

    padding: 20px;

  }

  .login-container {

    max-width: 520px;

    grid-template-columns: 1fr;

  }

  .login-marca {

    min-height: 260px;

    padding: 45px;

  }

  .login-marca h1 {

    font-size: 46px;

  }

  .login-area {

    padding: 45px;

  }

}

@media (max-width: 480px) {

  .pagina-login {
    padding: 0;
  }

  .login-container {
    min-height: 100vh;
    border: none;
    border-radius: 0;
  }

  .login-marca {
    min-height: 220px;
    padding: 32px 25px;
  }

  .login-marca h1 {
    font-size: 38px;
  }

  .login-area {
    padding: 38px 25px;
  }

  .login-cabecalho h2 {
    font-size: 32px;
  }

  .login-opcoes {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* LOGO ELUNEXYA - PORTAL DO CLIENTE */

.logo-portal {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}

.logo-portal img {
  width: 400px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* =========================================================
   SOLICITAR CADASTRO - PORTAL ELUNEXYA
========================================================= */

.solicitar-acesso {
  width: 100%;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(139, 92, 246, 0.08),
      rgba(37, 99, 235, 0.05),
      rgba(34, 211, 238, 0.04)
    );
}

.solicitar-acesso-texto {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.solicitar-acesso-texto strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.solicitar-acesso-texto span {
  color: #8e9aad;
  font-size: 12px;
  line-height: 1.5;
}


/* BOTÃO SOLICITAR CADASTRO */

.botao-solicitar-cadastro {
  width: 100%;
  min-height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 0 16px;

  border: 1px solid rgba(167, 139, 250, 0.30);
  border-radius: 10px;

  background: rgba(139, 92, 246, 0.08);

  color: #c4b5fd;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;

  cursor: pointer;

  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.botao-solicitar-cadastro:hover {
  background: rgba(139, 92, 246, 0.16);

  border-color: rgba(167, 139, 250, 0.55);

  color: #ffffff;

  transform: translateY(-1px);

  box-shadow:
    0 8px 20px rgba(124, 58, 237, 0.12);
}

.botao-solicitar-cadastro span {
  font-size: 18px;
  line-height: 1;
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 480px) {

  .solicitar-acesso {
    margin-top: 22px;
    padding: 16px;
  }

  .solicitar-acesso-texto strong {
    font-size: 13px;
  }

  .solicitar-acesso-texto span {
    font-size: 11px;
  }

  .botao-solicitar-cadastro {
    min-height: 48px;
  }

}

/* =========================================================
   INSTALAR ELUNEXYA - PWA
========================================================= */

.botao-instalar-elunexya {
  width: 100%;
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  margin-top: 18px;

  padding: 0 16px;

  border:
    1px solid
    rgba(34, 211, 238, 0.28);

  border-radius: 11px;

  background:
    rgba(34, 211, 238, 0.07);

  color: #67e8f9;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}


.botao-instalar-elunexya:hover {
  background:
    rgba(34, 211, 238, 0.14);

  border-color:
    rgba(34, 211, 238, 0.50);

  color: #ffffff;

  transform:
    translateY(-1px);
}


.botao-instalar-elunexya .instalar-icone {
  font-size: 18px;
  line-height: 1;
}


/* IMPORTANTE:
   mantém o botão realmente escondido
   até o navegador liberar a instalação
*/

.botao-instalar-elunexya[hidden] {
  display: none !important;
}