/* ==========================================================================
   osTicket 1.18 — Tema "Modern" per il login staff (scp/login.php, pwreset.php)
   Caricato DOPO scp/css/login.css (include/staff/login.header.php).
   Lo sfondo è a tema (circuiti, come il portale clienti): l'eventuale immagine
   caricata in Admin come sfondo del login non viene mostrata.
   ========================================================================== */

:root {
  --ost-primary: #2563eb;
  --ost-primary-600: #1d4ed8;
  --ost-text: #0f172a;
  --ost-muted: #64748b;
  --ost-border-strong: #cbd5e1;
  --ost-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

body#loginBody {
  background-color: #0b1e4a;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M0 40h46l22 22h44M112 62v44l22 22h46M24 180v-44l22-22h34M124 0v24l-22 22M150 128v52M60 114V90'/%3E%3C/g%3E%3Cg fill='%2393c5fd' fill-opacity='.35'%3E%3Ccircle cx='46' cy='40' r='2.6'/%3E%3Ccircle cx='112' cy='62' r='2.6'/%3E%3Ccircle cx='80' cy='114' r='2.6'/%3E%3Ccircle cx='102' cy='46' r='2.6'/%3E%3Ccircle cx='150' cy='128' r='2.6'/%3E%3Ccircle cx='60' cy='90' r='2.6'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(700px 500px at 12% 18%, rgba(14, 165, 233, .40), transparent 65%),
    radial-gradient(800px 600px at 88% 85%, rgba(99, 102, 241, .45), transparent 65%),
    linear-gradient(150deg, #071533 0%, #0b1e4a 40%, #1e3a8a 100%);
  background-attachment: fixed;
  font-family: var(--ost-font);
}
body, input { font-family: var(--ost-font); color: var(--ost-text); }

/* l'immagine di sfondo caricata in Admin non viene usata */
#brickwall, #blur, #background { display: none; }

#loginBox {
  width: 400px;
  margin-left: -200px;
  top: 14%;
  padding: 32px 36px 28px;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .45);
}
#loginBox:after {
  background-color: #fff;
  border: none;
  border-radius: 16px;
}

#logo a { height: 84px; }
#logo a img { max-height: 60px; }

h3 { color: #dc2626; font-size: .85em; }
#login-message:empty { margin: 0 0 .5em; }
div.banner { color: var(--ost-muted); font-size: .9em; }

form { width: 100%; }
fieldset { margin: 0; }
fieldset input,
input[type=text],
input[type=password] {
  width: 100%;
  margin-bottom: 14px;
  padding: 11px 14px;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--ost-border-strong);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  border: 1px solid var(--ost-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .2);
  outline: none;
}
::placeholder { color: #94a3b8; font-style: normal; }

#reset-link { font-size: 13px; color: var(--ost-primary); text-decoration: none; }
#reset-link:hover { text-decoration: underline; }
fieldset h3 { line-height: 40px; }

input[type="submit"],
input[type="reset"],
input[type="button"],
.action-button,
.button {
  height: auto;
  line-height: 20px;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--ost-border-strong) inset;
  background-color: #fff;
  color: var(--ost-text);
}
button[type=submit], input[type="submit"], .primary.button {
  color: #fff;
  font-weight: 600;
  background-color: var(--ost-primary);
  box-shadow: none;
}
button[type=submit]:hover, input[type=submit]:hover, input[type=submit]:active {
  color: #fff;
  background-color: var(--ost-primary-600);
  box-shadow: none;
}

#loading.dialog {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding-top: 40%;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  color: var(--ost-primary);
}
#loading.dialog h1 { font-size: 18px; font-weight: 600; }

hr { border-bottom-color: #e2e8f0; }

#company { bottom: -44px; }
#company .content {
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, .7);
}

#poweredBy {
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
  text-shadow: none;
  color: rgba(255, 255, 255, .65);
  border-radius: 8px;
}
#poweredBy .osticket-logo { filter: brightness(2) opacity(.8); }

@media (max-width: 480px) {
  #loginBox { width: auto; left: 16px; right: 16px; margin-left: 0; top: 8%; padding: 24px 20px; }
  #company { width: auto; left: 0; right: 0; margin-left: 0; }
}
