/* sscvisual 0.1.1-RC1 (05/11/2026) – identidade visual TIVIT nas páginas sem login do GLPI 11.
 * 0.1.1: um só logo (o GLPI 11 desenha o dele com "content" no .glpi-logo – desligado; fica o fundo TIVIT grande);
 *        bloco do login com 80% da coluna branca e campos na largura toda do bloco (antes col-md-5 ≈ 42%). */
body.welcome-anonymous {
  --ssc-vermelho: #ED1C24;
  --ssc-azul: #23408E;
  --ssc-noite: #0B1A3D;
  min-height: 100vh;
  background: #F4F6FA !important;
}
body.welcome-anonymous .page-anonymous {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  background: transparent;
}

/* painel da marca (esquerda) – montado pelo login.js */
.ssc-hero {
  flex: 1 1 55%;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    url("rede.svg") center / cover no-repeat,
    radial-gradient(ellipse at 20% 15%, #2B4FAE 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(237, 28, 36, .45) 0%, transparent 50%),
    linear-gradient(135deg, var(--ssc-noite) 0%, var(--ssc-azul) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5rem 4rem;
}
.ssc-hero__topo { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.ssc-hero__meio h1 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #fff;
}
.ssc-hero__meio h1 span { color: var(--ssc-vermelho); }
.ssc-hero__meio p { font-size: 1.1rem; max-width: 34rem; opacity: .9; margin: 0; }
.ssc-hero__pilares { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.ssc-hero__pilares div {
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(3px);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .9rem;
}
.ssc-hero__pilares b { color: #fff; }
.ssc-hero__rodape { font-size: .8rem; opacity: .6; }
.ssc-hero::after {   /* faixa vermelha da marca */
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--ssc-vermelho), #FF5A5F 60%, transparent);
}

/* coluna do login (direita) */
body.welcome-anonymous .page-anonymous > .flex-fill {
  flex: 0 0 45%;
  max-width: 560px;
  margin: 0 !important;
  padding: 2rem 2.5rem !important;
  background: #fff;
  box-shadow: -12px 0 40px rgba(11, 26, 61, .12);
}
body.welcome-anonymous .glpi-logo {
  content: normal !important;          /* 0.1.1: tira o logo do GLPI (content: var(--logo)) – fica só o fundo TIVIT */
  display: inline-block !important;
  width: 300px !important;
  height: 93px !important;
  max-width: 100%;
  background: url("logo-tivit.png") center / contain no-repeat !important;
  margin-bottom: 1.5rem !important;
}
/* 0.1.1: bloco do login = 80% da coluna branca; campos na largura toda do bloco */
body.welcome-anonymous .page-anonymous > .flex-fill .container-tight {
  width: 80% !important;
  max-width: 80% !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}
body.welcome-anonymous .main-content-card form > .row > [class*="col-md"] {
  flex: 0 0 100%;
  max-width: 100%;
}
body.welcome-anonymous .main-content-card {
  border: 0;
  box-shadow: none;
  background: transparent;
}
body.welcome-anonymous .main-content-card .card-header h2 { color: var(--ssc-noite); font-weight: 700; }
body.welcome-anonymous .btn-primary {
  background: var(--ssc-vermelho) !important;
  border-color: var(--ssc-vermelho) !important;
  font-weight: 600;
  padding: .65rem;
}
body.welcome-anonymous .btn-primary:hover { background: #C8151C !important; border-color: #C8151C !important; }
body.welcome-anonymous .form-control:focus { border-color: var(--ssc-azul); box-shadow: 0 0 0 .2rem rgba(35, 64, 142, .15); }
body.welcome-anonymous a { color: var(--ssc-azul); }
.ssc-login-sub { color: #6B7280; font-size: .9rem; margin-top: -.75rem; margin-bottom: 1.25rem; }

/* telas estreitas: painel vira faixa no topo */
@media (max-width: 991px) {
  body.welcome-anonymous .page-anonymous { flex-direction: column; }
  .ssc-hero { flex: 0 0 auto; padding: 2rem 1.5rem 2.5rem; }
  .ssc-hero__pilares, .ssc-hero__rodape, .ssc-hero__topo { display: none; }
  .ssc-hero__meio p { font-size: .95rem; }
  body.welcome-anonymous .page-anonymous > .flex-fill { flex: 1 1 auto; max-width: none; box-shadow: none; }
  body.welcome-anonymous .page-anonymous > .flex-fill .container-tight { width: 100% !important; max-width: 30rem !important; }
}
