/* =====================================================================
   F2I TECH Support - Page de connexion agents (scp/login.php)
   Emplacement : C:\inetpub\wwwroot\osticket\scp\css\f2itech-login.css
   Logo attendu : C:\inetpub\wwwroot\osticket\scp\images\f2itech-login-logo.png
   Chargé en dernier dans include\staff\login.header.php
   ===================================================================== */

:root {
  --f2-navy: #0a2553;
  --f2-navy-2: #0f3a7a;
  --f2-blue: #1f6fd1;
  --f2-blue-dark: #185aab;
  --f2-cyan: #3fb6ff;
  --f2-text: #1f2937;
  --f2-muted: #6b7280;
  --f2-border: #e2e8f0;
}

/* ---------- Fond : on retire l'image osTicket ---------- */
html, body {
  height: 100%;
  margin: 0;
}
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  background: #f4f7fb !important;
  background-image: none !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
}
#background, #brickwall, #blur, #loginBox #blur { display: none !important; background: none !important; }

/* ---------- Panneau de marque (moitié gauche) ---------- */
body::before {
  content: "F2I TECH Support\A\AL'assistance technique de vos solutions\Abancaires et financières.";
  white-space: pre-line;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 50%;
  box-sizing: border-box;
  padding: 0 7vw;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  background:
    radial-gradient(circle at 20% 20%, rgba(63,182,255,.35) 0, rgba(63,182,255,0) 40%),
    radial-gradient(circle at 85% 80%, rgba(31,111,209,.45) 0, rgba(31,111,209,0) 45%),
    linear-gradient(145deg, var(--f2-navy) 0%, var(--f2-navy-2) 100%);
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 50%;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Carte de connexion (moitié droite) ---------- */
#loginBox {
  position: relative !important;
  z-index: 1;
  width: 400px !important;
  max-width: calc(100% - 40px);
  margin: 0 calc(25% - 200px) 0 0 !important;
  padding: 44px 40px 36px !important;
  background: #fff !important;
  border: 1px solid var(--f2-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(10, 37, 83, .12) !important;
  top: auto !important;
  left: auto !important;
  text-align: left !important;
  box-sizing: border-box;
}

/* Logo : remplace le kangourou par le logo F2I TECH */
#loginBox #logo { margin: 0 0 26px !important; height: auto !important; text-align: left; }
#loginBox #logo img { display: none !important; }
#loginBox #logo a {
  display: block !important;
  height: 64px;
  width: 100%;
  background: url(../images/f2itech-login-logo.png) left center / contain no-repeat;
}
#loginBox #logo .valign-helper { display: none; }

/* Message ("Authentication Required", erreurs) */
#login-message {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--f2-navy) !important;
  margin: 0 0 6px !important;
  text-align: left !important;
}
#loginBox .banner, #loginBox .banner small {
  color: var(--f2-muted) !important;
  font-size: 14px;
  text-align: left;
}

/* Formulaire */
#login fieldset, #loginBox fieldset {
  border: 0 !important;
  padding: 0 !important;
  margin: 18px 0 0 !important;
}
#loginBox input[type=text],
#loginBox input[type=password],
#loginBox input[type=email] {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
  height: 48px !important;
  margin: 0 0 14px !important;
  padding: 0 14px !important;
  font-size: 15px !important;
  color: var(--f2-text);
  background: #f7f9fc !important;
  border: 1px solid var(--f2-border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
#loginBox input:focus {
  outline: none !important;
  background: #fff !important;
  border-color: var(--f2-blue) !important;
  box-shadow: 0 0 0 4px rgba(31,111,209,.15) !important;
}

/* Bouton "Log In" pleine largeur */
#loginBox button.submit, #loginBox .submit, #loginBox button[type=submit] {
  float: none !important;
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--f2-blue) 0%, var(--f2-blue-dark) 100%) !important;
  border: 0 !important;
  border-radius: 12px !important;
  text-shadow: none !important;
  box-shadow: 0 8px 20px rgba(31,111,209,.28) !important;
  cursor: pointer;
  transition: transform .08s, box-shadow .15s, filter .15s;
}
#loginBox button.submit:hover { filter: brightness(1.06); box-shadow: 0 10px 24px rgba(31,111,209,.34) !important; }
#loginBox button.submit:active { transform: translateY(1px); }
#loginBox button.submit i { margin-right: 6px; }

/* Lien "mot de passe oublié" */
#loginBox h3 { margin: 0; }
#loginBox #reset-link, #loginBox a[href*="pwreset"] {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px !important;
  font-weight: 500;
  color: var(--f2-blue) !important;
  text-decoration: none;
}
#loginBox #reset-link:hover { text-decoration: underline; }

/* Connexion externe (SSO), si activée */
#loginBox .external-auth { margin-top: 18px; }

/* ---------- Copyright & Powered by ---------- */
#copyRights {
  position: relative !important;
  z-index: 1;
  width: 400px;
  max-width: calc(100% - 40px);
  margin: 20px calc(25% - 200px) 0 0 !important;
  padding: 0 !important;
  text-align: center;
  font-size: 12px !important;
  color: var(--f2-muted) !important;
  background: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  border: 0 !important;
}
#copyRights a { color: var(--f2-muted) !important; text-decoration: none; }
#poweredBy {
  position: fixed !important;
  right: 18px; bottom: 14px;
  z-index: 1;
  opacity: .35;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
  transform: scale(.85);
  transform-origin: right bottom;
}
#poweredBy:hover { opacity: .7; }

/* ---------- Tablette et mobile : carte centrée, bandeau en haut ---------- */
@media (max-width: 900px) {
  body { align-items: center; justify-content: flex-start; padding-top: 170px; box-sizing: border-box; }
  body::before, body::after {
    width: 100%;
    bottom: auto;
    height: 150px;
    padding: 0 24px;
    justify-content: center;
    text-align: center;
    font-size: 14px;
  }
  #loginBox, #copyRights { margin-right: 0 !important; margin-left: 0 !important; }
  #loginBox { padding: 32px 24px 28px !important; }
}