/* ======================= BUYER LOGIN — Clean Seller-Style =======================
   File: assets/css/buyer-login.css
   Namespaced under #blOverlay / .bl-* to avoid clashes
   ========================================================================== */

:root {
  --ink: #eafbf2;
  --muted: #b6d5ce;
  --panel: #061a18;
  --panel-2: #071b23;
  --focus: #22c55e;
  --err: #ef4444;
  --radius: 22px;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Overlay ---------- */
#blOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  padding: 32px;
  background: radial-gradient(
      1200px 700px at 20% -15%,
      rgba(16, 185, 129, 0.18),
      transparent 60%
    ),
    radial-gradient(
      1200px 900px at 120% 140%,
      rgba(14, 165, 233, 0.14),
      transparent 65%
    ),
    rgba(0, 0, 0, 0.66);
}
#blOverlay.is-open[aria-hidden="false"] {
  display: grid;
  place-items: center;
}

/* ---------- Modal shell ---------- */
#blOverlay .modal-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(620px, 96vw);
  max-height: min(88vh, 860px);
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(
      1100px 700px at -10% -15%,
      rgba(16, 185, 129, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 800px at 120% 120%,
      rgba(14, 165, 233, 0.14),
      transparent 65%
    ),
    linear-gradient(180deg, var(--panel), var(--panel-2) 40%, #07141a);
  box-shadow: var(--shadow);
}

/* ---------- Close ---------- */
#blOverlay .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #9fd3e2;
  background: #0a2a30;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
#blOverlay .modal-close:hover {
  background: #0d3640;
  color: #c8f3ff;
  transform: scale(1.05);
}

/* ---------- Header ---------- */
#blOverlay .bl-head {
  padding: 22px 26px 0;
}
#blOverlay .bl-title {
  margin: 2px 0 10px;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-align: center;
  font-size: clamp(22px, 3.2vw, 32px);
}
#blOverlay .bl-underline {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(45, 212, 191, 0.9),
    rgba(125, 211, 252, 0.85) 40%,
    rgba(14, 165, 233, 0.7) 70%,
    transparent
  );
  margin-top: 10px;
}

/* ---------- Content ---------- */
#blOverlay .bl-content {
  overflow: auto;
  overflow-x: hidden;
  padding: 18px clamp(16px, 3vw, 28px) 26px;
  scrollbar-width: thin;
  scrollbar-color: #2dd4bf rgba(255, 255, 255, 0.08);
}
#blOverlay .bl-content::-webkit-scrollbar {
  width: 10px;
}
#blOverlay .bl-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #34d399, #22c55e);
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.25);
}

/* ---------- Fields ---------- */
#blOverlay .bl-field {
  margin: 10px 0 12px;
}
#blOverlay .bl-label {
  display: block;
  margin: 2px 0 6px;
  font-weight: 700;
  font-size: 14px;
  color: #dff7f0;
}
#blOverlay .field {
  background: #f8f8f8 !important;
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 2px 10px;
}
#blOverlay .field input,
#blOverlay .bl-input {
  width: 100%;
  padding: 12px 6px;
  background: transparent !important;
  color: #000 !important;
  border: none !important;
  outline: none !important;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
}
#blOverlay .field:has(input:not(:placeholder-shown)),
#blOverlay .field.filled {
  background: #e8f1ff !important;
}
#blOverlay input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #e8f1ff inset !important;
  -webkit-text-fill-color: #000 !important;
}
#blOverlay .field input::placeholder {
  color: #6b7280;
  font-weight: 500;
}

/* ---------- Actions ---------- */
#blOverlay .bl-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
#blOverlay #blLoginBtn {
  min-width: 150px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  color: #fff;
  background: #000;
  cursor: pointer;
  position: relative;
  z-index: 0;
}
#blOverlay #blLoginBtn:before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(
    45deg,
    #f00,
    #f70,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #f00
  );
  background-size: 400%;
  filter: blur(5px);
  z-index: -1;
  animation: blGlow 20s linear infinite;
}
#blOverlay #blLoginBtn:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  border-radius: 12px;
  z-index: -1;
}
#blOverlay #blLoginBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
@keyframes blGlow {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* ---------- Helper / messages ---------- */
#blOverlay .bl-help {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(230, 252, 241, 0.55);
}
#blOverlay .bl-msg {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 12px;
  background: rgba(8, 25, 21, 0.6);
}
#blOverlay #blMsgOk {
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #c6f7e2;
}
#blOverlay #blMsgErr {
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

/* ---------- Footer ---------- */
#blOverlay .bl-sub {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}
#blOverlay .button-13 {
  background: #fff;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  box-shadow: rgba(213, 217, 217, 0.5) 0 2px 5px 0;
  color: #0f1111;
  cursor: pointer;
  font-size: 13px;
  line-height: 29px;
  padding: 0 10px;
  width: 130px;
}
#blOverlay .button-13:hover {
  background: #f7fafa;
}

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  #blOverlay {
    padding: 12px;
  }
  #blOverlay .modal-shell {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px;
  }
  #blOverlay #blLoginBtn {
    width: 100%;
    height: 52px;
    font-size: 17px;
  }
}
