
/* JRC-ACS - Login corporativo */

:root {
  --acs-bg: #f5f8fc;
  --acs-ink: #122d43;
  --acs-blue: #079fbe;
  --acs-night: #020e19;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--acs-bg);
  color: var(--acs-ink);
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid #02a4c8;
  outline-offset: 4px;
}

/* ESTRUTURA */

.login {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 54% 46%;
}

/* PAINEL VISUAL */

.visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 740px;

  background:
    radial-gradient(
      circle at 50% 34%,
      rgba(0, 220, 255, .14),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #03111d 0%,
      #04192b 100%
    );

  color: #edfaff;
}

/* IMAGEM PRINCIPAL */

.art {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  object-position: center 42%;
  z-index: -3;
  opacity: .90;

  filter:
    saturate(1.05)
    contrast(1.08)
    brightness(.82);

  animation:
    breathe 12s ease-in-out infinite alternate;
}

/* TEXTURA DIGITAL */

.visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .13;

  background-image:
    linear-gradient(
      rgba(97, 225, 245, .18) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(97, 225, 245, .18) 1px,
      transparent 1px
    );

  background-size: 44px 44px;
}

/* SOBREPOSICAO ESCURA */

.shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(1, 12, 22, .82) 0%,
      transparent 24%,
      rgba(1, 12, 22, .12) 55%,
      #020e19 100%
    ),
    radial-gradient(
      circle at 50% 36%,
      rgba(0, 220, 255, .18),
      transparent 28%
    );
}

.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, .14),
      transparent 18%,
      transparent 82%,
      rgba(0, 0, 0, .14)
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .02),
      transparent 30%
    );
}

/* LOGO E IDENTIDADE */

.brand {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 1;

  display: flex;
  align-items: center;
  gap: 12px;

  width: max-content;
  max-width: calc(100% - 64px);
  padding: 10px 14px;

  border: 1px solid rgba(90, 190, 220, .18);
  border-radius: 14px;
  background: rgba(3, 18, 30, .38);

  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);

  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand span {
  color: #ff7a18;
}

.brand small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #b6cfda;
}

/* TEXTO INSTITUCIONAL */

.hero {
  position: absolute;
  bottom: 64px;
  left: 48px;
  right: 48px;
  z-index: 1;
  max-width: 520px;
}

.eyebrow {
  color: #66e6ef;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.4px;
}

.hero h1 {
  margin: 10px 0;
  font-size: clamp(36px, 4vw, 58px);
  letter-spacing: -2px;
}

.hero h2 {
  max-width: 440px;
  margin: 0 0 14px;

  font-size: clamp(19px, 2vw, 23px);
  font-weight: 500;
  line-height: 1.3;
}

.hero p {
  max-width: 390px;
  color: #acbdcc;
  font-size: 14px;
  line-height: 1.7;
}

/* CONTROLE DAS ANIMACOES */

.pause {
  position: absolute;
  bottom: 20px;
  left: 48px;
  z-index: 2;

  padding: 7px 11px;
  border: 1px solid #315060;
  border-radius: 6px;

  background: rgba(7, 29, 43, .70);
  color: #b9cedb;
  font-size: 11px;
}

/* PARTICULAS */

.specks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.specks i {
  position: absolute;
  bottom: -20px;
  left: var(--x);

  width: 3px;
  height: 3px;
  border-radius: 50%;

  background: #79ffff;
  box-shadow: 0 0 14px #00e7ef;

  opacity: 0;
  animation: rise var(--speed) linear infinite;
  animation-delay: var(--delay);
}

/* SCANNER */

.scan {
  position: absolute;
  top: -30%;
  left: 0;
  z-index: -2;

  width: 100%;
  height: 22%;

  pointer-events: none;

  background: linear-gradient(
    transparent,
    rgba(40, 238, 255, .08),
    transparent
  );

  animation: scan 9s linear infinite;
}

/* ONDAS DE CONEXAO */

.signal {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: -2;

  width: 230px;
  height: 95px;

  border: 1px solid rgba(93, 235, 245, .40);
  border-radius: 50%;

  pointer-events: none;

  transform: translate(-50%, -50%);
  animation: signal 6s ease-out infinite;
}

.signal.second {
  animation-delay: 3s;
}

.paused .art,
.paused .specks i,
.paused .scan,
.paused .signal {
  animation-play-state: paused;
}

/* KEYFRAMES */

@keyframes breathe {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.045) translateY(-8px);
  }
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  15%, 65% {
    opacity: .7;
  }
  100% {
    opacity: 0;
    transform: translateY(-850px);
  }
}

@keyframes scan {
  to {
    top: 120%;
  }
}

@keyframes signal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.5);
  }
  20% {
    opacity: .45;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.7);
  }
}

/* FORMULARIO DE LOGIN */

.form-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 64px 48px;
  border-top: 4px solid #153852;
  background: #f5f8fc;
}

.form-wrap {
  width: 100%;
  max-width: 390px;
}

.access {
  display: flex;
  align-items: center;
  gap: 9px;

  color: #087f9a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.access::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #099fbc;
}

.form-wrap h2 {
  margin: 21px 0 15px;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -.9px;
}

.intro {
  margin-bottom: 32px;
  color: #697f91;
  font-size: 14px;
  line-height: 1.7;
}

/* CAMPOS */

label.field {
  display: block;
  margin: 20px 0 9px;
  font-size: 12px;
  font-weight: 600;
}

input.text {
  width: 100%;
  height: 50px;
  padding: 0 14px;

  border: 1px solid #cedbe6;
  border-radius: 8px;

  background: #fff;
  color: #16354c;
  font-size: 16px;

  transition: border-color .2s;
}

input.text:hover {
  border-color: #76b5c6;
}

.password {
  position: relative;
}

.password input {
  padding-right: 78px;
}

.show {
  position: absolute;
  top: 5px;
  right: 8px;

  min-height: 40px;
  padding: 8px;

  border: 0;
  background: transparent;

  color: #5f788a;
  font-size: 11px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 9px;

  min-height: 24px;
  margin: 20px 0 25px;

  color: #526a7d;
  font-size: 12px;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: #069bbd;
}

/* BOTAO DE ENTRADA */

.submit {
  width: 100%;
  min-height: 49px;
  margin-top: 26px;

  border: 0;
  border-radius: 8px;
  background: var(--acs-blue);

  color: #fff;
  font-size: 13px;
  font-weight: 700;

  box-shadow: 0 8px 18px rgba(4, 154, 181, .12);
  transition: background .2s, transform .2s;
}

.submit:hover {
  background: #0789a5;
  transform: translateY(-1px);
}

.submit span {
  margin-left: 12px;
}

/* ERROS DE LOGIN */

.login-error {
  margin: 0 0 18px;
  padding: 13px 15px;

  border: 1px solid #edb4b4;
  border-radius: 8px;

  background: #fff1f1;
  color: #9b2525;
  font-size: 13px;
  line-height: 1.5;
}

.notice {
  margin-top: 17px;
  color: #24657b;
  font-size: 12px;
  line-height: 1.6;
}

/* RODAPE */

.foot {
  margin-top: 27px;
  color: #8396a4;
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}

/* NOTEBOOKS */

@media (max-width: 1100px) and (min-width: 761px) {
  .form-panel {
    padding: 48px 30px;
  }
  .brand {
    left: 26px;
  }
  .hero {
    left: 32px;
    right: 32px;
  }
  .pause {
    left: 32px;
  }
}

/* TELAS GRANDES */

@media (min-width: 1500px) {
  .visual {
    min-height: 900px;
  }
  .art {
    object-fit: contain;
  }
}

/* CELULARES */

@media (max-width: 760px) {
  .login {
    grid-template-columns: 1fr;
  }

  .visual {
    min-height: 380px;
  }

  .art {
    inset: -10%;
    width: 120%;
    height: 120%;
    object-position: center 44%;
    opacity: .78;

    filter:
      saturate(1.02)
      contrast(1.08)
      brightness(.78);
  }

  .brand {
    top: 22px;
    left: 22px;

    max-width: calc(100% - 44px);
    gap: 9px;
    padding: 7px 10px;
    font-size: 18px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand small {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .hero {
    left: 26px;
    right: 26px;
    bottom: 58px;
  }

  .hero h1 {
    margin: 10px 0;
    font-size: 34px;
  }

  .hero h2 {
    max-width: 270px;
    font-size: 18px;
  }

  .hero p,
  .hero .eyebrow {
    display: none;
  }

  .pause {
    left: auto;
    right: 17px;
    bottom: 12px;
  }

  .shade {
    background: linear-gradient(
      180deg,
      rgba(2, 14, 25, .55),
      transparent 35%,
      #020e19 100%
    );
  }

  .signal {
    top: 48%;
    width: 150px;
    height: 60px;
  }

  .form-panel {
    padding: 42px 26px 48px;
    border-top: 1px solid #0b5364;
  }

  .form-wrap h2 {
    font-size: 27px;
  }

  .intro {
    margin-bottom: 24px;
  }
}

/* CELULARES PEQUENOS */

@media (max-width: 380px) {
  .brand {
    font-size: 16px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .hero h1 {
    font-size: 31px;
  }
  .hero h2 {
    font-size: 17px;
  }
}

/* ACESSIBILIDADE */

@media (prefers-reduced-motion: reduce) {
  .art,
  .specks i,
  .scan,
  .signal {
    animation: none !important;
  }

  .signal {
    display: none;
  }

  .submit {
    transition: none;
  }
}

/* CORREÇÃO: IMAGEM COBRINDO TODO O PAINEL */

.visual {
    position: relative;
    overflow: hidden;
    background: #020e19;
}

.visual .art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    object-fit: cover !important;
    object-position: center center !important;

    max-width: none;
    opacity: 1;
}

/* Mantém o degradê sobre a imagem */
.visual .shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        180deg,
        rgba(2, 14, 25, 0.40) 0%,
        rgba(2, 14, 25, 0.05) 45%,
        rgba(2, 14, 25, 0.90) 100%
    );
}

/* Ajuste para celulares */
@media (max-width: 760px) {
    .visual .art {
        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* JRC-ACS - Fundo completo e login flutuante */

.login {
    position: relative;
    display: block;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: #020e19;
}

.visual {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
}

.visual .art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover !important;
    object-position: center !important;
    animation: none;
}

.visual .shade {
    background:
        linear-gradient(90deg,
            rgba(1, 10, 19, .55),
            rgba(1, 10, 19, .08) 55%,
            rgba(1, 10, 19, .35)
        ),
        linear-gradient(0deg,
            rgba(1, 10, 19, .75),
            transparent 60%
        );
}

.visual .brand {
    z-index: 4;
    top: 32px;
    left: 42px;
}

.visual .hero {
    z-index: 4;
    left: 48px;
    bottom: 85px;
}

.visual .pause {
    z-index: 6;
}

.form-panel {
    position: relative;
    z-index: 5;
    width: min(440px, calc(100% - 48px));
    min-height: 0;
    margin: clamp(70px, 14vh, 145px) max(5vw, 28px) 70px auto;
    padding: 36px 34px;
    border: 1px solid #dbe6ed;
    border-radius: 16px;
    background: rgba(249, 252, 255, .97);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
}

.form-wrap {
    max-width: none;
}

/* Luzes simulando transmissão nas fibras */

.visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        linear-gradient(
            110deg,
            transparent 25%,
            rgba(0, 230, 255, .09) 45%,
            rgba(90, 255, 255, .20) 50%,
            transparent 58%
        );

    background-size: 250% 100%;
    animation: acsFiberLight 5s linear infinite;
    mix-blend-mode: screen;
}

@keyframes acsFiberLight {
    from {
        background-position: 150% 0;
    }
    to {
        background-position: -150% 0;
    }
}

.paused .visual::after {
    animation-play-state: paused;
}

@media (max-width: 900px) {
    .login {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 110px 18px 28px;
    }

    .visual {
        position: absolute;
        inset: 0;
        min-height: 100%;
    }

    .visual .hero {
        display: none;
    }

    .visual .brand {
        top: 20px;
        left: 20px;
    }

    .form-panel {
        width: min(440px, 100%);
        margin: 0 auto 45px;
        padding: 30px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .visual::after {
        animation: none;
    }
}

/* JRC-ACS - Novo fundo NOC */

.visual .art {
    display: none !important;
}

.visual {
    background-image: url('/assets/img/wide_cinematic_high_tech_server_room_data_center.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}


/* Ocultar logo superior na tela de login */
.visual .brand {
    display: none !important;
}

