/* ===== AEGIS THEME FOR GLPI ===== */

body,
.page,
.layout,
body.bg-blue,
body.bg-azure,
body.bg-dark {
  background:
    linear-gradient(90deg, rgba(2,8,18,.98) 0%, rgba(2,8,18,.82) 42%, rgba(2,8,18,.96) 100%),
    url("/themes/aegis/img/bg-datacenter.jpg") center top / cover fixed no-repeat !important;
  color: #e8f2ff !important;
}

/* LOGIN / CARD */
.card,
.login-box,
.content,
.page-card,
.page-card-container,
.auth-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(0,140,255,.12), transparent 34%),
    rgba(5,18,38,.96) !important;
  border: 1px solid rgba(0,174,255,.36) !important;
  box-shadow: 0 0 28px rgba(0,150,255,.14) !important;
  color: #e8f2ff !important;
  border-radius: 18px !important;
}

/* LOGO NA TELA NÃO LOGADA */
.page-card .navbar-brand,
.page-card-container .navbar-brand,
.auth-card .navbar-brand {
  display: flex !important;
  justify-content: center !important;
}

.page-card .navbar-brand img,
.page-card-container .navbar-brand img,
.auth-card .navbar-brand img,
img[alt="GLPI"] {
  content: url("/themes/aegis/img/logo-aegis.png") !important;
  max-height: 92px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* INPUTS */
input,
select,
textarea,
.form-control,
.form-select {
  background: rgba(2,10,24,.92) !important;
  border: 1px solid rgba(0,174,255,.55) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
}

input::placeholder,
textarea::placeholder {
  color: #9fb8d6 !important;
}

/* LABELS / TEXTOS */
label,
.form-label,
.card-title,
.card-header,
.text-muted,
.form-check-label {
  color: #dce7f6 !important;
}

/* BOTÕES */
.btn,
button,
input[type="submit"] {
  border-radius: 10px !important;
  border: none !important;
  font-weight: 700 !important;
}

.btn-primary,
button[type="submit"],
input[type="submit"] {
  background: linear-gradient(90deg, #005cff, #168dff) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(0,150,255,.20) !important;
}

/* LINKS */
a {
  color: #00d8ff !important;
}

/* HEADER / NAVBAR */
.navbar,
.main-header,
.topbar {
  background: rgba(1,8,19,.90) !important;
  border-bottom: 1px solid rgba(0,174,255,.35) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}

/* SIDEBAR / MENU */
.sidebar,
.main-sidebar,
.navbar-vertical {
  background: rgba(1,10,24,.96) !important;
  border-right: 1px solid rgba(0,174,255,.25) !important;
}

/* TABELAS */
.table,
.table tr,
.table td,
.table th {
  background-color: rgba(2,10,24,.72) !important;
  color: #dce7f6 !important;
  border-color: rgba(0,174,255,.20) !important;
}

.table th {
  color: #ffffff !important;
  background-color: rgba(1,8,19,.95) !important;
}

/* ALERTAS */
.alert {
  border-radius: 12px !important;
  border: 1px solid rgba(0,174,255,.35) !important;
}

/* FOOTER */
.footer {
  background: rgba(1,10,24,.94) !important;
  border-top: 1px solid rgba(0,174,255,.35) !important;
  color: #8fa3bd !important;
}

/* ===== AEGIS LOGIN LOGO OVERRIDE ===== */
.welcome-anonymous .glpi-logo {
  display: block !important;
  width: 260px !important;
  height: 95px !important;
  margin: 0 auto 28px auto !important;
  background: url("/themes/aegis/img/logo-aegis.png") center center / contain no-repeat !important;
}

.welcome-anonymous .glpi-logo::before,
.welcome-anonymous .glpi-logo::after {
  display: none !important;
  content: none !important;
}

/* ===== LOGO VIRTUALWEB LOGIN ===== */
.welcome-anonymous .glpi-logo {
  display: block !important;
  width: 260px !important;
  height: 95px !important;
  margin: 0 auto 28px auto !important;
  background: url("/themes/aegis/img/logo-virtualweb.png") center center / contain no-repeat !important;
}

/* remove qualquer imagem antiga */
.welcome-anonymous .glpi-logo img {
  display: none !important;
}

.welcome-anonymous .glpi-logo::before,
.welcome-anonymous .glpi-logo::after {
  display: none !important;
  content: none !important;
}
