/*
 * Innovando Insight — Login UI
 *
 * Obiettivo:
 * - UI elegante e pulita.
 * - Nessuna sostituzione dei link standard di WordPress ("Password lost" e "Back to...").
 * - Background e logo vengono impostati via CSS inline dal plugin.
 */

/* [BLOCK START] Font e reset minimo */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

html, body.login {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}
/* [BLOCK END] Font e reset minimo */

/* [BLOCK START] Background e layout */
body.login {
  background: no-repeat center center fixed !important;
  background-size: cover !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  overflow: hidden !important;
}

#login {
  margin-right: 6% !important;
  background: rgba(255, 255, 255, 0.72) !important;
  padding: 56px 48px !important;
  width: 440px !important;
  border-radius: 28px !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.30) !important;
  position: relative !important;
  animation: iiFadeInUp 1.05s ease-out forwards;
}

@keyframes iiFadeInUp {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
/* [BLOCK END] Background e layout */

/* [BLOCK START] Logo */
.login h1 a {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  height: 82px !important;
  width: 82px !important;
  display: block !important;
  margin: 0 auto 18px auto !important;
}
/* [BLOCK END] Logo */

/* [BLOCK START] Campi */
.login form .input {
  padding-left: 14px !important;
  border-radius: 10px !important;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.login form .input:focus {
  box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.18) !important;
  border-color: rgba(218, 41, 28, 0.55) !important;
}
/* [BLOCK END] Campi */

/* [BLOCK START] Link standard WordPress (inline + icone, restano quelli di default) */
.ii-login-links{
  margin-top: 18px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}

#nav,
#backtoblog{
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  text-align: center !important;
}

#nav a,
#backtoblog a{
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  font-size: 13px !important;
  color: #444 !important;
}

#nav a:hover,
#backtoblog a:hover{
  text-decoration: underline !important;
}

/* Icone (dashicons già enqueue) */
#nav.ii-login-link--lostpass a:before{
  content: "\f321";
  font-family: dashicons;
  font-size: 16px;
  line-height: 1;
}

#backtoblog.ii-login-link--back a:before{
  content: "\f341";
  font-family: dashicons;
  font-size: 16px;
  line-height: 1;
}
/* [BLOCK END] Link standard WordPress */

/* [BLOCK START] Responsive */
@media (max-width: 840px) {
  body.login {
    justify-content: center !important;
    padding: 18px !important;
  }
  #login {
    width: 100% !important;
    margin: 0 !important;
    max-width: 520px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #login {
    animation: none !important;
  }
}
/* [BLOCK END] Responsive */

/* [BLOCK START] Footer aziendale nel box login */
.ii-login-company{margin-top:16px !important;padding-top:14px !important;border-top:1px solid rgba(0,0,0,0.08) !important;text-align:center !important;font-size:13px !important;color:#666 !important;}
/* [BLOCK END] Footer aziendale nel box login */
