/* =========================
   LOGIN - Enterprise Minimal (WHITE)
   (usa variabili Bootstrap :root)
   ========================= */

body#login{
  margin:0;
  min-height:100vh;
  font-family:'Lato', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--bs-body-color);
  background:
    linear-gradient(180deg, var(--bs-light) 0%, #ffffff 55%, var(--bs-light) 100%);
  display:grid;
  place-items:center;
  padding: 26px;
}

/* layout */
.cf-shell{
  width:100%;
  max-width: 980px;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items: stretch;
}

/* left */
.cf-brand{
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
  padding: 34px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  position:relative;
  overflow:hidden;
}

/* accent line (pulita, non “sparata”) */
.cf-brand::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 5px;
  background: linear-gradient(180deg,
    rgba(var(--bs-primary-rgb), 1),
    rgba(var(--bs-info-rgb), 1)
  );
  opacity:.9;
}

/* content */
.cf-brand-content{
  padding-left: 10px;
}

.cf-logo{
  height: 64px;
  width:auto;
  display:block;
  margin-bottom: 18px;
}

.cf-brand h1{
  margin:0 0 10px;
  font-size: 28px;
  font-weight: 900;
  color: var(--bs-dark);
  letter-spacing:.2px;
}

.cf-brand p{
  margin:0 0 14px;
  font-size: 14px;
  color: rgba(33,37,41,.72);
  line-height: 1.55;
}

/* bullets */
.cf-bullets{
  margin: 18px 0 0;
  padding: 0;
  list-style:none;
  display:grid;
  gap: 10px;
}

.cf-bullets li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  font-size: 13.5px;
  color: rgba(33,37,41,.78);
}

.cf-bullets li::before{
  content:"";
  width: 10px; height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .95);
}

/* footer */
.cf-foot{
  margin-top: 18px;
  font-size: 12px;
  color: rgba(33,37,41,.55);
  padding-left: 10px;
}
.cf-foot a{
  color: rgba(var(--bs-primary-rgb), .95);
  text-decoration:none;
}
.cf-foot a:hover{ text-decoration:underline; }

/* right: form */
.cf-form-pane{
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
  padding: 34px;
  display:flex;
  align-items:center;
}

.login-container, .login-box{ width:100%; }

.cf-form-title{
  margin:0 0 6px;
  font-weight: 900;
  font-size: 24px;
  color: var(--bs-dark);
}

.cf-form-sub{
  margin:0 0 18px;
  font-size: 13px;
  color: rgba(33,37,41,.65);
}

.login-error{
  background: var(--bs-danger-bg-subtle);
  color: var(--bs-danger);
  border: 1px solid var(--bs-danger-border-subtle);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* inputs */
.login-form .input-group{ margin-bottom: 16px; }

.login-form label{
  display:block;
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(33,37,41,.70);
}

.login-form input{
  width:100%;
  height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.14);
  outline:none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.login-form input:focus{
  border-color: rgba(var(--bs-primary-rgb), .70);
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), .16);
}

/* toggle */
.input-with-toggle{ position:relative; }
.input-with-toggle input{ padding-right: 46px; }

.pw-toggle{
  position:absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  padding: 7px 9px;
  cursor:pointer;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1;
  color: rgba(33,37,41,.65);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pw-toggle:hover{
  background: rgba(0,0,0,.04);
  color: rgba(33,37,41,.85);
}
.pw-toggle.on{
  border-color: rgba(var(--bs-primary-rgb), .35);
  background: rgba(var(--bs-primary-rgb), .10);
  color: rgba(var(--bs-primary-rgb), 1);
}

/* button */
.btn-login{
  width:100%;
  height: 48px;
  border:0;
  border-radius: 12px;
  font-weight: 900;
  font-size: 15px;
  color:#fff;
  cursor:pointer;
  background: rgba(var(--bs-primary-rgb), 1);
  box-shadow: 0 10px 22px rgba(var(--bs-primary-rgb), .18);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn-login:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(var(--bs-primary-rgb), .22);
  background: rgba(var(--bs-primary-rgb), .92);
}
.btn-login:active{ transform: translateY(0); }

/* responsive */
@media (max-width: 900px){
  .cf-shell{
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .cf-brand, .cf-form-pane{ padding: 26px; }
}