/* =====================================
   QUICK LOGIN – FINAL CLEAN VERSION
===================================== */

/* ---------- BACKDROP ---------- */
#quick-login-bg {
  background: linear-gradient(rgba(25,40,60,.78), rgba(25,40,70,.88));
  backdrop-filter: blur(7px);
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99998;
  animation: fadeIn .25s ease;
}

/* ---------- PANEL ---------- */
#quick-login-panel {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 94vw;
  background: linear-gradient(160deg, #1b2c44, #223654);
  border-radius: 20px;
  padding: 18px 20px 20px;
  box-shadow: 0 20px 80px rgba(0,0,0,.55);
  z-index: 99999;
  font-family: system-ui, "Segoe UI", sans-serif;
  color: #f2f6ff;
  box-sizing: border-box;
}

/* ---------- CONTENT ---------- */
#quick-login-panel .content {
  position: relative;
}

/* ---------- TITLE ---------- */
#quick-login-panel h3 {
  text-align: center;
  font-size: 1.25em;
  margin: 0 0 8px;
  color: #a9caff;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-bottom: 6px;
  letter-spacing: .4px;
}

/* Register accent */
#quick-login-panel h3 a:last-child {
  color: #71bcff;
  font-weight: 700;
  background: rgba(113,188,255,.18);
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 6px;
}

/* ---------- FORM LAYOUT ---------- */
#quick-login-panel fieldset {margin:0;padding:0}

#quick-login-panel dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 6px;
}
#quick-login-panel dt,
#quick-login-panel dd {margin:0}

/* Labels */
#quick-login-panel label {
  font-size: .9em;
  font-weight: 500;
  color: #e6efff;
  white-space: nowrap;
}

/* ---------- INPUTS ---------- */
#quick-login-panel input[type="text"],
#quick-login-panel input[type="password"] {
  width: 100%;
  height: 26px;
  padding: 3px 7px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #1e2f48;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  background-clip: padding-box;
}

#quick-login-panel input:focus {
  border-color: #74b9ff;
  box-shadow: 0 0 6px rgba(115,185,255,.9);
  outline: none;
}

/* ---------- FORGOT PASSWORD ---------- */
.input-link {grid-column:2}
.input-link a {
  font-size: .95em;
  color: #9ad0ff;
  font-weight: 600;
  display:inline-block;
}
.input-link a:hover {
  color:#cfeaff;
  text-decoration: underline;
}

/* ---------- SWITCHES ---------- */
#quick-login-panel .ql-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

#quick-login-panel .ql-options label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #eef4ff;
  font-size: .95em;
}

/* Icons */
#quick-login-panel .ql-options label::before {
  content: "🔒";
  font-size: 1.15em;
}
#quick-login-panel .ql-options label:last-child::before {
  content: "👁️";
}

/* Switch core */
#quick-login-panel input[type="checkbox"] {
  appearance: none;
  width: 34px;
  height: 18px;
  background: #3a4c6d;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

#quick-login-panel input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d6def5;
  transition: .2s;
}

/* Active */
#quick-login-panel input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #6fbaff, #3b82f6);
}
#quick-login-panel input[type="checkbox"]:checked::before {
  transform: translateX(16px);
  background: #ffffff;
}

/* ---------- BUTTON ---------- */
#quick-login-panel .submit-buttons {
  display:flex;
  justify-content:center;
  margin-top:12px;
}

#quick-login-panel .button1 {
  width:200px;
  height:36px;
  font-size:14px;
  border-radius:999px;
  border:none;
  background:linear-gradient(135deg,#74b9ff,#3b82f6);
  color:#fff;
  font-weight:600;
  box-shadow:0 8px 18px rgba(100,170,255,.45);
}

/* ---------- CLOSE ---------- */
#quick-login-panel .close {
  position:absolute;
  top:6px;
  right:6px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,.35);
}
#quick-login-panel .close::before {
  content:"✕";
  font-size:15px;
  color:#fff;
}
#quick-login-panel .close:hover {
  background: rgba(255,255,255,.3);
  transform: scale(1.05);
}

/* ---------- DESKTOP WIDER ---------- */
@media (min-width: 900px){
  #quick-login-panel {width:520px}
  #quick-login-panel .ql-options label span {white-space:nowrap}
}

/* ---------- MOBILE ---------- */
@media (max-width: 700px){

  #quick-login-panel{
    width:94vw;
    max-width:380px;
    padding:14px 16px 16px;
    top:50%;
    transform:translate(-50%,-50%);
    border-radius:18px;
  }

  #quick-login-panel dl {display:block}

  #quick-login-panel label {font-size:.85em}

  #quick-login-panel input[type="text"],
  #quick-login-panel input[type="password"]{
    height:28px;
    font-size:12px;
    padding:4px 7px;
  }

  .input-link a {font-size:.92em}

  #quick-login-panel .ql-options label {font-size:.85em}

  #quick-login-panel input[type="checkbox"]{
    width:26px;
    height:14px;
  }

  #quick-login-panel input[type="checkbox"]::before{
    width:10px;
    height:10px;
  }

  #quick-login-panel input[type="checkbox"]:checked::before{
    transform:translateX(12px);
  }

  #quick-login-panel .button1{
    width:160px;
    height:32px;
    font-size:13px;
  }

  #quick-login-panel .close{
    top:8px;
    right:8px;
  }
}

/* ---------- ANIMATION ---------- */
@keyframes fadeIn {
  from {opacity:0}
  to {opacity:1}
}

/* FIX: tekst niet rechts, maar mooi links naast icoon */
#quick-login-panel .ql-options label {
  grid-template-columns: auto auto 1fr auto !important;
  justify-items: start;
  text-align: left;
}

/* Tekstblok correct positioneren */
#quick-login-panel .ql-options label span {
  white-space: nowrap;
  justify-self: start;
}

/* Switch altijd rechts houden */
#quick-login-panel .ql-options input[type="checkbox"] {
  justify-self: end;
}

/* Iconen strak links houden */
#quick-login-panel .ql-options label::before {
  justify-self: start;
}
