/* Overlay (loaded only when needed by JS) */
#fancy-lock {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #2f343f;
  color: #f0f0f0;
  font: 15px/1.5 system-ui, sans-serif;
  z-index: 9999;
}
#fancy-lock .card {
  width: min(400px, 92vw);
  padding: 24px;
  border-radius: 14px;
  background: #1e1e1e;
  border: 1px solid #333;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  text-align: center;
}
#fancy-lock h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
#fancy-lock p {
  margin: 0 0 18px;
  color: #aaa;
  font-size: 14px;
}
#fancy-lock input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #111;
  color: #eee;
  font-size: 14px;
}
#fancy-lock button {
  margin-top: 14px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: #3ddc97;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
#fancy-lock button:hover { background: #33c487; }
#fancy-lock .err { color: #ff6b6b; margin-top: 10px; font-size: 13px; display: none; }
/* Tidy "Remember" row */
#remember-line{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  color:#bbb;
  font-size:13px;
  line-height:1;
  width:auto;            /* جلوی کش آمدن را می‌گیرد */
  justify-content:center;/* اگر کارت وسط‌چین است */
  user-select:none;
}
#remember-line input{
  margin:0;
  width:16px;
  height:16px;
  flex:0 0 auto;
  position:relative;
  top:1px;               /* هم‌راستا با متن */
}
#remember-line span{
  flex:0 0 auto;
  white-space:nowrap;    /* متن نشکند */
}

/* (اختیاری) کارت را کمی باریک‌تر کن تا همه‌چیز جمع‌وجور بماند */
#fancy-lock .card{ max-width:380px; }

