/* Gestarux Login 2026 - ONLY for Dolibarr login screen */
:root{
  --gx-green: #0A887B; /* from theme bar screenshot */
  --gx-green-2: #0FB3A0;
  --gx-ink: #0b1220;
  --gx-muted: rgba(255,255,255,.78);
}

body.bodylogin{
  min-height:100vh;
}

/* Once our overlay is mounted, hide any legacy blocks (backgrounds/bars) completely */
body.bodylogin.gxlogin-ready > *:not(#gxlogin2026){
  visibility: hidden !important;
}
body.bodylogin.gxlogin-ready #gxlogin2026{
  visibility: visible !important;
}

/* Hide default login center without removing it (keeps server-side messages intact if needed) */
body.bodylogin .login_center.gxlogin-hidden{
  display:none !important;
}

/* Main overlay */
#gxlogin2026.gxlogin2026{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(16px, 3vw, 44px);
  /* Fully opaque gradient so nothing underneath is visible */
  background: linear-gradient(135deg, rgba(10,136,123,1), rgba(5,45,41,1));
  overflow:auto;
}

#gxlogin2026.gxlogin2026::before{
  content:"";
  position:absolute;
  inset:0;
  /*
   * (UI) Remove background photo behind the green overlay.
   * The user requested a clean, solid/gradient background with NO images
   * visible behind the green layer to reduce visual noise.
   */
  background-image:none;
  opacity:0;
}

#gxlogin2026 .gxlogin-card{
  position:relative;
  width:min(1020px, 100%);
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: 26px;
  overflow:hidden;
  box-shadow: 0 30px 95px rgba(0,0,0,.35);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#gxlogin2026 .gxlogin-left{
  position:relative;
  padding: clamp(22px, 3vw, 38px);
  color: #fff;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(15,179,160,.35), transparent 55%),
    radial-gradient(900px 520px at 95% 30%, rgba(10,136,123,.55), transparent 60%),
    linear-gradient(135deg, rgba(10,136,123,.95), rgba(4,39,36,.92));
}

#gxlogin2026 .gxlogin-left::after{
  content:"";
  position:absolute;
  inset:0;
  /* (UI) Remove abstract texture on the left panel (clean look) */
  background-image:none;
  opacity:0;
}

#gxlogin2026 .gxlogin-left-inner{
  position:relative;
  z-index:1;
  max-width: 420px;
}

#gxlogin2026 .gxlogin-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 600;
  letter-spacing: .3px;
}

#gxlogin2026 .gxlogin-title{
  margin: 18px 0 8px 0;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.1;
  font-weight: 800;
}

#gxlogin2026 .gxlogin-subtitle{
  margin: 0 0 18px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gx-muted);
}

#gxlogin2026 .gxlogin-features{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-top: 18px;
}

#gxlogin2026 .gxlogin-features .item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size: 13px;
  color: rgba(255,255,255,.86);
}

#gxlogin2026 .gxlogin-features .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 4px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 6px rgba(255,255,255,.10);
}

#gxlogin2026 .gxlogin-right{
  padding: clamp(18px, 3vw, 34px);
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.75);
}

#gxlogin2026 .gxlogin-form{
  width: min(420px, 100%);
  color: var(--gx-ink);
}

/* Remove any legacy background images/styles that may come with the copied login markup */
#gxlogin2026 .gxlogin-form,
#gxlogin2026 .gxlogin-form *{
  background-image: none !important;
}

#gxlogin2026 .gxlogin-logo{
  display:flex;
  justify-content:center;
  margin: 0 0 14px 0;
}

#gxlogin2026 .gxlogin-logo-img{
  max-width: 120px;
  height: auto;
}

#gxlogin2026 .gxlogin-messages{
  margin: 0 0 12px 0;
}

#gxlogin2026 .gxlogin-form h1,
#gxlogin2026 .gxlogin-form h2,
#gxlogin2026 .gxlogin-form .titre,
#gxlogin2026 .gxlogin-form .login_title{
  font-weight: 800;
}

/* Normalize Dolibarr login form spacing */
#gxlogin2026 .gxlogin-form form#login{
  margin: 0;
}

#gxlogin2026 .gxlogin-form input[type="text"],
#gxlogin2026 .gxlogin-form input[type="password"],
#gxlogin2026 .gxlogin-form input[type="email"],
#gxlogin2026 .gxlogin-form input[type="tel"],
#gxlogin2026 .gxlogin-form select{
  width: 100% !important;
  box-sizing: border-box;
  border-radius: 14px !important;
  border: 1px solid rgba(10,136,123,.25) !important;
  background: rgba(255,255,255,.95) !important;
  padding: 12px 14px !important;
  height: auto !important;
  min-height: 44px;
  outline: none !important;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

#gxlogin2026 .gxlogin-form input[type="text"]:focus,
#gxlogin2026 .gxlogin-form input[type="password"]:focus,
#gxlogin2026 .gxlogin-form input[type="email"]:focus,
#gxlogin2026 .gxlogin-form input[type="tel"]:focus,
#gxlogin2026 .gxlogin-form select:focus{
  border-color: rgba(10,136,123,.55) !important;
  box-shadow: 0 0 0 6px rgba(10,136,123,.12) !important;
}

#gxlogin2026 .gxlogin-form input[type="submit"],
#gxlogin2026 .gxlogin-form button[type="submit"],
#gxlogin2026 .gxlogin-form .gxbtn{
  width: 100% !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  min-height: 46px;
  font-weight: 800 !important;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gx-green), var(--gx-green-2)) !important;
  color: #fff !important;
  box-shadow: 0 18px 40px rgba(10,136,123,.22);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

#gxlogin2026 .gxlogin-form input[type="submit"]:hover,
#gxlogin2026 .gxlogin-form button[type="submit"]:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 22px 55px rgba(10,136,123,.28);
}

#gxlogin2026 .gxlogin-form a{
  color: var(--gx-green);
  text-decoration: none;
  font-weight: 600;
}

#gxlogin2026 .gxlogin-form a:hover{
  text-decoration: underline;
}

/* Reduce old login tables/center blocks if present */
#gxlogin2026 .gxlogin-form table{
  width: 100%;
}

@media (max-width: 920px){
  #gxlogin2026 .gxlogin-card{
    grid-template-columns: 1fr;
  }
  #gxlogin2026 .gxlogin-left{
    padding: 18px;
  }
  #gxlogin2026 .gxlogin-features{
    grid-template-columns: 1fr;
  }
}
