/* =========================
   Login page (scoped)
   ========================= */

#login-page{
  padding: 64px 16px;
  font-family:'Lato';
}

#login-page .login-container{
  max-width:420px;
  margin:0 auto;
}

#login-page .login-card{
  background:#ffffff;
  border:1px solid #e4e7f0;
  border-radius:16px;
  padding:36px 34px 32px;
  box-shadow:0 20px 40px rgba(15,23,42,.12);
}

#login-page .brand{
  text-align:center;
  margin-bottom:28px;
}

#login-page .brand-logo{
  width:56px;
  height:56px;
  margin:0 auto 14px;
  border-radius:14px;
  background:linear-gradient(135deg, #7c3aed, #3b82f6);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:700;
}

#login-page h1{
  margin:0;
  font-size:26px;
  letter-spacing:-.02em;
  color:#0f172a;
}

#login-page .brand p{
  margin:6px 0 0;
  font-size:14px;
  color:#475569;
}

/* Form */

#login-page form{
  display:grid;
  gap:16px;
}

#login-page .field label{
  display:block;
  font-size:13px;
  color:#475569;
  margin-bottom:6px;
}

#login-page input{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid #e4e7f0;
  background:#f8fafc;
  font-size:15px;
  color:#0f172a;
}

#login-page input:focus{
  outline:none;
  border-color:#7c3aed;
  box-shadow:0 0 0 3px rgba(124,58,237,.15);
}

/* Actions */

#login-page .actions{
  text-align:right;
}

#login-page .link{
  font-size:13px;
  color:#475569;
  text-decoration:none;
}

#login-page .link:hover{
  text-decoration:underline;
}

/* Checkbox "Rester connecté" */

#login-page .remember-row{
  display:flex;
  align-items:center;
  gap:8px;
}

/* Texte */
#login-page .remember-text{
  font-size:13px;
  color:#334155;
  line-height:1.4;
  white-space:nowrap;
}

/* ===== Checkbox custom avec feedback visuel ===== */

#login-page .remember-input input[type="checkbox"]{
  all: unset;                 /* reset total */
  width:18px;
  height:18px;
  border:1.5px solid #94a3b8;
  border-radius:4px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  transition: background .15s ease, border-color .15s ease;
}

/* ✓ quand coché */
#login-page .remember-input input[type="checkbox"]::after{
  content:"";
  width:10px;
  height:6px;
  border-left:2px solid white;
  border-bottom:2px solid white;
  transform: rotate(-45deg);
  opacity:0;
  transition: opacity .12s ease;
}

/* état checked */
#login-page .remember-input input[type="checkbox"]:checked{
  background:#7c3aed;
  border-color:#7c3aed;
}

#login-page .remember-input input[type="checkbox"]:checked::after{
  opacity:1;
}

/* Button */

#login-page button{
  margin-top:8px;
  width:100%;
  padding:13px;
  border-radius:14px;
  border:none;
  background:linear-gradient(135deg, #7c3aed, #3b82f6);
  color:#fff;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(124,58,237,.25);
}

#login-page button:hover{
  filter:brightness(1.05);
}
