/* ==========================================
   SELLER LOGIN MODAL
   Prefix: slm- (Seller Login Modal)
   ========================================== */

/* ── Overlay ── */
.slm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  backdrop-filter: blur(4px);
}

/* ── Modal Container ── */
.slm-container {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  animation: slm-popIn 0.2s ease;
}

@keyframes slm-popIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.slm-container::-webkit-scrollbar { width: 4px; }
.slm-container::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

/* ── Close Button ── */
.slm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.15s;
  z-index: 2;
  line-height: 1;
}

.slm-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* ── Content Wrapper ── */
.slm-content {
  padding: 32px 28px 24px;
}

/* ── Header ── */
.slm-header {
  text-align: center;
  margin-bottom: 24px;
}

.slm-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #16a34a, #f97316);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.slm-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}

.slm-subtitle {
  font-size: 14px;
  color: #6b7280;
}

/* ── Progress Steps ── */
.slm-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  gap: 0;
}

.slm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.slm-step span {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.slm-step.slm-active span    { color: #16a34a; }
.slm-step.slm-completed span { color: #16a34a; }

.slm-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  transition: all 0.2s;
}

.slm-step.slm-active .slm-circle {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(22,163,74,0.15);
}

.slm-step.slm-completed .slm-circle {
  background: #dcfce7;
  border-color: #16a34a;
  color: #16a34a;
}

.slm-line {
  width: 48px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 4px;
  margin-bottom: 18px;
  transition: background 0.2s;
}

.slm-line.slm-done {
  background: #16a34a;
}

/* ── Error Banner ── */
.slm-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  color: #b91c1c;
  font-size: 13px;
}

/* ── Form ── */
.slm-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slm-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.slm-input-wrap {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 12px;
  transition: border-color 0.15s;
}

.slm-input-wrap:focus-within {
  border-color: #16a34a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

.slm-input-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-right: 8px;
}

.slm-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 11px 0;
  font-size: 14px;
  color: #111;
  font-family: inherit;
}

.slm-input::placeholder { color: #9ca3af; }

.slm-toggle-pw {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
  color: #6b7280;
}

.slm-forgot {
  font-size: 12.5px;
  color: #16a34a;
  text-decoration: none;
  text-align: right;
  display: block;
  margin-top: 2px;
  font-weight: 500;
}

.slm-forgot:hover { text-decoration: underline; }

/* ── Email Display ── */
.slm-email-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  flex-wrap: wrap;
}

.slm-email-label {
  color: #6b7280;
  font-size: 12px;
}

.slm-email-display strong {
  color: #111;
  flex: 1;
}

.slm-change-btn {
  background: none;
  border: none;
  color: #16a34a;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Buttons ── */
.slm-btn-primary {
  width: 100%;
  padding: 13px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.slm-btn-primary:hover:not(:disabled) {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22,163,74,0.3);
}

.slm-btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.slm-btn-back {
  width: 100%;
  padding: 11px;
  background: #fff;
  color: #6b7280;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.slm-btn-back:hover {
  border-color: #9ca3af;
  color: #374151;
}

/* ── Spinner ── */
.slm-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: slm-spin 0.6s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes slm-spin { to { transform: rotate(360deg); } }

/* ── Footer link ── */
.slm-footer-text {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

.slm-footer-text a {
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
}

.slm-footer-text a:hover { text-decoration: underline; }

/* ── OTP Section ── */
.slm-otp-info {
  text-align: center;
  margin-bottom: 8px;
}

.slm-otp-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.slm-otp-info p {
  font-size: 13.5px;
  color: #6b7280;
  margin-bottom: 4px;
}

.slm-otp-info strong {
  font-size: 14px;
  color: #111;
  display: block;
  margin-bottom: 6px;
}

.slm-otp-test {
  font-size: 11px;
  color: #9ca3af;
}

.slm-otp-test code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #374151;
}

/* ── OTP Inputs ── */
.slm-otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.slm-otp-input {
  width: 48px;
  height: 52px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  background: #f9fafb;
  outline: none;
  transition: all 0.15s;
  font-family: inherit;
}

.slm-otp-input:focus {
  border-color: #16a34a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

/* ── Resend OTP ── */
.slm-resend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}

.slm-resend-btn {
  background: none;
  border: none;
  color: #16a34a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.slm-resend-btn:hover { color: #15803d; }

/* ── Security Badge ── */
.slm-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  font-size: 12px;
  color: #9ca3af;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .slm-content { padding: 24px 18px 20px; }
  .slm-otp-input { width: 40px; height: 44px; font-size: 18px; }
  .slm-otp-inputs { gap: 7px; }
}