/* =========================================================
   ZENBOX — LOGIN DO PORTAL
========================================================= */

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;

  color: #ffffff;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(97, 55, 255, 0.12),
      transparent 35%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(0, 140, 255, 0.09),
      transparent 35%
    ),
    #050508;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

/* =========================================================
   FUNDO / CANVAS
========================================================= */

#universo {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  z-index: 0;

  pointer-events: none;
}

/* =========================================================
   LAYOUT PRINCIPAL
========================================================= */

.login-layout {
  position: relative;

  z-index: 1;

  display: grid;

  grid-template-columns: 1.15fr 0.85fr;

  min-height: 100vh;
}

/* =========================================================
   LADO ESQUERDO
========================================================= */

.login-apresentacao {
  position: relative;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  min-height: 100vh;

  padding: 46px 64px;

  overflow: hidden;

  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

/* =========================================================
   LOGO
========================================================= */

.logo {
  position: relative;

  z-index: 5;

  width: fit-content;

  font-size: 22px;

  font-weight: 800;

  letter-spacing: 4px;

  color: #ffffff;

  transition: 0.3s ease;
}

.logo span {
  color: #8c65ff;
}

.logo:hover {
  opacity: 0.75;
}

/* =========================================================
   CONTEÚDO ESQUERDO
========================================================= */

.apresentacao-conteudo {
  position: relative;

  z-index: 2;

  width: 100%;

  max-width: 670px;

  margin-top: -10px;
}

.mini-titulo {
  display: inline-block;

  margin-bottom: 24px;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 4px;

  color: #a98dff;
}

.apresentacao-conteudo h1 {
  max-width: 630px;

  font-size: clamp(42px, 4.5vw, 72px);

  line-height: 0.98;

  letter-spacing: -3px;

  font-weight: 300;

  color: #f5f3ff;
}

.apresentacao-conteudo h1 strong {
  display: block;

  margin-top: 8px;

  font-weight: 700;

  background: linear-gradient(90deg, #ffffff 0%, #beaaff 45%, #7a55ff 100%);

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.apresentacao-conteudo > p {
  max-width: 540px;

  margin-top: 28px;

  font-size: 16px;

  line-height: 1.75;

  color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   ÓRBITA
========================================================= */

.orbita-login {
  position: absolute;

  top: 50%;

  right: -200px;

  width: 500px;
  height: 500px;

  transform: translateY(-50%);

  border-radius: 50%;

  opacity: 0.82;

  pointer-events: none;
}

.orbita {
  position: absolute;

  top: 50%;
  left: 50%;

  border-radius: 50%;

  transform: translate(-50%, -50%);

  border: 1px solid rgba(166, 130, 255, 0.18);
}

.orbita-1 {
  width: 440px;
  height: 440px;

  animation: girar 30s linear infinite;
}

.orbita-2 {
  width: 310px;
  height: 310px;

  border-color: rgba(120, 157, 255, 0.15);

  animation: girar-reverso 22s linear infinite;
}

.nucleo {
  position: absolute;

  top: 50%;
  left: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 96px;
  height: 96px;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  font-size: 26px;

  color: #ffffff;

  background: radial-gradient(
    circle,
    rgba(205, 187, 255, 0.36),
    rgba(100, 60, 255, 0.12) 45%,
    transparent 72%
  );

  box-shadow:
    0 0 50px rgba(124, 86, 255, 0.22),
    0 0 130px rgba(104, 67, 255, 0.12);

  animation: pulsar 4s ease-in-out infinite;
}

/* =========================================================
   PONTOS DA ÓRBITA
========================================================= */

.ponto {
  position: absolute;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #b79dff;

  box-shadow:
    0 0 8px #a787ff,
    0 0 20px rgba(167, 135, 255, 0.8);
}

.ponto-1 {
  top: 11%;
  left: 46%;
}

.ponto-2 {
  top: 64%;
  left: 16%;

  width: 4px;
  height: 4px;
}

.ponto-3 {
  top: 78%;
  right: 12%;

  width: 5px;
  height: 5px;
}

/* =========================================================
   FRASE INFERIOR
========================================================= */

.login-frase {
  position: relative;

  z-index: 2;

  font-size: 11px;

  letter-spacing: 2px;

  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.3);
}

/* =========================================================
   LADO DIREITO
========================================================= */

.login-area {
  position: relative;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding: 50px;

  min-height: 100vh;

  background: rgba(6, 6, 12, 0.38);

  backdrop-filter: blur(3px);
}

/* =========================================================
   CARD DE LOGIN
========================================================= */

.login-card {
  position: relative;

  width: 100%;

  max-width: 470px;

  padding: 44px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 24px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.015)
  );

  backdrop-filter: blur(24px);

  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-card::before {
  content: '';

  position: absolute;

  top: -140px;
  right: -120px;

  width: 300px;
  height: 300px;

  border-radius: 50%;

  background: rgba(113, 72, 255, 0.12);

  filter: blur(80px);

  pointer-events: none;
}

/* =========================================================
   CABEÇALHO DO CARD
========================================================= */

.login-card-topo {
  position: relative;

  z-index: 1;

  margin-bottom: 38px;
}

.login-card-topo > span {
  display: inline-block;

  margin-bottom: 16px;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 3px;

  color: #9875ff;
}

.login-card-topo h2 {
  margin-bottom: 10px;

  font-size: 31px;

  line-height: 1.15;

  font-weight: 600;

  letter-spacing: -1px;
}

.login-card-topo p {
  max-width: 330px;

  font-size: 14px;

  line-height: 1.6;

  color: rgba(255, 255, 255, 0.45);
}

/* =========================================================
   FORMULÁRIO
========================================================= */

.login-form {
  position: relative;

  z-index: 1;
}

/* =========================================================
   CAMPO
========================================================= */

.campo {
  margin-bottom: 22px;
}

.campo label {
  display: block;

  margin-bottom: 9px;

  font-size: 12px;

  font-weight: 600;

  color: rgba(255, 255, 255, 0.68);
}

.campo-label {
  display: flex;

  align-items: center;

  justify-content: space-between;
}

.esqueci-senha {
  margin-bottom: 9px;

  font-size: 11px;

  color: #9f82ff;

  transition: 0.25s ease;
}

.esqueci-senha:hover {
  color: #c1adff;
}

/* =========================================================
   INPUT
========================================================= */

.campo-input {
  position: relative;

  display: flex;

  align-items: center;

  height: 55px;

  border: 1px solid rgba(255, 255, 255, 0.09);

  border-radius: 12px;

  background: rgba(0, 0, 0, 0.24);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.campo-input:focus-within {
  border-color: rgba(149, 111, 255, 0.55);

  background: rgba(20, 14, 38, 0.45);

  box-shadow:
    0 0 0 3px rgba(126, 79, 255, 0.07),
    0 0 28px rgba(100, 57, 255, 0.07);
}

.campo-icone {
  display: flex;

  align-items: center;

  justify-content: center;

  width: 50px;

  flex-shrink: 0;

  font-size: 15px;

  color: rgba(190, 167, 255, 0.6);
}

.campo-input input {
  width: 100%;
  height: 100%;

  padding-right: 14px;

  border: none;

  outline: none;

  background: transparent;

  color: #ffffff;

  font-size: 14px;
}

.campo-input input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* =========================================================
   MOSTRAR SENHA
========================================================= */

.mostrar-senha {
  width: 48px;
  height: 100%;

  flex-shrink: 0;

  border: none;

  cursor: pointer;

  color: rgba(255, 255, 255, 0.38);

  background: transparent;

  transition: 0.25s ease;
}

.mostrar-senha:hover {
  color: #b69aff;
}

/* =========================================================
   MANTER CONECTADO
========================================================= */

.lembrar {
  display: flex;

  align-items: center;

  width: fit-content;

  margin: 2px 0 28px;

  cursor: pointer;

  user-select: none;
}

.lembrar input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.checkbox-customizado {
  position: relative;

  width: 17px;
  height: 17px;

  margin-right: 9px;

  border: 1px solid rgba(255, 255, 255, 0.16);

  border-radius: 4px;

  background: rgba(255, 255, 255, 0.025);

  transition: 0.25s ease;
}

.lembrar input:checked + .checkbox-customizado {
  border-color: #8c65ff;

  background: #7950ef;
}

.lembrar input:checked + .checkbox-customizado::after {
  content: '✓';

  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -55%);

  font-size: 11px;

  font-weight: 800;

  color: #ffffff;
}

.lembrar > span:last-child {
  font-size: 12px;

  color: rgba(255, 255, 255, 0.47);
}

/* =========================================================
   BOTÃO ENTRAR
========================================================= */

.btn-entrar {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: space-between;

  width: 100%;
  height: 56px;

  padding: 0 22px;

  overflow: hidden;

  border: 1px solid rgba(191, 171, 255, 0.18);

  border-radius: 12px;

  cursor: pointer;

  background: linear-gradient(90deg, #6840e8, #8058f3, #6840e8);

  background-size: 200% 100%;

  color: #ffffff;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 1.6px;

  box-shadow: 0 14px 35px rgba(99, 61, 223, 0.2);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-position 0.4s ease;
}

.btn-entrar:hover {
  transform: translateY(-2px);

  background-position: 100% 0;

  box-shadow: 0 18px 45px rgba(108, 68, 236, 0.3);
}

.btn-entrar:active {
  transform: translateY(0);
}

.btn-entrar span:last-child {
  font-size: 19px;

  font-weight: 300;
}

/* =========================================================
   DIVISOR
========================================================= */

.divisor {
  display: flex;

  align-items: center;

  gap: 15px;

  margin: 32px 0 26px;
}

.divisor span {
  flex: 1;

  height: 1px;

  background: rgba(255, 255, 255, 0.06);
}

.divisor p {
  font-size: 8px;

  font-weight: 700;

  letter-spacing: 3px;

  color: rgba(255, 255, 255, 0.2);
}

/* =========================================================
   ASSINATURA
========================================================= */

.ajuda-login {
  text-align: center;
}

.ajuda-login p {
  margin-bottom: 6px;

  font-size: 12px;

  color: rgba(255, 255, 255, 0.38);
}

.ajuda-login a {
  font-size: 12px;

  font-weight: 600;

  color: #a98dff;

  transition: 0.25s ease;
}

.ajuda-login a:hover {
  color: #d0c1ff;
}

/* =========================================================
   SEGURANÇA
========================================================= */

.seguranca {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  margin-top: 29px;

  padding-top: 23px;

  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.seguranca span {
  color: rgba(164, 132, 255, 0.5);
}

.seguranca p {
  font-size: 10px;

  letter-spacing: 0.3px;

  color: rgba(255, 255, 255, 0.25);
}

/* =========================================================
   VOLTAR AO SITE
========================================================= */

.voltar-site {
  margin-top: 22px;

  font-size: 11px;

  color: rgba(255, 255, 255, 0.3);

  transition: 0.25s ease;
}

.voltar-site:hover {
  color: #a98dff;
}

/* =========================================================
   ANIMAÇÕES
========================================================= */

@keyframes girar {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes girar-reverso {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes pulsar {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);

    opacity: 0.8;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);

    opacity: 1;
  }
}

/* =========================================================
   RESPONSIVO — NOTEBOOK
========================================================= */

@media (max-width: 1200px) {
  .login-apresentacao {
    padding: 42px;
  }

  .login-area {
    padding: 36px;
  }

  .orbita-login {
    right: -250px;
  }

  .apresentacao-conteudo h1 {
    font-size: 52px;
  }
}

/* =========================================================
   RESPONSIVO — TABLET
========================================================= */

@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }

  .login-layout {
    display: block;

    min-height: 100vh;
  }

  .login-apresentacao {
    min-height: auto;

    padding: 32px 28px 55px;

    border-right: none;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .apresentacao-conteudo {
    margin-top: 70px;
  }

  .apresentacao-conteudo h1 {
    max-width: 560px;

    font-size: 50px;
  }

  .orbita-login {
    top: 62%;

    right: -280px;

    opacity: 0.5;
  }

  .login-frase {
    margin-top: 90px;
  }

  .login-area {
    min-height: auto;

    padding: 70px 25px;
  }

  .login-card {
    max-width: 500px;
  }
}

/* =========================================================
   RESPONSIVO — CELULAR
========================================================= */

@media (max-width: 600px) {
  .login-apresentacao {
    padding: 26px 20px 45px;
  }

  .logo {
    font-size: 18px;

    letter-spacing: 3px;
  }

  .apresentacao-conteudo {
    margin-top: 75px;
  }

  .mini-titulo {
    margin-bottom: 17px;

    font-size: 9px;

    letter-spacing: 3px;
  }

  .apresentacao-conteudo h1 {
    font-size: 40px;

    letter-spacing: -2px;
  }

  .apresentacao-conteudo > p {
    margin-top: 22px;

    font-size: 14px;
  }

  .orbita-login {
    top: 63%;

    right: -330px;

    opacity: 0.35;
  }

  .login-frase {
    margin-top: 70px;

    max-width: 260px;

    line-height: 1.7;
  }

  .login-area {
    padding: 55px 16px;
  }

  .login-card {
    padding: 31px 22px;

    border-radius: 19px;
  }

  .login-card-topo h2 {
    font-size: 27px;
  }

  .campo-input {
    height: 53px;
  }

  .campo-icone {
    width: 44px;
  }

  .btn-entrar {
    height: 54px;
  }
}

/* =========================================================
   TELAS MUITO PEQUENAS
========================================================= */

@media (max-width: 380px) {
  .apresentacao-conteudo h1 {
    font-size: 35px;
  }

  .login-card {
    padding: 27px 18px;
  }

  .campo-label {
    align-items: flex-start;

    gap: 10px;
  }
}

/* =========================================================
   CORRIGIR AUTOFILL DO CHROME
========================================================= */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;

  -webkit-box-shadow: 0 0 0 1000px #0e0b18 inset !important;

  box-shadow: 0 0 0 1000px #0e0b18 inset !important;

  caret-color: #ffffff !important;

  transition: background-color 9999s ease-in-out 0s;
}
