/* QualityPack — account slide-out drawer (login + logged-in menu). */

.qp-acc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1085;
  background: rgba(15, 23, 30, 0);
  visibility: hidden;
  transition: background .25s ease, visibility .25s ease;
}
.qp-acc-overlay.is-open {
  background: rgba(15, 23, 30, 0.45);
  visibility: visible;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.qp-acc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: #fff;
  z-index: 1095;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.qp-acc-drawer.is-open { transform: translateX(0); }

.qp-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #eef1f3;
  flex-shrink: 0;
}
.qp-acc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2a24;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.qp-acc-title i { color: #94c93d; }
.qp-acc-close {
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.qp-acc-close:hover { background: #f3f5f7; color: #111; }

.qp-acc-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

/* Login form */
.qp-acc-form { display: block; }
.qp-acc-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: #6c7770;
  margin-bottom: 0.4rem;
}
.qp-acc-lead {
  color: #6c7770;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.qp-acc-field {
  margin-bottom: 14px;
}
.qp-acc-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #4d5860;
  margin-bottom: 6px;
}
.qp-acc-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid #e6ebee;
  border-radius: 10px;
  background: #fbfcfd;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.qp-acc-input:focus {
  border-color: #94c93d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(148, 201, 61, 0.12);
}
.qp-acc-error {
  background: #fdeeee;
  color: #c62828;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: none;
}
.qp-acc-error.is-visible { display: block; }

.qp-acc-submit {
  width: 100%;
  background: #94c93d;
  color: #fff;
  border: 0;
  padding: 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.qp-acc-submit:hover  { background: #7eb030; }
.qp-acc-submit:active { transform: scale(0.99); }
.qp-acc-submit[disabled] { background: #9aa1a6; cursor: progress; }

.qp-acc-foot-links {
  margin-top: 1rem;
  font-size: 0.88rem;
  text-align: center;
}
.qp-acc-foot-links a { color: #6c7770; }
.qp-acc-foot-links a:hover { color: #94c93d; }
.qp-acc-foot-sep { color: #d4dade; margin: 0 6px; }

.qp-acc-note {
  margin-top: 1.5rem;
  padding: 12px 14px;
  background: #f3f5f7;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #6c7770;
  line-height: 1.5;
}
.qp-acc-note i { color: #94c93d; margin-right: 4px; }

/* Logged-in card */
.qp-acc-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #f3f8ec 0%, #e9f5d8 100%);
  border-radius: 12px;
  margin-bottom: 18px;
}
.qp-acc-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #94c93d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.qp-acc-user-info { min-width: 0; }
.qp-acc-user-name {
  font-weight: 700;
  color: #1f2a24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qp-acc-user-company {
  font-size: 0.82rem;
  color: #6c7770;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-acc-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qp-acc-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  color: #1f2a24;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  transition: background .15s ease, color .15s ease;
}
.qp-acc-nav a:hover { background: #f3f5f7; color: #94c93d; }
.qp-acc-nav a i {
  width: 18px;
  color: #6c7770;
}
.qp-acc-nav a:hover i { color: #94c93d; }
.qp-acc-nav-sep {
  height: 1px;
  background: #eef1f3;
  margin: 8px 0;
}
.qp-acc-logout {
  color: #c62828 !important;
}
.qp-acc-logout i { color: #c62828 !important; }
.qp-acc-logout:hover { background: #fdeeee !important; color: #a01818 !important; }
